core-agent-ide/codex-rs/common/src
Lionel Cheng a6597a9958
Fix/correct reasoning display (#6749)
This closes #6748 by implementing fallback to
`model_family.default_reasoning_effort` in `reasoning_effort` display of
`/status` when no `model_reasoning_effort` is set in the configuration.

## common/src/config_summary.rs

- `create_config_summary_entries` now fills the "reasoning effort" entry
with the explicit `config.model_reasoning_effort` when present and falls
back to `config.model_family.default_reasoning_effort` when it is
`None`, instead of emitting the literal string `none`.
- This ensures downstream consumers such as `tui/src/status/helpers.rs`
continue to work unchanged while automatically picking up model-family
defaults when the user has not selected a reasoning effort.

## tui/src/status/helpers.rs / core/src/model_family.rs

`ModelFamily::default_reasoning_effort` metadata is set to `medium` for
both `gpt-5*-codex` and `gpt-5` models following the default behaviour
of the API and recommendation of the codebase:
- per https://platform.openai.com/docs/api-reference/responses/create
`gpt-5` defaults to `medium` reasoning when no preset is passed
- there is no mention of the preset for `gpt-5.1-codex` in the API docs
but `medium` is the default setting for `gpt-5.1-codex` as per
`codex-rs/tui/src/chatwidget/snapshots/codex_tui__chatwidget__tests__model_reasoning_selection_popup.snap`

---------

Signed-off-by: lionelchg <lionel.cheng@hotmail.fr>
Co-authored-by: Eric Traut <etraut@openai.com>
2025-11-19 15:52:24 -08:00
..
approval_mode_cli_arg.rs [approval_policy] Add OnRequest approval_policy (#1865) 2025-08-05 20:44:20 -07:00
approval_presets.rs Prompt to turn on windows sandbox when auto mode selected. (#6618) 2025-11-18 11:38:18 -08:00
config_override.rs chore: verify boolean values can be parsed as config overrides (#6516) 2025-11-12 08:19:16 -08:00
config_summary.rs Fix/correct reasoning display (#6749) 2025-11-19 15:52:24 -08:00
elapsed.rs Add spacing to timer duration formats (#3471) 2025-09-12 12:05:57 -04:00
format_env_display.rs [MCP] Redact environment variable values in /mcp and mcp get (#5648) 2025-10-24 18:30:20 -04:00
fuzzy_match.rs Scrollable slash commands (#1830) 2025-08-06 21:23:09 -07:00
lib.rs LM Studio OSS Support (#2312) 2025-11-17 11:49:09 -08:00
model_presets.rs feat: arcticfox in the wild (#6906) 2025-11-19 16:31:06 +00:00
oss.rs LM Studio OSS Support (#2312) 2025-11-17 11:49:09 -08:00
sandbox_mode_cli_arg.rs chore: move mcp-server/src/wire_format.rs to protocol/src/mcp_protocol.rs (#2423) 2025-08-18 09:36:57 -07:00
sandbox_summary.rs feat: add /tmp by default (#1919) 2025-08-07 00:17:00 -07:00