Restore rewound prompts immediately on iOS (#3946)

* fix(app): restore rewound text atomically

The native composer could consume a replacement revision before the matching draft-store value arrived, leaving the mounted input blank until remount. Carry the replacement text with its revision so scheduling order cannot split the command from its payload.

* fix(app): isolate launch composer drafts

Give chat and terminal launch composers separate React identities so each uncontrolled editor lifetime remains owned by its draft mode.
This commit is contained in:
Mohamed Boudra
2026-08-27 16:50:18 +02:00
committed by GitHub
parent a8734a9724
commit 96cb70f5ce
9 changed files with 66 additions and 37 deletions
@@ -439,7 +439,7 @@ export function WorkspaceSetupDialog() {
blurOnSubmit={true}
value={chatDraft.text}
onChangeText={chatDraft.editText}
textReplacementKey={chatDraft.textReplacementKey}
textReplacement={chatDraft.textReplacement}
attachments={chatDraft.attachments}
onChangeAttachments={chatDraft.setAttachments}
cwd={sourceDirectory}