You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Update feature should have 'update when agents are finished' #477
I get the toast notification to update, but naturally only when my agents are running (because that's when we look at the UI). A simple 'update when agents finish' which updates at the first opportunity when there are no bb agents running would make this a lot more straightforward.
Consolidating #5808 here at the maintainer's request. Both request deferring the bb app update until running agents finish; this remains the canonical tracker.
Offer “Update when idle” alongside immediate update in Settings and the CLI (proposed spelling: bb updates apply --when-idle).
Show that an update is scheduled and allow cancellation.
If another thread starts while waiting, defer again rather than interrupting it; validate the idle check at the actual update boundary.
An always-update-when-idle preference is an optional follow-up.
Preserve #477's original VPS workflow. #2631 concerns explaining update safety, and #3143 concerns agents surviving daemon restarts; neither is resolved by this scheduling feature. Closing #5808 is consolidation, not a claim that the feature has shipped.
More user feedback (Oct 20, from a solo founder who runs bb all day): "update when idle" alone won't help users who are never idle.
I literally will have agents running a background process like a migration or whatever for days. If there were no background processes that would be one thing, or if those could run separately. And everything else could just pause and resume when started. It's somewhat rare for me to have moments where no agents are running or monitoring anything.
The plan: update without losing work
1. Update anytime, without losing work
If no agents are running, the update installs right away. If agents are running, bb:
holds new threads and new messages, so nothing new starts mid-update;
asks each running agent once to save its progress (what's done, what's in progress, the exact next step) and pause;
installs the update once they've paused;
resumes each agent from its saved progress, then sends the held messages, starting turns a few seconds apart so nothing wakes all at once.
Background jobs, like a long migration in an agent's background shell, don't block the update. They stop at it, and the agent records how far they got so it can restart them afterwards.
"Update when idle" folds into this. Waiting for an idle moment would also mean holding new threads, so it's one design, not two.
2. Long background jobs keep running through updates
So a days-long migration doesn't have to stop at all. The design for this stage is still open.
Later: keep an agent's own background shells alive through a restart (#3143).
Activity
SawyerHood commentedon Jul 2, 2026
This is a great feature request! Let me get cracking.
This is for updating the app itself right?
jshph commentedon Jul 3, 2026
same here! for me it would be helpful for both codex/claude agent update notifications and also for the app
georgecollier-nqu commentedon Jul 3, 2026
Indeed
Claude/Codex update notifications are good and work well, because they don't interrupt agent sessions.
Update when agents finish: deferred self-update for web/VPS and desktop
SawyerHood commentedon Oct 20, 2026
Consolidating #5808 here at the maintainer's request. Both request deferring the bb app update until running agents finish; this remains the canonical tracker.
Additional requirements from #5808:
bb updates apply --when-idle).Preserve #477's original VPS workflow. #2631 concerns explaining update safety, and #3143 concerns agents surviving daemon restarts; neither is resolved by this scheduling feature. Closing #5808 is consolidation, not a claim that the feature has shipped.
brsbl commentedon Oct 21, 2026
More user feedback (Oct 20, from a solo founder who runs bb all day): "update when idle" alone won't help users who are never idle.
The plan: update without losing work
1. Update anytime, without losing work
If no agents are running, the update installs right away. If agents are running, bb:
Background jobs, like a long migration in an agent's background shell, don't block the update. They stop at it, and the agent records how far they got so it can restart them afterwards.
"Update when idle" folds into this. Waiting for an idle moment would also mean holding new threads, so it's one design, not two.
2. Long background jobs keep running through updates
So a days-long migration doesn't have to stop at all. The design for this stage is still open.
Later: keep an agent's own background shells alive through a restart (#3143).
feat(updates): update bb once all threads finish (get-bb#6203)