Repository navigation
fix(server): Claude effort changes apply to the running turn #34563
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
+270
−18
Merged
Changes from all commits
Commits
Show all changes
4 commits
Select commit
Hold shift + click to select a range
d914c85
test(server): Claude effort change applies to the running query
juliusmarminge 7fb1224
fix(server): Claude effort changes apply to the running turn
juliusmarminge 0426553
test(server): process-loss recovery also cancels pending live model-s…
juliusmarminge 77247dc
Merge branch 'main' into factory/issue-34349
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
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
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
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
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.
Script executed:
Repository: pingdotgg/t3code
Length of output: 31046
Script executed:
Repository: pingdotgg/t3code
Length of output: 6478
Script executed:
Repository: pingdotgg/t3code
Length of output: 4636
Script executed:
Repository: pingdotgg/t3code
Length of output: 4326
Script executed:
Repository: pingdotgg/t3code
Length of output: 4744
Bound the live model-selection update so a Stop can run.
The live update in
applySelectionLivehas no deadline. The worker does not bound it, and a Stop does not cancel it. If the SDK request never settles, the running selection effect keeps later effects for the thread blocked, including the queued interrupt from Stop.ClaudeAdapterV2.ts:10915awaitslive.query.applyFlagSettings(...). The SDK wrapper atClaudeAdapterV2.ts:1433-1436adds no deadline. Line 342 states that the SDK has no control-request deadline.EffectWorker.ts:606-616times out onlydelegated-tasks.stop. The selection effect has no timeout.EffectOutbox.ts:333-360does not claim a non-title effect while another effect for the same thread isrunning. The interrupt from Stop waits for the selection effect to finish.effectTypeslist inOrchestrator.tsnamesprovider-turn.startandprovider-turn.restart.Bound the live update with a deadline. On timeout, use the existing failure path: log the failure and clear the live identity. The next turn then reapplies the selection. A late SDK response does not cause harm, because the identity was already cleared.