Skip to content

feat: add Codex Fast mode toggle - #255

Merged
qiankunli merged 1 commit into
mainfrom
feat/codex-fast-mode
Aug 11, 2026
Merged

feat: add Codex Fast mode toggle#255
qiankunli merged 1 commit into
mainfrom
feat/codex-fast-mode

Conversation

@qiankunli

Copy link
Copy Markdown
Collaborator

Expose the effective Codex Fast tier in the Harness status line.
Add /fast to toggle Fast for the current session through native thread settings.
Keep provider-specific behavior inside the Codex adapter and cover it with tests.

Expose the effective Codex Fast tier in the Harness status line.
Add /fast to toggle Fast for the current session through native thread settings.
Keep provider-specific behavior inside the Codex adapter and cover it with tests.
@qiankunli
qiankunli merged commit b99ae6e into main Aug 11, 2026
type: "boolean",
name: "Fast",
category: "model",
value: isFastServiceTier(serviceTier) && model?.supportsFast !== false,

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🤖 devloop code-review · seed-2.1-turbo

When codexModelSupportsFast returns undefined (old app-server that doesn't provide serviceTiers or additionalSpeedTiers in the model catalog), the Fast toggle appears as a normal, functional option with the description "Use Codex Fast mode for subsequent turns." The user has no indication that Fast support is unconfirmed.

If the user toggles Fast ON, setConfig's guard at line 1217 (selected?.supportsFast === false) passes because undefined !== false. The thread/settings/update RPC is sent with serviceTier: "priority". The server may reject this silently or with an error that the user cannot easily associate with model incompatibility.

The fix should treat undefined supportsFast as "unknown" rather than "supported": either disable the toggle with a descriptive message like "Fast mode support unknown for this app-server version", or omit the Fast option entirely when supportsFast is undefined.

ccr:fp=b00b989130bc

@qiankunli

Copy link
Copy Markdown
Collaborator Author

🤖 devloop code-review · origin/main..HEAD · 644369a18 · models: deepseek-v4-pro×20, seed-2.1-pro×21, seed-2.1-turbo×22 · cost: 304s · ccr v1.13.48

1 finding(s)(1 条已作为独立 review thread 发布)

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