Skip to content

Terminal Codex stream disconnects are misclassified as generic provider errors #1840

Closed

Description

@brsbl

Summary

Codex can report responseStreamDisconnected while retrying, then downgrade the terminal event for the same failure to codexErrorInfo: "other". bb trusts the degraded value, loses the structured disconnect category, and renders the final timeline row as a generic Provider error.

Implementation: PR #1563

Versions and environment

  • Reproduced on main at e1ec66e8c when the PR was opened
  • Provider: Codex
  • Deterministic event replay; no intentional network outage required

Steps to reproduce

  1. Translate a retryable Codex error event whose structured error is responseStreamDisconnected.
  2. Translate the terminal event for the same turn and failure text with willRetry: false and codexErrorInfo: "other".
  3. Inspect the final provider/error.errorInfo.
pnpm exec turbo run test --filter=bb-plugin-provider-codex -- --run src/translator.test.ts -t "carries the structured retry classification into a degraded terminal error"

Expected vs actual

Expected:

{ category: 'stream-disconnected', providerCode: 'responseStreamDisconnected', httpStatusCode: null }

Actual on the unfixed path:

{ category: 'unknown', providerCode: 'other', httpStatusCode: null }

Evidence

  • The implementation correlates retry and terminal failure state in event-translation.ts.
  • Positive and unrelated-terminal negative regressions are included in PR #1563.

What you ruled out

  • Not a retry-semantics change: only terminal classification changes.
  • Not an unrelated generic error: correlation requires the same recorded failure.
  • No exact open or closed issue matched responseStreamDisconnected, codexErrorInfo, the PR URL, or the originating thread.

Suggested priority and effort

Medium priority, low-to-medium effort: users receive the wrong terminal diagnosis and recovery affordance; the implementation must not relabel unrelated failures.

Originating implementation thread: thr_957f3xid9y

AGENT GENERATED: by GPT-5.6-Sol

Activity

  1. added
    bug
    providers
    provider-codex
    confirmed-repro
    on Aug 18, 2026
  2. added theissue type on Aug 19, 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

    bugconfirmed-reproprovider-codexproviders

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions