You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
feat(history): durable response_stats — persist token stats per user-turn #379
Persist token usage stats per user-turn so they survive restarts, and make the data trustworthy. Adopted from jcode's durable response_stats (tier A). Also unblocks future glm-dash integration.
Acceptance criteria
Per user-turn stats persisted in history storage: input / output / cache-read / cache-write tokens (plus cost data if the cost model already exists).
UNKNOWN-NONZERO rule: fields the provider does not report stay null/absent — never coerced to 0. Unknown ≠ zero.
No elapsed-time invention from timestamps (if not measured, not shown).
History schema extended without breaking old sessions: pre-change sessions still load and render fine.
Implemented in the merged PR for this issue: per-user-turn stats derived from the durable usage ledger (usage_report.turns, tole status). Unknown stays null/n/a, no elapsed time, old sessions fold unchanged. Leaving the issue open only for the live restart check against a real provider, which could not be run without provider credentials.
Verified SHIPPED against develop @ 3ec70f4: the feature exists in code (CHANGELOG entries + module/endpoint present — soft-interrupt queue in cancel.rs + POST /sessions/{id}/interrupt + MCP tool for #377, doctor-ledger.json for #378, per-turn usage_report for #379, sibling_watch for #380, tole_core::handoff + verify gate for #383). The acceptance checkboxes were never ticked even though the work shipped (known board-sync defect class). Closing with this evidence comment. Remaining gaps, if any, are tracked by follow-up issues instead.
Activity
ajianaz commentedon Oct 16, 2026
Implemented in the merged PR for this issue: per-user-turn stats derived from the durable usage ledger (
usage_report.turns,tole status). Unknown stays null/n/a, no elapsed time, old sessions fold unchanged. Leaving the issue open only for the live restart check against a real provider, which could not be run without provider credentials.feat(cli): per-user-turn token stats derived from the usage ledger (#379
ajianaz commentedon Nov 3, 2026
Verified SHIPPED against develop @ 3ec70f4: the feature exists in code (CHANGELOG entries + module/endpoint present — soft-interrupt queue in
cancel.rs+POST /sessions/{id}/interrupt+ MCP tool for #377,doctor-ledger.jsonfor #378, per-turnusage_reportfor #379,sibling_watchfor #380,tole_core::handoff+ verify gate for #383). The acceptance checkboxes were never ticked even though the work shipped (known board-sync defect class). Closing with this evidence comment. Remaining gaps, if any, are tracked by follow-up issues instead.