Skip to content

fix: Cleanup based on new idle state #463#480

Merged
benbrandt merged 2 commits intoagentclientprotocol:mainfrom
SteffenDE:sd-session-state-followup
Mar 26, 2026
Merged

fix: Cleanup based on new idle state #463#480
benbrandt merged 2 commits intoagentclientprotocol:mainfrom
SteffenDE:sd-session-state-followup

Conversation

@SteffenDE
Copy link
Copy Markdown
Contributor

@SteffenDE SteffenDE commented Mar 26, 2026

#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.

@SteffenDE SteffenDE force-pushed the sd-session-state-followup branch from 487dd83 to 8fc3852 Compare March 26, 2026 12:22
@SteffenDE SteffenDE marked this pull request as ready for review March 26, 2026 12:24
@SteffenDE SteffenDE force-pushed the sd-session-state-followup branch from 8fc3852 to 73af770 Compare March 26, 2026 12:24
@SteffenDE SteffenDE force-pushed the sd-session-state-followup branch from 73af770 to c892f9f Compare March 26, 2026 12:25
Copy link
Copy Markdown
Member

@benbrandt benbrandt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔥
Thanks for cleaning this up!

@benbrandt benbrandt changed the title followup for #463 Cleanup based on new idle state #463 Mar 26, 2026
@benbrandt benbrandt changed the title Cleanup based on new idle state #463 fix: Cleanup based on new idle state #463 Mar 26, 2026
@benbrandt benbrandt enabled auto-merge (squash) March 26, 2026 13:51
@benbrandt benbrandt disabled auto-merge March 26, 2026 13:57
@benbrandt benbrandt enabled auto-merge (squash) March 26, 2026 13:57
@benbrandt benbrandt merged commit 23b3073 into agentclientprotocol:main Mar 26, 2026
1 check passed
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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants