Skip to content

Codex follow-up request is accepted in one turn but tool work is emitted in an unaccepted successor turn #2634

Closed as not planned

Description

@uje-m

title: 'Codex follow-up request is accepted in one turn but tool work is emitted in an unaccepted successor turn'
severity: 'major'
target: 'get-bb/bb'

Summary

On a fresh Codex-provider thread, a later turn/start request can be persisted as accepted and completed in turn A, while the provider's actual reasoning/tool call is emitted in a newly started turn B that has no turn/input/accepted event. Any consumer that correctly binds effects to the accepted turn must reject the otherwise-valid tool call.

Reproduction

  1. Start a fresh Codex thread with a registered native BB agent tool.
  2. Complete one ordinary tool-calling turn successfully.
  3. Send a second turn/start request that explicitly calls the same tool.
  4. Inspect the append-only thread events.

Observed

  • client/turn/requested for request R targets a new turn.
  • turn A starts and records turn/input/accepted for R.
  • turn A immediately records turn/completed with no work items.
  • turn B starts at the same timestamp without turn/input/accepted.
  • the requested tool call starts/completes in turn B.

This reproduced on multiple fresh threads. The first tool-calling turn did not split.

Expected

The provider work caused by request R must remain in the turn that records R's input acceptance, or the successor turn must carry an explicit durable correlation to R that effect consumers can validate. A completed/unaccepted successor must not inherit the request implicitly.

Safety impact

This is not a presentation-only mismatch. Exactly-bound tool consumers must fail closed, so valid user-requested tool work becomes unusable. Weakening consumers to accept a tool call from an unrelated/unaccepted turn would create a cross-turn authority bug.

Notes

No private plugin, policy, repository, thread identifier, nonce, or product-specific workflow is required to reproduce this event-order defect.

Activity

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

    @bb-slop-cop
    Contributor

    🚨 SLOP COP 🚨 · new-issue-autopilot

    Classification: Bug · High priority · Medium effort
    Labels: providers, threads, provider-codex, confirmed-repro

    Report: https://get-bb.github.io/reports/issues/2634.html
    Verdict: REPRODUCED · confidence: high
    Root cause: A 250-millisecond timer claims request correlation before the delayed real turn starts.
    Reproduction label: confirmed-repro

    No pull request: open PR #2639 already addresses the same root cause through related issue #2580.

  4. SawyerHood commented on Sep 9, 2026

    @SawyerHood
    Collaborator

    Duplicate of #2580.

    Consolidating tracking into #2580. Added evidence and scope from this report have been preserved in a consolidation comment there.

    Closing this duplicate does not indicate that the underlying work is completed.

    AGENT GENERATED

  5. added
    duplicate
    on Sep 9, 2026
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-reproduplicateprovider-codexprovidersthreads

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions