Repository navigation
Conversation
Idle release treated translated turns and background tasks as the complete residency signal. Honor authoritative running and requires-action session states, and use Stop-hook session cron snapshots so scheduled wakeups remain resident until the SDK reports no pending work.
ymichael
force-pushed
the
bb/fixer-preserve-live-claude-background-tasks-duri-thr_3v6xrpw7dx
branch
from
September 3, 2026 02:43
00fd382 to
571eb16
Compare
ymichael
deleted the
bb/fixer-preserve-live-claude-background-tasks-duri-thr_3v6xrpw7dx
branch
September 3, 2026 02:47
2 of 3 tasks
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.
Human comments
What was wrong
The opt-in Claude idle releaser treated translated turns, background-task presentation state, BB-forwarded tool calls, and interactive requests as the complete residency signal. That omitted Claude's authoritative
runningandrequires_actionsession states and its pending session-cron snapshot, so the 30-second timer could stop a process that was still working or waiting to deliver a scheduled wakeup.What changed
The Claude bridge now includes authoritative SDK session state and the Stop hook's replace-all
session_cronssnapshot in the shared quiescence decision.running,requires_action, and any pending scheduled work keep the query resident;idlewith an empty cron snapshot permits the existing grace-period release. The existing authoritativebackground_tasks_changedhandling and older-CLI task-bookend fallback remain intact. No daemon wire contract, CLI, guide, or configuration surface changed.How you verified
runningandrequires_actiontransitioning toidle; they failed before the fix becausequery.close()ran and pass after it.pnpm exec turbo run test typecheck build --filter=bb-plugin-provider-claude-code --forceafter rebasing onto currentorigin/main: 24 test files and 351 tests passed; typecheck and build passed; 6/6 Turbo tasks succeeded.git diff --checkpassed.Follow-up to #2808.