Skip to content

Provisioning retry doubles the turn input; the copy lands in startup_context and every thread list loads it (0.48.0) #6558

Closed

Description

@AnobleSCM

Version: bb-app 0.48.0, macOS. Server on a Mac mini, three machines enrolled. Agent Retry plugin 0.2.4 installed.

What happened (Oct 29, 2026)

  1. A new Codex thread failed workspace provisioning on a second machine ("Provisioning thread failed", "earlier setup has an unknown outcome").
  2. The thread was retried automatically through threads.retry. Each retry carried the previous attempt's input plus one more copy. The queued input grew from 994 bytes to 2.7 MB in about 8 minutes, then to 337.5 MB.
  3. The server then exited out of memory.
  4. After the restart, that thread's startup_context held 353,894,889 bytes. threadWithPendingInteractionBaseQuery selects every thread column, so each thread-list query loaded it. That query ran about 25 times a minute at 0.6 to 2.2 s of CPU each. Every client froze, the phone app included.
  5. Opening the thread built a timeline from 707 MB of event data in 8 s.

Archiving the thread took it out of the list query. Event-loop stalls of 1 s or more fell from 5.3 a minute to 0.7 a minute.

Expected

  • A provisioning retry re-sends the original input once.
  • Thread-list queries leave out startup_context, or its size is capped.
  • A thread whose stored context passes a size limit is flagged rather than loaded.

Related: the retry plugin counted each provisioning failure as attempt 1, so its backoff and attempt limit never applied. That is reported to the plugin author separately.

Activity

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions