Hide reasoning summary settings in /status for server connections (#49145)

## What changed

Omit the reasoning summaries setting from the model details when connected to a remote server or local background server. Continue displaying it when no server connection is present.

## Testing

Expand status snapshots to cover no server connection, a remote server, and a local background server, including the reasoning summary setting visibility in each case.

GitOrigin-RevId: f7213e7ad7439107705461ccf4e070501729113b
This commit is contained in:
Eric Traut
2026-09-29 03:24:14 +00:00
committed by copyberry
parent ff3c82c8a9
commit 8d48f71922
5 changed files with 38 additions and 16 deletions
+9 -7
View File
@@ -322,13 +322,15 @@ impl StatusHistoryCell {
.map(|effort| effort.to_string())
.unwrap_or_else(|| "none".to_string());
config_entries.push(("reasoning effort", effort_value));
config_entries.push((
"reasoning summaries",
config
.model_reasoning_summary
.map(|summary| summary.to_string())
.unwrap_or_else(|| "auto".to_string()),
));
if remote_connection.is_none() {
config_entries.push((
"reasoning summaries",
config
.model_reasoning_summary
.map(|summary| summary.to_string())
.unwrap_or_else(|| "auto".to_string()),
));
}
}
let (model_name, model_details) = compose_model_display(model_name, &config_entries);
let approval = config_entries
@@ -11,7 +11,7 @@ expression: sanitized
Server: Local background server
Model: gpt-5.1-codex-max (reasoning medium, summaries auto)
Model: gpt-5.1-codex-max (reasoning medium)
Directory: [[workspace]]
Permissions: Custom (workspace with network access, Ask for approval)
Agents.md: <none>
@@ -0,0 +1,22 @@
---
source: tui/src/status/tests.rs
expression: sanitized
---
/status
>_ OpenAI Codex (v0.0.0)
Visit https://chatgpt.com/codex/settings/usage for up-to-date
information on rate limits and credits
Server: unix:///tmp/codex-home/app-server-control/app-server-
control.sock (v0.133.0)
Model: gpt-5.1-codex-max (reasoning medium)
Directory: [[workspace]]
Permissions: Custom (workspace with network access, Ask for approval)
Agents.md: <none>
Token usage: 750 total (500 input + 250 output)
Context window: 100% left (750 used / 272K)
Limits: data not available yet
@@ -9,9 +9,6 @@ expression: sanitized
Visit https://chatgpt.com/codex/settings/usage for up-to-date
information on rate limits and credits
Server: unix:///tmp/codex-home/app-server-control/app-server-
control.sock (v0.133.0)
Model: gpt-5.1-codex-max (reasoning medium, summaries auto)
Directory: [[workspace]]
Permissions: Custom (workspace with network access, Ask for approval)
+6 -5
View File
@@ -1710,17 +1710,18 @@ async fn status_snapshot_uses_default_reasoning_when_config_empty() {
.expect("timestamp");
for (is_local_daemon, snapshot) in [
(
false,
None,
"status_snapshot_uses_default_reasoning_when_config_empty",
),
(true, "status_snapshot_local_background_server"),
(Some(false), "status_snapshot_remote_server"),
(Some(true), "status_snapshot_local_background_server"),
] {
let remote_connection = RemoteConnectionStatus {
let remote_connection = is_local_daemon.map(|is_local_daemon| RemoteConnectionStatus {
address: "unix:///tmp/codex-home/app-server-control/app-server-control.sock"
.to_string(),
version: "v0.133.0".to_string(),
is_local_daemon,
};
});
let model_slug = get_model_offline_for_tests(config.model.as_deref());
let token_info = token_info_for(&model_slug, &config, &usage);
@@ -1728,7 +1729,7 @@ async fn status_snapshot_uses_default_reasoning_when_config_empty() {
&config,
/*requires_openai_auth*/ true,
/*model_provider_id*/ None,
Some(&remote_connection),
remote_connection.as_ref(),
account_display.as_ref(),
Some(&token_info),
&usage,