Skip to content

Conversation

@ethanndickson
Copy link
Member

@ethanndickson ethanndickson commented Nov 21, 2025

When compaction is interrupted, we don't receive usage metadata from the interruption event itself. However, we do have historical usage data from messages stored in the aggregator. Without bumping usageStore when MuxMessages are received, the UI doesn't re-render to display this historical usage, making it appear as if costs have reset.

This single-line addition ensures the usage store stays in sync with message arrivals, so historical usage data is properly reflected in the UI.

Changes

  • Added this.usageStore.bump(workspaceId) after live MuxMessage storage in WorkspaceStore

Testing

  • Verified typecheck passes
  • Change follows existing pattern from stream-end/stream-abort handlers

Relates to #695

Generated with mux

When compaction is interrupted, we don't receive usage metadata from the
interruption event itself. However, we do have historical usage data from
messages stored in the aggregator. Without bumping usageStore when
MuxMessages are received, the UI doesn't re-render to display this
historical usage, making it appear as if costs have reset.

This single-line addition ensures the usage store stays in sync with
message arrivals, so historical usage data is properly reflected in the UI.

Fixes #695

_Generated with `mux`_
@ethanndickson ethanndickson added this pull request to the merge queue Nov 21, 2025
@ethanndickson ethanndickson removed this pull request from the merge queue due to a manual request Nov 21, 2025
@ethanndickson ethanndickson added this pull request to the merge queue Nov 21, 2025
@ethanndickson ethanndickson removed this pull request from the merge queue due to a manual request Nov 21, 2025
@ethanndickson ethanndickson added this pull request to the merge queue Nov 21, 2025
Merged via the queue into main with commit dced39c Nov 21, 2025
13 checks passed
@ethanndickson ethanndickson deleted the trace-mux-message-handling branch November 21, 2025 08:56
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.

1 participant