Skip to content

fix(provider): skip must clear leftover Codex thinking effort - #87

Merged
cursor[bot] merged 1 commit into
devfrom
cursor/skip-clears-persisted-effort-214b
Aug 28, 2026
Merged

cursor[bot] merged 1 commit into
devfrom
cursor/skip-clears-persisted-effort-214b

Conversation

@xjoker

@xjoker xjoker commented Aug 28, 2026

Copy link
Copy Markdown
Owner

Summary

Codex 0.150.1 still showed deepseek-v4-flash high after the launch picker chose (skip), then POST {base_url}/v1/responses 404'd.

Two leftovers were still a thinking level:

  1. Isolated config.toml. Codex writes model_reasoning_effort when /model changes effort. Skip only omitted -c, so 0.150 sent the leftover high.
  2. Catalog default none. 0.150 always puts reasoning.effort on the request when the catalog has a default, including none. Some gateways 404 on that field.

Change

  • Clear model_reasoning_effort from $CODEX_SWITCH_HOME/providers/<alias>/codex-home/config.toml on every provider launch. This launch's -c is the only way that key comes back.
  • Skip also drops --set model_reasoning_effort=… extras.
  • Non-thinking / skip catalog entries have an empty supported_reasoning_levels list and omit default_reasoning_level.

If a slug still 404s after skip, that id has no Responses channel; pick another.

Tests

  • cargo test --lib provider::
  • cargo test --lib launch::
  • cargo test --test test_launch_passthrough
  • cargo clippy --all-targets -- -D warnings
  • cargo test --all

New coverage: leftover isolated high is stripped; skip drops extras; skip catalog for a saved-high slug has no default.

Open in Web Open in Cursor 

Codex 0.150 sends reasoning.effort whenever isolated config.toml or the
catalog has a level. A previous /model or launch left high in the
provider home, so picker skip still showed high and some gateways 404'd
POST /responses. Clear that key on launch, drop it from extras on skip,
and catalog non-thinking slugs with no default.

Co-authored-by: lolitaupdate <[email protected]>
@xjoker
xjoker marked this pull request as ready for review August 28, 2026 02:20
@cursor
cursor Bot merged commit 8684f84 into dev Aug 28, 2026
4 checks passed
@xjoker
xjoker deleted the cursor/skip-clears-persisted-effort-214b branch September 9, 2026 01:32
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.

2 participants