Skip to content

fix(mobile): show the composer draft after answering a question - #58

Closed
macodev00 wants to merge 1 commit into
mainfrom
cursor/ipad-composer-draft-rebind-117a
Closed

macodev00 wants to merge 1 commit into
mainfrom
cursor/ipad-composer-draft-rebind-117a

Conversation

@macodev00

Copy link
Copy Markdown
Owner

What Changed

After an ask-question card closes, the composer shows the follow-up already stored for that thread. Opening or closing the card does not clear the draft.

The composer stays mounted while the card has the slot. When the card closes, the editor remounts and paints that stored draft. A fresh editor does not treat the draft as a native echo, which is what left the text view empty.

The same rebind runs when a failed-creation card gives the slot back, because that card hides the composer the same way.

Why

Fixes pingdotgg#14053

The question card hides the composer with display: none so the draft is kept. That also keeps the last keystroke classified as a native echo. When the card closes, iOS drops that echo if the text view no longer matches, so the composer looks empty until a thread switch mounts a new editor.

Checklist

  • This PR is small and focused
  • I explained what changed and why
  • No UI screenshots. The report is iPad-only, and this environment has no simulator. apps/mobile/src/native/composerEditorRevision.test.ts covers the rebind.

Grok 4.7 in Cursor.

Open in Web Open in Cursor 

An ask-question card hides the composer without unmounting it, so the stored
draft comes back as a native echo and the text view stays empty. Rebind the
editor when the card closes so that draft is painted again.

Fixes pingdotgg#14053
@github-actions github-actions Bot added vouch:trusted PR author is trusted by repo permissions or the VOUCHED list. size:M labels Sep 28, 2026
@macodev00

Copy link
Copy Markdown
Owner Author

Opened upstream.

@macodev00 macodev00 closed this Sep 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size:M vouch:trusted PR author is trusted by repo permissions or the VOUCHED list.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: iPad: composer shows empty after answering a question, draft only reappears after switching threads

1 participant