Editing a queued message while a question is open submits the edit as the question answer
What happened
In T3 Code desktop 0.1.2, clicking Edit on a queued message while an agent question is already open enters queue-edit mode, but the composer continues acting as the question-answer field. Submitting the intended edit answers the question instead of updating the queued message.
After the question clears, the original queued text reappears in the composer with an Update queued message action.
Steps to reproduce
- Start a Codex turn that opens an asynchronous input question and keeps working.
- Queue a follow-up message.
- While the question is open and the follow-up is still queued, click the queued message's Edit action.
- Type replacement text and click Submit.
Expected: the replacement text updates the queued message without answering the question.
Actual: the question is answered with the replacement text; the original queued message remains unchanged.
Diagnosis
Source inspection at upstream commit cc93cc564b052a9dcf73323783e7b60506cda5e0 shows both modes competing for the composer:
- ChatComposer's editor value and change handler prioritize the pending question answer.
- useComposerSend submits the pending question and returns before reaching the queued-edit save branch at line 559.
These source references support the diagnosis; they do not identify the installed build's exact commit.
Evidence
Reproduced by the user in desktop 0.1.2 on 2026-10-26, then independently through browser automation using the published 0.1.2 web client and an isolated 0.1.2 server.
A 27-second recording captures Edit, replacement text, Submit, and the unchanged original queue entry. A close-up version shows the same footage cropped around the composer.
Read-only inspection of the isolated test database confirms:
- The question's resolved answer is
EDITED QUEUE: replace the original queued message. - That text was persisted as an
async-answer:user message. - The original queued run remained queued while the active run continued.
Full recording (27 seconds)
https://github.com/user-attachments/assets/71e35405-e6a8-4b96-8d50-fb4c5d9d5c88
Close-up of the same recording
https://github.com/user-attachments/assets/40bf8149-9242-40e1-9958-07b57be0cec0
Version and environment
Desktop app and connected server: 0.1.2. Browser reproduction: published web client and server 0.1.2. macOS on arm64; Codex provider, GPT-6.1-Sol. Other providers and mobile have not been tested.
Related issues
- #11116, closed by #17637: questions arriving during typing. This case starts queue editing after the question is already open.
- #15611: original queued text starts running during editing; a different failure.
- #4673, closed: a broader report of queues interacting with questions, without this Edit-action reproduction.
Fix applied or workaround
No fix applied. Avoid editing a queued message until the pending question is cleared.
Contribution
I'd be happy to work on a focused fix for this, if nobody is already handling it. Please let me know if you prefer a particular approach.
Prepared by
GPT-6.1-Sol through the Codex harness in T3 Code. Evidence includes user-operated desktop reproduction and an independent automated web reproduction.
Already fixed on main by fe507c5a1e, merged in #25593.
Verified on d73fd1279a with the real web dev server on Linux and Codex: opened an asynchronous question, queued a follow-up through the CLI against that isolated server, and inspected the queue. Edit is disabled while the question is pending, including when its card is collapsed. After dismissing the question, Edit becomes available and loads the queued text; editing and pressing Enter updated the queue entry. The existing queuedRunEdit tests also pass (18/18).

Closing as fixed on main.