fix: persist stats across session changes, only reset on disconnect #59

Closed
opened 2026-01-23 12:36:57 -08:00 by naomi · 0 comments
Owner

Current Behaviour

Stats (token counts, costs, etc.) reset whenever the session changes - including during permission prompts, interrupts, and other session state changes.

Expected Behaviour

  • Stats should persist across all session changes (permission prompts, interrupts, question prompts, etc.)
  • Stats should only reset when the user explicitly clicks "Disconnect"

Implementation Notes

The stats likely need to be stored separately from the conversation/session state, or we need to distinguish between:

  1. Session changes that should preserve stats (permission, interrupt, question prompts)
  2. Explicit disconnection which should reset everything

This issue was created with help from Hikari~ 🌸

## Current Behaviour Stats (token counts, costs, etc.) reset whenever the session changes - including during permission prompts, interrupts, and other session state changes. ## Expected Behaviour - Stats should **persist** across all session changes (permission prompts, interrupts, question prompts, etc.) - Stats should **only reset** when the user explicitly clicks "Disconnect" ## Implementation Notes The stats likely need to be stored separately from the conversation/session state, or we need to distinguish between: 1. Session changes that should preserve stats (permission, interrupt, question prompts) 2. Explicit disconnection which should reset everything --- ✨ This issue was created with help from Hikari~ 🌸
naomi closed this issue 2026-01-24 12:45:17 -08:00
Sign in to join this conversation.
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: nhcarrigan/hikari-desktop#59