Skip to content

armgit / codex

Public Imported from GitHub
0

Lightweight coding agent that runs in your terminal

Rust

feat: move session ID bullet in /status (#2462)

ae783654e218c7
diff --git a/codex-rs/tui/src/history_cell.rs b/codex-rs/tui/src/history_cell.rs
index d9ce9ad5e5..58677c724a 100644
--- a/codex-rs/tui/src/history_cell.rs
+++ b/codex-rs/tui/src/history_cell.rs
@@ -537,13 +537,6 @@ pub(crate) fn new_status_output(
sandbox_name.into(),
]));
- if let Some(session_id) = session_id {
- lines.push(Line::from(vec![
- " β€’ Session ID: ".into(),
- session_id.to_string().into(),
- ]));
- }
-
lines.push(Line::from(""));
// πŸ‘€ Account (only if ChatGPT tokens exist), shown under the first block
@@ -608,6 +601,12 @@ pub(crate) fn new_status_output(
// πŸ“Š Token Usage
lines.push(Line::from(vec!["πŸ“Š ".into(), "Token Usage".bold()]));
+ if let Some(session_id) = session_id {
+ lines.push(Line::from(vec![
+ " β€’ Session ID: ".into(),
+ session_id.to_string().into(),
+ ]));
+ }
// Input: <input> [+ <cached> cached]
let mut input_line_spans: Vec<Span<'static>> = vec![
" β€’ Input: ".into(),