Repository navigation
feat(chat): group exploration tool calls - #392
Conversation
Collapse consecutive read, search and fetch tool calls in the chat transcript into one expandable summary line, matching the OpenCode TUI. Adds a groupToolCalls preference (default on) with a Settings toggle.
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configuration
📒 Files selected for processing (8)
Included review availability: This review used your included allowance. Your plan provides up to 4 included reviews per hour; 3 remain after this review. 📝 WalkthroughWalkthroughAssistant messages can group consecutive exploration tool calls into collapsible summaries. The new ChangesExploration tool grouping
Priority: ⬇️ Low Estimated code review effort: 3 (Moderate) | ~20 minutes Change: Feature Sequence Diagram(s)sequenceDiagram
actor User
participant MessageThread
participant groupExplorationParts
participant ExplorationGroup
participant MessagePart
MessageThread->>groupExplorationParts: Group assistant content when enabled
groupExplorationParts-->>MessageThread: Return exploration groups and individual items
MessageThread->>ExplorationGroup: Render grouped tool parts
User->>ExplorationGroup: Select summary to expand
ExplorationGroup->>MessagePart: Render each part when expanded
Merge Risk: ⚪ Minimal · up to This change adds grouped exploration tool calls with a default-on preference and a settings toggle. Older stored settings still load because defaults are merged first. No merge-blocking risk is evident. 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✨ Finishing Touches 💡 1📝 Generate docstrings 💡
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Summary
Collapses consecutive read, search and fetch tool calls in the chat transcript into one expandable summary line, matching the OpenCode TUI's grouping.
groupExplorationPartsgroups runs ofread,glob,grep,webfetchandwebsearchwithin a message, using the same five tools and pluralized nouns as the TUI.ExplorationGrouprenders the collapsed line (→ Explored: 5 reads, 2 searches, orExploring:with a spinner while running) and reveals the individual tool rows on click.groupToolCallspreference (default on) with a "Group exploration" toggle in Settings → General; "Expand tool calls" also opens groups by default.Type of Change
Checklist
pnpm lintpasses locallypnpm typecheckpasses locallyFrontend and backend typecheck clean;
pnpm lintreports 0 errors (41 pre-existingno-explicit-anywarnings). Full frontend suite passes (2310 tests) and backend settings and assistant suites pass (228 tests). New tests cover the grouping and label rules (explorationGroups.test.ts) and collapse/expand plus the disabled preference (MessageThread.test.tsx).Summary by CodeRabbit