Commit dced39c
authored
🤖 fix: bump usageStore when MuxMessage is stored (#696)
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`_1 parent e4646a2 commit dced39c
1 file changed
+1
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
818 | 818 | | |
819 | 819 | | |
820 | 820 | | |
| 821 | + | |
821 | 822 | | |
822 | 823 | | |
823 | 824 | | |
| |||
0 commit comments