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
Fix context calculation: filter subagent messages and reset tokens on compaction (#37)
Filter subagent messages from main conversation: Both the live streaming accumulator (claude-code-implementer.ts) and the transcript reader (claude-transcript-reader.ts) now skip messages with parent_tool_use_id, preventing child-session content from inflating the parent session's message list and token counts.
Reset stale token snapshot on compaction: When a compaction event fires in SessionView, the context store's token snapshot for that session is cleared via a new clearSessionTokenSnapshot method, so the next assistant update carries accurate post-compaction values instead of stale pre-compaction ones.
New clearSessionTokenSnapshot action in useContextStore: Unlike resetSessionTokens (which wipes cost and model too), this only removes the token snapshot entry, preserving accumulated cost and model identity.
Gitignore local debug scripts: Added scripts/ to .gitignore for local playground/debug utilities.