mirror of
https://github.com/openai/codex.git
synced 2026-11-18 23:02:23 +00:00
Clarify session exit messages (#40670)
## What changed - Report `Session archived: <thread-id>` after successfully archiving the current session. - Show the session ID when no resume hint is available, including for non-fatal exits. - Keep deleted-thread exits distinct from successful archive exits. ## Testing - Add coverage for archive lifecycle handling and exit-message formatting. GitOrigin-RevId: 1812374e4c74fa1b3f11feb323de18a9dbff745b
This commit is contained in:
1 parent
afb797cae6
commit
731d969d03
6 files changed
+86
-16
No files matched your search
@@ -3106,7 +3106,7 @@ impl App {
|
||||
}
|
||||
|
||||
match app_server.thread_archive(thread_id).await {
|
||||
Ok(()) => AppRunControl::Exit(ExitReason::ThreadRemoved),
|
||||
Ok(()) => AppRunControl::Exit(ExitReason::Archived(thread_id)),
|
||||
Err(err) => {
|
||||
self.chat_widget
|
||||
.add_error_message(format!("Failed to archive current thread: {err}"));
|
||||
|
||||
Reference in new issue
Block a user