fix(mobile): clear native-chat composer optimistically at send time (#10226)

* fix(mobile): clear native-chat composer optimistically at send time

Over relay the send RPC round trip is visible and a lost ack (or a
relay/direct cutover) could strand the sent prompt in the composer
forever: the unconfirmed-send deadline dropped its tracking entry, so a
late transcript echo could never clear the draft.

Clear the draft at send time and restore it only on a definite
rejection. holdUnconfirmedSend now only manages the delivery-unconfirmed
notice; it no longer touches drafts.

* fix(mobile): isolate question answers from composer drafts
This commit is contained in:
Brennan Benson
2026-07-26 12:44:39 -07:00
committed by GitHub
parent 8f5a45401f
commit 8b25cfc0f8
7 changed files with 322 additions and 95 deletions
@@ -5,7 +5,9 @@ const systemConfigPath = '/home/user/.codex/config.toml'
describe('getCodexConfigSyncWarning', () => {
it('stays silent while syncing normally', () => {
expect(getCodexConfigSyncWarning({ state: 'synced', reason: null, systemConfigPath })).toBeNull()
expect(
getCodexConfigSyncWarning({ state: 'synced', reason: null, systemConfigPath })
).toBeNull()
})
it('stays silent before the status has loaded', () => {