[Bug] TUI does not display cumulative session cost #1424
Xsidz
started this conversation in
Bug reports
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Problem
The TUI shows context usage in the tray but never shows cost.
AgentConnectionStatehas nosessionCostfield, sointeractive-mode.tscannot surface it even though the session tracks it internally viagetSessionStats().Fix
sessionCost?: numbertoAgentConnectionStateintypes.tssnapshot.ts, readsession.getSessionStats()once and set bothcontextUsageandsessionCostfrom itinteractive-mode.ts, addformatSessionCost()and updategetTrayContextLabel()to display the cost alongside context usagePR #919 implements this fix. Posting here per the new discussion-first process.
All reactions