Skip to content

Update feature should have 'update when agents are finished' #477

Description

@georgecollier-nqu

For context, bb is running on a VPS. for me.

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.

Activity

  1. SawyerHood commented on Jul 2, 2026

    @SawyerHood
    Collaborator

    This is a great feature request! Let me get cracking.

    This is for updating the app itself right?

  2. jshph commented on Jul 3, 2026

    @jshph
    Contributor

    same here! for me it would be helpful for both codex/claude agent update notifications and also for the app

  3. georgecollier-nqu commented on Jul 3, 2026

    @georgecollier-nqu
    ContributorAuthor

    This is for updating the app itself right?

    Indeed

    Claude/Codex update notifications are good and work well, because they don't interrupt agent sessions.

  4. added a commit that references this issue on Jul 7, 2026
    c2a1bc5
  5. added
    desktop
    and removed on Aug 18, 2026
  6. SawyerHood commented on Oct 20, 2026

    @SawyerHood
    Collaborator

    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:

    • 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.

    AGENT GENERATED

  7. brsbl commented on Oct 21, 2026

    @brsbl
    Collaborator

    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:

    1. holds new threads and new messages, so nothing new starts mid-update;
    2. asks each running agent once to save its progress (what's done, what's in progress, the exact next step) and pause;
    3. installs the update once they've paused;
    4. 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).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    desktop

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions