tui: route tui through app-server notifications

This commit is contained in:
Eric Traut
2026-04-29 23:48:07 -07:00
parent 30b42c7993
commit 839d2c684f
74 changed files with 4849 additions and 8058 deletions
+2 -5
View File
@@ -533,10 +533,7 @@ fn format_exit_messages(exit_info: AppExitInfo, color_enabled: bool) -> Vec<Stri
let mut lines = Vec::new();
if !token_usage.is_zero() {
lines.push(format!(
"{}",
codex_protocol::protocol::FinalOutput::from(token_usage)
));
lines.push(token_usage.to_string());
}
if let Some(resume_cmd) =
@@ -1688,7 +1685,7 @@ mod tests {
use super::*;
use assert_matches::assert_matches;
use codex_protocol::ThreadId;
use codex_protocol::protocol::TokenUsage;
use codex_tui::TokenUsage;
use pretty_assertions::assert_eq;
fn finalize_resume_from_args(args: &[&str]) -> TuiCli {