Repository navigation
feat(site): return a queued chat message to the composer - #28516
Closed
tracyjohnsonux wants to merge 1 commit into
Closed
tracyjohnsonux wants to merge 1 commit into
tracyjohnsonux wants to merge 1 commit into
Conversation
Contributor
Docs previewCheck off each page once it's been reviewed. If a page changes in a later push, its checkbox clears automatically so it gets a fresh look. Pages not yet wired into the docs navigation aren't listed here. |
tracyjohnsonux
force-pushed
the
feat/queued-message-edit
branch
from
August 25, 2026 18:59
3a569aa to
2de41ed
Compare
tracyjohnsonux
force-pushed
the
feat/queued-message-edit
branch
from
August 25, 2026 22:14
2de41ed to
ca8e3d9
Compare
Queued messages could only be sent now or removed, so fixing a typo meant deleting the message and retyping it. Queued text was also always clipped to its first line. The queued text is now a button that toggles between the first line and the full content. A pencil action removes the message from the queue and loads its text into the composer as an ordinary draft, persisted like typed input, so the next Enter goes through the normal send path: queued at the tail while the chat is busy, sent immediately when it is idle. There is no edit mode, no banner, and nothing enters the chat stream. The action is disabled when the composer already holds a draft, since the message would overwrite it, and for messages carrying attachments, because composer drafts cannot be seeded with files that were uploaded in an earlier session. A failed removal restores the row and leaves the composer untouched.
tracyjohnsonux
force-pushed
the
feat/queued-message-edit
branch
from
August 25, 2026 22:24
ca8e3d9 to
c41d70e
Compare
Collaborator
Author
|
Closing as experimental. The branch Posted by Coder Agents on behalf of @tracyjohnsonux. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Queued messages could only be sent now or removed, so fixing a typo meant deleting the message and retyping it. Queued text was also always clipped to its first line.
The queued text is now a button that toggles between the truncated first line and the full content. A pencil action returns the message to the composer: the queue row is deleted and its text becomes an ordinary draft, persisted like typed input so it survives a reload. From there it is just a prompt being written, so the next Enter takes the normal send path, which queues it at the tail while the chat is busy or sends it immediately when the chat is idle. There is no edit mode, no banner, and nothing enters the chat stream.
The action is disabled, with the reason in its tooltip, when:
A failed removal restores the row and leaves the composer untouched.
Implementation notes
QueuedMessagesList: per-item expanded state witharia-expanded, plus an optionalonEditaction that hides the row optimistically and restores it if the handler rejects, mirroring the existing delete and promote actions.editDisabledReasondisables the action and supplies the tooltip.AgentChatInputderives the composer-draft reason from its existingisComposerEffectivelyEmptystate.AgentChatPage.handleEditQueuedMessagereuseshandleDeleteQueuedMessage(optimistic queue removal with rollback) and then loads the text throughloadDraftIntoComposer, which writes the plain-text draft to the same localStorage key the composer uses and focuses the editor after the remount.getEditableUserMessagePayloadnow delegates to a content-levelgetEditableContentPayloadshared with queued messages.Design history
Earlier revisions of this branch added
PATCH /api/experimental/chats/{chat}/queue/{queuedMessage}with achatstate.UpdateQueuedMessagetransition so a queued message could be edited in place, and later tried to hold a queued message while it was being edited. The hold is not expressible in the current chat state machine:ClassifyExecutionStatemapswaitingwith a non-empty queue toStateInvalid,FinishTurnpromotes the queue head in the same transaction as the status write, and a chat parked in an invalid state refuses every transition until a user-triggered reconcile forces it toerror. Returning the message to the composer needs no backend change at all, so the endpoint, transition, SDK method, and their tests were dropped and this branch is now a single frontend commit.Generated by Coder Agents on behalf of @tracyjohnsonux.