Skip to content

1.0.25

Choose a tag to compare

@morapelker morapelker released this 18 Feb 16:13
· 3171 commits to main since this release

What's Changed

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.