Skip to content

chore(release): merge dev to main#388

Merged
zbigniewsobiecki merged 2 commits intomainfrom
dev
Feb 5, 2026
Merged

chore(release): merge dev to main#388
zbigniewsobiecki merged 2 commits intomainfrom
dev

Conversation

@zbigniewsobiecki
Copy link
Owner

Release fix for maxGadgetsPerResponse stream loop break

zbigniewsobiecki and others added 2 commits February 5, 2026 17:19
Previously, when maxGadgetsPerResponse limit was hit, each subsequent
gadget was individually skipped with a skip event. This wasted tokens
(LLM kept generating) and time (still processing the full response).

Now when the limit is hit:
- Set limitExceeded flag and emit one skip event for the triggering gadget
- Break the stream loop immediately (stop reading chunks)
- In-flight gadgets complete normally
- Agent continues to next iteration

Changes:
- Add limitExceeded flag to StreamProcessor
- Check flag in main stream loop and break when set
- Early exit in processGadgetCallGenerator for buffered gadgets
- Early exit in processPendingGadgetsGenerator
- Update e2e tests to expect 1 skip event (not N)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
fix(agent): break stream loop when gadget limit exceeded
@zbigniewsobiecki zbigniewsobiecki merged commit a43c6bf into main Feb 5, 2026
7 checks passed
@codecov-commenter
Copy link

⚠️ Please install the 'codecov app svg image' to ensure uploads and comments are reliably processed by Codecov.

Codecov Report

❌ Patch coverage is 76.92308% with 3 lines in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
packages/llmist/src/agent/stream-processor.ts 76.92% 3 Missing ⚠️

📢 Thoughts on this report? Let us know!

zbigniewsobiecki pushed a commit that referenced this pull request Feb 5, 2026
## <small>15.15.1 (2026-02-05)</small>

* Merge pull request #387 from zbigniewsobiecki/fix/max-gadgets-break-loop ([5c56c11](5c56c11)), closes [#387](#387)
* Merge pull request #388 from zbigniewsobiecki/dev ([a43c6bf](a43c6bf)), closes [#388](#388)
* fix(agent): break stream loop when gadget limit exceeded ([891c7e4](891c7e4))
@zbigniewsobiecki
Copy link
Owner Author

🎉 This PR is included in version 15.15.1 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants