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
Provisioning retry doubles the turn input; the copy lands in startup_context and every thread list loads it (0.48.0) #6558
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)
A new Codex thread failed workspace provisioning on a second machine ("Provisioning thread failed", "earlier setup has an unknown outcome").
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.
The server then exited out of memory.
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.
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