Repository navigation
fix(server): a compaction or manual continuation keeps its session busy like a turn #41490
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
juliusmarminge
merged 4 commits into
pingdotgg:main
from
navidnadali:up/idle-release-keeps-busy-turns
Nov 23, 2026
+195
−68
Merged
Changes from all commits
Commits
Show all changes
4 commits
Select commit
Hold shift + click to select a range
67a18d3
test(server): a compaction or manual continuation keeps its session p…
navidnadali eedccbb
fix(server): a compaction or manual continuation keeps its session bu…
navidnadali 707577d
Merge remote-tracking branch 'origin/main' into up/idle-release-keeps…
juliusmarminge 2c147a2
test(server): keep only the idle-release cases that fail without the fix
juliusmarminge File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A stalled compaction or resume keeps its session busy with no release path.
busyTurnkeeps its busy key until a matchingturn.terminalarrives, or until a failed start exits. If the adapter emitscompactingand then stops responding, no terminal arrives. Idle release returns while the key exists, so the idle timeout andmaxIdlePinMsnever apply. A user interrupt that times out raisesProviderAdapterInterruptTimeoutError.ProviderTurnControlServicereports it asunresponsive, but it does not clear the key or release the session.releaseUnlessBusyalso declines to release a busy session.A stalled busy turn must not hold its session indefinitely. When an interrupt of a busy turn times out, the path must clear the busy key or release the session, and the stall must not depend on a terminal the adapter has not sent.