Clarify resume guidance in exit summaries (#41938)

## What changed

- Show the exact `codex resume <thread-id>` command on its own indented line.
- When a thread has a name, also explain that users can run `codex resume` and select the named thread from the picker.
- Apply command highlighting to both resume options when color is enabled.

## Testing

- Cover unnamed, empty-name, named, colored, and embedded-session exit summaries.

GitOrigin-RevId: d97c04db8a34376c6d9ea839b515b04a384b85d1
This commit is contained in:
Benjamin Carlsson authored and copyberry committed 2026-09-01 00:02:38 +00:00
1 parent 115ffaf8bf
commit 0e03f88a30
5 files changed
+82 -40

No files matched your search

+2 -7
View File
@@ -423,7 +423,7 @@ const COMMIT_ANIMATION_TICK: Duration = tui::TARGET_FRAME_INTERVAL;
pub struct AppExitInfo {
pub token_usage: TokenUsage,
pub thread_id: Option<ThreadId>,
pub resume_hint: Option<String>,
pub resume_hint: Option<ResumableThread>,
pub disconnect_info: Option<DisconnectInfo>,
pub update_action: Option<UpdateAction>,
pub exit_reason: ExitReason,
@@ -443,6 +443,7 @@ impl AppExitInfo {
}
pub use exit_summary::DisconnectInfo;
pub use exit_summary::ResumableThread;
#[derive(Debug)]
pub(crate) enum AppRunControl {
@@ -479,12 +480,6 @@ fn session_summary(
})
}
#[derive(Debug, Clone, PartialEq, Eq)]
struct ResumableThread {
thread_id: ThreadId,
thread_name: Option<String>,
}
fn resumable_thread(
thread_id: Option<ThreadId>,
thread_name: Option<String>,