Skip to content

Preserve disabled reasoning in Codex sessions - #4972

Merged
SawyerHood merged 2 commits into
mainfrom
slopcop/issue-4958
Oct 6, 2026
Merged

SawyerHood merged 2 commits into
mainfrom
slopcop/issue-4958

Conversation

@bb-slop-cop

@bb-slop-cop bb-slop-cop Bot commented Oct 5, 2026 •

Copy link
Copy Markdown
Contributor

🚨 SLOP COP 🚨 · new-issue-autopilot

Human comments

What was wrong

The Codex provider excluded the existing disabled-reasoning level from its capability ladder and display descriptors. Its outgoing effort mapper also converted that level to null, so the real session configuration builder threw instead of forwarding it. Custom models inherit the provider ladder, making this both a selection and session-translation defect. Reproduction and root-cause report.

What changed

  • Advertise none in the existing Codex ladder and descriptors, and pass it through the outgoing effort mapper.
  • Extend the real session configuration and custom-model discovery regressions; preserve the medium default and ultracode rejection.
  • Update the thread runtime-config regression: its expected supported-level error list now includes none (this fixed the Linux and Windows server-2 CI failures on fe38a2b).
  • Five files, 22 changed text lines: 16 additions + 6 deletions (git diff --numstat origin/main). No dependency, generated file, stored-data, protocol/schema, permission, packaging, or release changes. Existing UI, SDK, and CLI option surfaces consume the same provider registration; no new flags or settings.

How you verified

  • Repeated both expected regression failures in two clean trusted checkouts at be68bf357b3428161bd83f57dda427a9b58094ca, using a test-only patch. Session configuration throws for none; custom-model efforts omit it.
  • Started the fix branch from newer trusted main 10d78d6be09d77ad9f8979468e9120b1c48edb5c and confirmed the session regression still fails before production edits.
  • pnpm exec turbo run test --filter=bb-plugin-provider-codex: 348 tests passed, including the repaired session regression.
  • pnpm exec turbo run test --filter=@bb/server -- test/system/execution-options.test.ts test/threads/thread-reasoning-policy.test.ts: 37 tests passed, including custom-model discovery.
  • pnpm exec turbo run lint typecheck --filter=bb-plugin-provider-codex --filter=@bb/server: passed; git diff --check: passed; no binary changes.
  • End to end at the real Codex boundary (codex-cli 0.160.0, isolated CODEX_HOME, custom model_provider pointed at a local fake Responses endpoint, model custom-nonreasoning): bb's buildCodexConfig output went to codex app-server thread/start → turn/start.
    • Before (main models.ts): buildCodexConfig throws Codex does not support the none reasoning level., and no request reaches the endpoint.
    • After: thread/start reports reasoningEffort: "none", the turn completes, and the captured POST /v1/responses body carries reasoning: {"effort":"none","summary":"auto"}. Control run with medium sends {"effort":"medium"}.
  • Review follow-up on 534d8d0: pnpm exec turbo run test --filter=bb-plugin-provider-codex (32 files) and server thread-runtime-config, execution-options, thread-reasoning-policy pass.
  • No paid/live provider endpoint or UI turn was exercised; whether a given hosted model accepts none remains model-dependent. Catalog models still show only the efforts Codex model/list reports.

Fixes #4958

AGENT GENERATED

@SawyerHood
SawyerHood merged commit be17db2 into main Oct 6, 2026
74 of 75 checks passed
@SawyerHood
SawyerHood deleted the slopcop/issue-4958 branch October 6, 2026 17:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Codex provider refuses reasoning effort none, which Codex accepts

1 participant