Skip to content

Child-completed notification steers an active Codex /compact turn → "Command turn.submit failed: cannot steer a compact turn" #6333

Closed

Description

@escapedoc

Version: bb 0.47.1, Linux, provider Codex.

What happens

  1. A parent thread (Codex) starts a structured compact (bb thread compact or /compact).
  2. While the compact turn is still running, a child thread finishes. bb automatically dispatches the system "child completed" notification to the parent with target: auto and the current expectedTurnId — i.e. as a steer into the active turn.
  3. Codex rejects it: command_failed: cannot steer a compact turn.
  4. bb shows a thread error: thread_command_failed — Command turn.submit failed (cannot steer a compact turn).
  5. The compact itself then completes successfully (context shrinks as expected).

Seen repeatedly on two different Codex parent threads (same sequence each time). It looks like an error to the user although the thread is fine; it is unclear whether the child-completed notification is delivered afterwards or lost. Once, a scheduled automation targeting such a thread was disabled right after this error.

Expected
While a compact turn is active, queue incoming notifications (child completed, messages) and deliver them as an ordinary new turn after the compact finishes — exactly once, preserving sender and order. No error shown for this case.

Workaround we use: run bb thread compact only when the thread is idle and no children are about to finish; send the next message after the first normal turn following the compact.

Activity

  1. added theissue type on Oct 26, 2026
  2. added
    threads
    provider-codex
    confirmed-repro
    on Oct 26, 2026
  3. bb-slop-cop commented on Oct 26, 2026

    @bb-slop-cop
    Contributor

    🚨 SLOP COP 🚨 · new-issue-autopilot

    • Classification: Bug · Priority: Medium · Effort: Medium.
    • Labels: threads, provider-codex, confirmed-repro.
    • Report: https://get-bb.github.io/reports/issues/6333.html — REPRODUCED, root-cause confidence high. Repeated in a second clean checkout of trusted main at dbb594540; evidence covers the real server/SQLite dispatch boundary, not a live Codex process.
    • Root cause: Parent system notices bypass the existing active-compaction guard and submit to the active turn instead of waiting in the durable queue. Automation disablement remains unverified.
    • Regression: apps/server/test/public/public-thread-compaction.test.ts fails before the fix and passes after it; all 54 relevant tests and typechecking pass. The fix preserves notice metadata and delivers once after compaction.
    • Ready PR: Queue system notices during manual compaction #6334 — 159 changed text lines across two files, no protocol or stored-data changes. Not merged.

    AGENT GENERATED

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

    confirmed-reproprovider-codexthreads

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions