hint for codex resume on tui exit (#3757)

<img width="931" height="438" alt="Screenshot 2025-09-16 at 4 25 19 PM"
src="https://github.com/user-attachments/assets/ccfb8df1-feaf-45b4-8f7f-56100de916d5"
/>
This commit is contained in:
Jeremy Rose
2025-09-18 09:28:32 -07:00
committed by GitHub
parent 4a5d6f7c71
commit 84a0ba9bf5
6 changed files with 43 additions and 10 deletions

View File

@@ -177,8 +177,11 @@ async fn cli_main(codex_linux_sandbox_exe: Option<PathBuf>) -> anyhow::Result<()
root_config_overrides.clone(),
);
let usage = codex_tui::run_main(interactive, codex_linux_sandbox_exe).await?;
if !usage.is_zero() {
println!("{}", codex_core::protocol::FinalOutput::from(usage));
if !usage.token_usage.is_zero() {
println!(
"{}",
codex_core::protocol::FinalOutput::from(usage.token_usage)
);
}
}
Some(Subcommand::Exec(mut exec_cli)) => {