fix: Cleanup based on new idle state #463#480
Merged
benbrandt merged 2 commits intoagentclientprotocol:mainfrom Mar 26, 2026
Merged
fix: Cleanup based on new idle state #463#480benbrandt merged 2 commits intoagentclientprotocol:mainfrom
benbrandt merged 2 commits intoagentclientprotocol:mainfrom
Conversation
487dd83 to
8fc3852
Compare
8fc3852 to
73af770
Compare
73af770 to
c892f9f
Compare
benbrandt
approved these changes
Mar 26, 2026
Member
benbrandt
left a comment
There was a problem hiding this comment.
🔥
Thanks for cleaning this up!
benbrandt
pushed a commit
that referenced
this pull request
Mar 26, 2026
🤖 I have created a release *beep* *boop* --- ## [0.24.1](v0.24.0...v0.24.1) (2026-03-26) ### Bug Fixes * Cleanup based on new idle state [#463](#463) ([#480](#480)) ([23b3073](23b3073)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). Co-authored-by: acp-release-bot[bot] <246668977+acp-release-bot[bot]@users.noreply.github.com>
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.
#463 introduced a problem with cancelling prompts. Because cancel exited the loop early, the idle session state message was not consumed. Then, in the next prompt, we'd immediately get the idle state and assume it's done.
Instead, we always wait for the idle state (and still finish early when detecting a queued prompt).
Note that this is based on my tests that showed Claude only sending the idle state when all background agents are done.