Skip to content

Fix orphaned background command activity - #1736

Merged
ymichael merged 1 commit into
mainfrom
bb/explain-sidebar-background-command-thr_t253jd5ijr
Aug 17, 2026
Merged

ymichael merged 1 commit into
mainfrom
bb/explain-sidebar-background-command-thr_t253jd5ijr

Conversation

@ymichael

@ymichael ymichael commented Aug 17, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

  • settle open background tasks when a successful thread stop unloads their provider runtime
  • surface nested shell commands after their owning background agent settles, while preserving active-parent deduplication
  • add targeted task lookup and regression coverage for runtime release and timeline projection

Root cause

Successful idle-runtime releases did not persist terminal background-task events. Separately, thread detail filtered nested tasks even after the owning agent had finished, while the sidebar counted the still-open shell command.

Testing

  • pnpm exec turbo run test --filter=@bb/db --filter=@bb/thread-view --filter=@bb/server --force (2,476 tests)
  • pnpm exec turbo run typecheck --filter=@bb/server --filter=@bb/thread-view --filter=@bb/db --force
  • git diff --check

AGENT GENERATED: by GPT-5


View with [code]smith Autofix with [code]smith
Need help on this PR? Tag @codesmith-bot with what you need. Autofix is disabled.

@ymichael
ymichael merged commit 0e8e045 into main Aug 17, 2026
11 checks passed
@ymichael
ymichael deleted the bb/explain-sidebar-background-command-thr_t253jd5ijr branch August 17, 2026 23:04
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.

1 participant