Repository navigation
Conversation
wtz2333
force-pushed
the
feat/midturn-composer-actions
branch
from
November 20, 2026 07:13
9ce729b to
6d873fd
Compare
| config = await asyncio.to_thread(configs.resolve, message['modelConfigId'], 'agent') | ||
| except Exception: | ||
| logger.warning('agent.queue.model_missing project_id=%s message_id=%s', | ||
| project_id, message.get('id')) |
wtz2333
force-pushed
the
feat/midturn-composer-actions
branch
from
November 23, 2026 02:07
6d873fd to
ffb2c0c
Compare
A message waiting behind the active turn could be changed by nothing but sending it: withdrawing it meant stopping the whole chain, which also threw away the turn that was running. Retracting removes a message that has not started, under the same lock the chain takes when it picks the next one up, so it is either still waiting and goes away or it has started and the caller is told to stop it instead. A failure leaves the queue waiting rather than spending it, and continuing by hand starts the oldest message without retyping it. Refs ThinkFlowLab#379
A message waiting behind the active turn could be changed by nothing but sending it: withdrawing it meant stopping the whole chain, which also threw away the turn that was running. Retracting removes a message that has not started, under the same lock the chain takes when it picks the next one up, so it is either still waiting and goes away or it has started and the caller is told to stop it instead. A failure leaves the queue waiting rather than spending it, and continuing by hand starts the oldest message without retyping it. Refs ThinkFlowLab#379
Codex now runs as an app-server session instead of a one-shot exec, so a turn has a channel for extra text while it works: POST /assistant/messages with delivery "insert" hands the words to turn/steer and the answer keeps the work it has already done. Runtimes without a native channel refuse the insert and say so, leaving the queued delivery as the fallback.
While a reply streams, the composer kept the draft but replaced Send with Stop and Enter returned without a word, so a supplement could only be typed in and lost. It is sent now: the server answers 202 with the queued message, the log shows it as queued, and the same stream keeps feeding the replies that follow until the chain ends. Refs ThinkFlowLab#379
A message waiting behind the running reply showed its position but offered no way to take it back, and a queue left behind by a failure or a restart had no way to start again without retyping it. A queued bubble now carries Withdraw, which removes it from the thread under the same lock the chain takes when it picks the next message up. A queue with nothing draining it shows a banner with the count and Continue, which starts the oldest message and reads its reply from the usual stream. A cancelled message offers Edit again, which puts it back in the composer so it is sent deliberately rather than silently. Refs ThinkFlowLab#379
wtz2333
force-pushed
the
feat/midturn-composer-actions
branch
from
November 26, 2026 03:27
ffb2c0c to
c7b3df6
Compare
This branch has not been deployed
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 join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Summary
409because it has already started and the reply has to be stopped instead. Another window watching the same chain drops the bubble on theretractedframe.Stacked on #383 (
feat/midturn-queue-composer) and therefore on #381 (feat/midturn-queue): the withdrawals and the Continue button call endpoints added by #381 and #384. Please review #381, then #383, then this one; once those land I will rebase this onmainand it will show only its own commit.Linked issue
Refs #379Refs #379is includedLabels
wtz2333cannot add labels here. Suggested:type:feat,area:canvas,area:agent.Test plan
tests/assistantQueue.test.tsgrows two cases: the withdrawal goes toDELETE …/messages/{id}, and Continue posts to…/queue/dispatchand readsstart/delta/endfrom the stream it answers with.node --test tests/*.test.ts→ 836 passed;node scripts/check-i18n.mjs→ 3044 keys, 0 problems;tsc --noEmitclean;vite buildbuilt.Evidence that it works
Provider verification
fetch.Bilingual UI
assistant.panel.retract,retractHint,refill,refillHint,waiting,proceed.