Commit d6f6ba1
fix(runner): use unbounded SSE tap queue (#1220)
## Summary
- SSE tap queues were bounded at `maxsize=100`, causing silent event
drops when no consumer was connected (CLI sessions, background agent
runs, slow frontends)
- Each queue is ephemeral — created per session, drained or GC'd when
the run ends — so unbounded buffering is safe
- Worst case: transient memory growth during a long Claude turn with no
SSE consumer; acceptable within the 4Gi pod memory limit
## Test plan
- [ ] Start a session via CLI (no SSE consumer) and verify no "SSE tap
queue full" warnings in runner logs
- [ ] Confirm session messages are delivered correctly end-to-end
🤖 Generated with [Claude Code](https://claude.ai/code)
<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit
* **Bug Fixes**
* Enhanced reliability of real-time event streaming by removing queue
capacity limitations, preventing potential event loss during high-volume
scenarios.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
Co-authored-by: Ambient Code Bot <bot@ambient-code.local>
Co-authored-by: Claude <noreply@anthropic.com>1 parent 8329cad commit d6f6ba1
2 files changed
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
150 | 150 | | |
151 | 151 | | |
152 | 152 | | |
153 | | - | |
| 153 | + | |
154 | 154 | | |
155 | 155 | | |
156 | 156 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
69 | 69 | | |
70 | 70 | | |
71 | 71 | | |
72 | | - | |
| 72 | + | |
73 | 73 | | |
74 | 74 | | |
75 | 75 | | |
| |||
0 commit comments