fix(sessions): keep queued messages in queue when cancelling#2706
Open
MattPua wants to merge 1 commit into
Open
fix(sessions): keep queued messages in queue when cancelling#2706MattPua wants to merge 1 commit into
MattPua wants to merge 1 commit into
Conversation
|
React Doctor found no issues in the changed files. 🎉 Reviewed by React Doctor for commit |
Contributor
|
Reviews (1): Last reviewed commit: "fix(sessions): keep queued messages in q..." | Re-trigger Greptile |
Stop now cancels only the in-flight turn. Queued messages stay in the queue (shown as queued cards) instead of being dumped into the input. A queuePaused flag suppresses the auto-drain triggered by the cancel-induced turn-end event; it's cleared on the next user send, so the kept messages resume then. Generated-By: PostHog Code Task-Id: 82344ce6-2b72-4bb3-b929-41cd17820f5e
fd9cdd1 to
a4556a4
Compare
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.
Problem
Change
CleanShot.2026-06-16.at.11.59.48.2.mp4
queuePausedflag onAgentSession, set bycancelPrompt, suppresses the auto-drain on the cancel-induced turn-end.handleCancelPromptno longer drains the queue into the editor.Notes
(N queued)hides after Stop (only shows while pending), but queued cards stay visible.Testing
sessionServiceHost(116) +sessionStore(10) tests passCreated with PostHog Code