Describe the bug
The usage information displayed to the user shows output token count as a per-turn value rather than an accumulated total across the entire session.
Current behavior
The output_tokens field shown in the UI appears to only reflect the most recent turn's token consumption, not the cumulative count since the session started.
Where to look
crates/core/src/execution.rs:215 — output_tokens: Option<i64> field appears to be per-turn
crates/core/src/session.rs:244 — total_output_tokens: usize exists but may not be properly propagated to the UI
- The accumulated usage tracking at
crates/core/src/execution.rs:919-929 accumulates per-turn, but the UI may be reading the wrong field
Expected behavior
The output token display should show the total accumulated output tokens for the entire session, not just the current turn.
Describe the bug
The usage information displayed to the user shows output token count as a per-turn value rather than an accumulated total across the entire session.
Current behavior
The
output_tokensfield shown in the UI appears to only reflect the most recent turn's token consumption, not the cumulative count since the session started.Where to look
crates/core/src/execution.rs:215—output_tokens: Option<i64>field appears to be per-turncrates/core/src/session.rs:244—total_output_tokens: usizeexists but may not be properly propagated to the UIcrates/core/src/execution.rs:919-929accumulates per-turn, but the UI may be reading the wrong fieldExpected behavior
The output token display should show the total accumulated output tokens for the entire session, not just the current turn.