Commit b1351e0
authored
🤖 fix: remove duplicate caught-up event in onChat subscription (#949)
## Summary
The `onChat` handler was pushing a `caught-up` event after
`replayHistory`, but `replayHistory` already sends `caught-up` at the
end of `emitHistoricalEvents`. This resulted in two `caught-up` events
being sent to the client.
## Changes
- Removed the duplicate `push({ type: "caught-up" })` from the router
since `session.replayHistory()` already sends it
## Testing
- Existing integration tests pass (`resumeStream.test.ts`)
- `WorkspaceStore.test.ts` passes
- Typecheck passes
---
_Generated with `mux`_1 parent 75cacba commit b1351e0
1 file changed
+1
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
370 | 370 | | |
371 | 371 | | |
372 | 372 | | |
373 | | - | |
| 373 | + | |
374 | 374 | | |
375 | 375 | | |
376 | 376 | | |
377 | 377 | | |
378 | | - | |
379 | | - | |
380 | | - | |
381 | | - | |
382 | | - | |
383 | 378 | | |
384 | 379 | | |
385 | 380 | | |
| |||
0 commit comments