You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Add --effort CLI option for shared app-server sessions #48321
Codex CLI 0.157.0, with the shared app-server daemon.
What feature would you like to see?
Please add a first-class --effort <LEVEL> CLI option, analogous to --model, to select the reasoning effort for a launch without changing config.toml. The option should work when the CLI is connected to the shared app-server daemon, so the resulting conversation remains a normal daemon-managed session that can be found and resumed alongside other sessions.
For example:
codex --effort high
codex resume <session-id> --effort high
The flag should validate the levels supported by the selected model, apply only to the requested session launch or resume, and leave the persistent default unchanged.
Additional information
Today I use a shell wrapper that translates --effort high into -c 'model_reasoning_effort="high"'. On CLI 0.157.0, running that override without --no-daemon starts the TUI with this warning:
Running without the shared background server: command-line configuration overrides (-c, --enable, --disable, or --search) requires embedded mode.
I reproduced this with codex -c 'model_reasoning_effort="high"' --no-alt-screen (no prompt was submitted). The selected effort appears as high, but the CLI runs in embedded mode. My wrapper adds --no-daemon only to avoid the warning; it does not restore shared app-server session behavior. This makes a one-off effort choice create a separate session path instead of staying with my usual daemon-managed sessions.
A dedicated effort option would allow a narrow, typed per-launch override to reach the shared app-server, like --model, without treating it as a general -c configuration override.
Same need here, plus service_tier. Our tmux launcher starts Codex agent
panes with --config model_reasoning_effort="<level>" and --config service_tier="default", and different roles run different
efforts. Both keys fall outside allowed_feature in tui/src/daemon_startup.rs (config_exclusion), so every such launch runs
embedded. The file is unchanged in rust-v0.157.1, rust-v0.158.0-alpha.15.1,
rust-v0.159.0-alpha.3, and main.
The client already forwards both settings: AppServerSession::turn_start
sends effort and service_tier with every turn, and a service_tier set
in config.toml reaches a daemon-attached session. Without the per-launch
override, a daemon-attached session on a custom provider without priority
processing fails its first turn with Fast mode is not supported for model ....
A typed --effort (and --service-tier) that the client sends per thread
would cover us, as would allowlisting model_reasoning_effort and service_tier as -c keys forwarded the same way.
Activity
usaloCKLEnTO commentedon Sep 26, 2026
Same need here, plus
service_tier. Our tmux launcher starts Codex agentpanes with
--config model_reasoning_effort="<level>"and--config service_tier="default", and different roles run differentefforts. Both keys fall outside
allowed_featureintui/src/daemon_startup.rs(config_exclusion), so every such launch runsembedded. The file is unchanged in rust-v0.157.1, rust-v0.158.0-alpha.15.1,
rust-v0.159.0-alpha.3, and
main.The client already forwards both settings:
AppServerSession::turn_startsends
effortandservice_tierwith every turn, and aservice_tiersetin
config.tomlreaches a daemon-attached session. Without the per-launchoverride, a daemon-attached session on a custom provider without priority
processing fails its first turn with
Fast mode is not supported for model ....A typed
--effort(and--service-tier) that the client sends per threadwould cover us, as would allowlisting
model_reasoning_effortandservice_tieras-ckeys forwarded the same way.astral303 commentedon Oct 10, 2026
Please also allow us to override context window size. I use different context windows for different tasks. I need them talking to each other.