mirror of
https://github.com/openai/codex.git
synced 2026-11-15 21:50:46 +00:00
Hide TUI status details for read-only history (#61219)
## What changed Track whether a thread is being viewed without a live attachment. Hide the status line and context usage for saved history and unavailable conversations, even when token usage updates arrive. Restore these displays when the thread resumes interactively, including sessions using read-only permissions. Avoid a leading separator before the Vim mode indicator when context usage is hidden. ## Testing Add regression coverage for history viewing, token updates, and interactive resume. Update unavailable-conversation snapshots to omit the status line. GitOrigin-RevId: 14dfd2ee0f232001814b7fc45a5ac8a5d755669b
This commit is contained in:
@@ -76,7 +76,7 @@ impl AppServerSession {
|
||||
"Showing up to 100 recent prompts and final replies. Intermediate messages and tool activity are unavailable.",
|
||||
);
|
||||
}
|
||||
let session = thread_session_state_from_thread_response(
|
||||
let mut session = thread_session_state_from_thread_response(
|
||||
&thread.id,
|
||||
crate::windows_sandbox::host_from_environments(thread.environments.as_deref()),
|
||||
thread.forked_from_id.clone(),
|
||||
@@ -97,6 +97,7 @@ impl AppServerSession {
|
||||
)
|
||||
.await
|
||||
.map_err(color_eyre::eyre::Report::msg)?;
|
||||
session.read_only_history = true;
|
||||
self.freeze_viewed_receipt(thread_id);
|
||||
Ok((
|
||||
AppServerStartedThread {
|
||||
|
||||
Reference in New Issue
Block a user