Repository navigation
Conversation
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
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.