Skip to content

Codex Fast mode toggle is not saved without sending a message #3403

Closed

Description

@hxy91819

Summary

Turning off Fast mode in an existing Codex thread does not save the choice unless another message is sent. The reported symptom is that switching to another thread and returning makes Fast mode appear enabled again. There is also a provider-serialization defect: the default tier is omitted instead of sending an explicit reset to Codex.

This reports incorrect behavior of the existing Fast toggle, separately from the broader SDK feature request in #3401 (closed as not planned). It does not request sticky permission-mode controls or reopening that feature request.

Versions and environment

  • Installed BB: 0.42.1, local source build.
  • Investigated source baseline: 40ed14cc7765b7e2d4c37b660eadbf982e5bac5b.
  • Linux arm64, kernel 6.8.0-138-generic; Node 22.19.0.
  • Codex CLI 0.154.0.
  • Fix verification: isolated source web app, separate dev database/server/daemon, synthetic threads.
  • Reproduction scope: the baseline's missing save is confirmed by a failing main-composer regression test. The original visual symptom was reported by the user; the full browser navigation/reload sequence was verified on the fixed source. I have not rerun the unfixed browser sequence on the latest upstream HEAD.

Steps to reproduce

  1. Create a Codex thread with Fast mode enabled. Send Reply only with ok. Do not use tools. and let it finish.
  2. Open the provider/model/reasoning picker in that thread's composer.
  3. Turn Fast mode off.
  4. Do not send another message.
  5. Open another thread in the sidebar, then return to the original thread and inspect the picker.

Expected vs actual

Expected: Fast mode stays off without requiring a dummy message. The next turn uses the default tier.

Reported actual UI behavior: the switch returns to enabled after navigating away and back.

Observed baseline test failure when the actual main-composer toggle is invoked:

FAIL  src/views/thread-detail/ThreadDetailPromptArea.test.tsx > ThreadDetailPromptArea > saves fast mode when toggled without sending a message
AssertionError: expected "vi.fn()" to be called with arguments: [ { threadId: 'thr_1', …(1) } ]
Number of calls: 0

The test asserts that the toggle saves { threadId: "thr_1", serviceTier: "default" }. The fixed implementation passes. Original visual reproduction screenshots are unavailable; fixed-run screenshots and raw recordings remain local because they include machine and model-catalog details.

Evidence

Two affected paths in the investigated baseline:

Fork fix and regression tests: 0e41dc3a3. The patch saves the toggle through the thread-update API, keeps execution-option caches synchronized, adds matching CLI/SDK access, and sends explicit null for the Codex default tier. This is one implementation proposal, not a request to adopt a particular API design.

On the fixed app, actual browser clicks verified disable → switch threads without sending → return → reload → re-enable. A CLI update to default followed by a real Codex turn completed with ok; both captured thread/resume and turn/start parameters contained:

{"serviceTier":null}

Relevant app/server/CLI/contract/Codex tests and typechecks passed. The bridge regression starts a fast session and verifies that the next default-tier turn sends explicit null. Sanitized investigation and verification details were initially recorded in this report; this issue is the separate bug-tracking entry requested by the reporter.

What you ruled out

Checks

  • Reproduction scope and the unverified latest-upstream browser check are explicitly stated above.
  • Searched open and closed issues.
  • Linked the investigation report, source evidence, fix, and regression tests.

AGENT GENERATED

Activity

  1. added theissue type on Sep 10, 2026
  2. added
    providers
    ui
    provider-codex
    partial-repro
    on Sep 10, 2026
  3. bb-slop-cop commented on Sep 10, 2026

    @bb-slop-cop
    Contributor

    🚨 SLOP COP 🚨 · new-issue-autopilot

    Classified as Bug · Priority: Medium · Effort: Medium; added providers, ui, provider-codex, and partial-repro. No existing classifications were replaced.

    Reproduction and root-cause report: PARTIALLY REPRODUCED, high root-cause confidence. Two focused tests failed identically on current main and in a second clean checkout: the update schema rejects a tier-only change, and Codex serialization omits the default tier. The composer only updates local state. Browser navigation and live-provider reset behavior remain unverified.

    No PR: the complete persistence fix requires a public schema change across multiple subsystems, outside this rule’s simple-fix limits.

    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

    partial-reproprovider-codexprovidersui

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions