Skip to content

fix: correctly aggregate session cost in pinned message#54

Merged
grinev merged 1 commit intogrinev:mainfrom
oxcafedead:fix/pinned-message-cost-summing
Mar 19, 2026
Merged

fix: correctly aggregate session cost in pinned message#54
grinev merged 1 commit intogrinev:mainfrom
oxcafedead:fix/pinned-message-cost-summing

Conversation

@oxcafedead
Copy link
Contributor

Description of changes

Fixed a bug where the total session cost in the pinned message was overwritten by the cost of the last message instead of being accumulated.

How it was tested

  • Verified manually using different cases: including session change aka reset.

Checklist

  • PR title follows Conventional Commits: fix: correctly aggregate session cost in pinned message
  • This PR contains one logically complete change
  • Branch is rebased on the latest main
  • I ran npm run lint, npm run build, and npm test (Verified via tsc, unit tests for aggregator were checked for regression)
  • If this PR is OS-sensitive, behavior/limitations for Linux/macOS/Windows are described

@grinev grinev merged commit 6619532 into grinev:main Mar 19, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants