Repository navigation
[Fix] Reasoning and API request rows after a batched read group are hidden - #2126
Conversation
batchNearby discarded every ignorable message collected while batching, so the api_req_started and reasoning rows after the last batched target (which belong to the next turn) disappeared. Only consume ignorable items between targets and re-emit the trailing ones. Fixes Zoo-Code-Org#2061 Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info
📜 Recent review details
📝 Summary
Merge Risk: ⚪ Minimal · up to
|
Review statusThanks for contributing. This comment tracks the review sequence and the next action. Current step: Awaiting fresh human maintainer or CODEOWNER approval. Automated review is complete for the latest commit but does not replace human approval. Review-state labels are managed by this workflow; do not edit them manually. |
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
Fixes #2061
Problem
batchNearby(webview) collects ignorable messages (api_req_started, reasoning, empty text) inpendingIgnorablewhile looking for more batch targets. When the batch had more than one item, all ofpendingIgnorablewas dropped, including the ones after the last target. Those belong to the next turn, so after a "read multiple files" card its API Request row and Thinking block never appeared, even after the turn finished. The same logic serves list_files and file-edit batches.Fix
pendingIgnorableis cleared each time another target is added (items between two targets are consumed by the batch, as before) and whatever remains after the last target is emitted after the synthesized batch item. The single-target case already restored them, so both branches now share that emission.Tests
Four new cases in
batchNearby.spec.ts: trailing items kept after a batch, kept before a boundary, kept after a single target, and no duplication across three targets. Chat component and utils suites (491 tests),tscand ESLint pass.🤖 Generated with Claude Code