Repository navigation
fix(server): background tasks survive a failed Claude turn on a live process #31840
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
+234
−35
Merged
Changes from all commits
Commits
Show all changes
10 commits
Select commit
Hold shift + click to select a range
6efa46f
test(server): reproduce #31817 failed Claude turn dropping live backg…
juliusmarminge 357f72f
fix(server): keep background tasks waitable after a Claude turn fails…
juliusmarminge 40c2731
test(server): a Claude process exiting mid-turn still clears its back…
juliusmarminge df538f6
fix(server): a failed run keeps ingesting roster updates while backgr…
juliusmarminge fc235fc
fix(server): a failed run waits only on the thread's background work
juliusmarminge 5c17271
Merge remote-tracking branch 'origin/main' into fix/issue-31817
juliusmarminge 6b429d1
test(server): type the failed-run roster fixture
juliusmarminge 19054be
Merge remote-tracking branch 'origin/main' into fix/issue-31817
juliusmarminge 3ce46f3
fix(server): keep ingesting until a stored Claude roster clears
juliusmarminge 247639e
Merge origin/main into fix/issue-31817
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
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: 4421
Script executed:
Repository: pingdotgg/t3code
Length of output: 42488
Script executed:
Repository: pingdotgg/t3code
Length of output: 27512
Script executed:
Repository: pingdotgg/t3code
Length of output: 34474
Script executed:
Repository: pingdotgg/t3code
Length of output: 28271
Script executed:
Repository: pingdotgg/t3code
Length of output: 21951
Script executed:
Repository: pingdotgg/t3code
Length of output: 25275
Script executed:
Repository: pingdotgg/t3code
Length of output: 12403
Script executed:
Repository: pingdotgg/t3code
Length of output: 11916
Script executed:
Repository: pingdotgg/t3code
Length of output: 7028
Script executed:
Repository: pingdotgg/t3code
Length of output: 14995
Script executed:
Repository: pingdotgg/t3code
Length of output: 9213
Script executed:
Repository: pingdotgg/t3code
Length of output: 15515
Script executed:
Repository: pingdotgg/t3code
Length of output: 3248
Script executed:
Repository: pingdotgg/t3code
Length of output: 11038
Script executed:
Repository: pingdotgg/t3code
Length of output: 941
Script executed:
Repository: pingdotgg/t3code
Length of output: 11148
Keep ingestion open until the roster clear is consumed.
If a failed Claude run belongs to a delegated child and an awaited task clears before ingestion catches up, the persisted roster can keep the child in
waiting_for_children. The parent task can remain unfinished without its completion wake. Synchronize the stop check with roster-event delivery.