feat(chat): group exploration tool calls

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.
This commit is contained in:
Chris Scott committed 2026-10-07 16:40:38 -04:00
1 parent 81dd00e89f
commit 02d2e89bca
8 files changed
+242 -10

No files matched your search

@@ -143,6 +143,20 @@ export function GeneralSettings() {
/>
</div>
<div className="flex items-start justify-between gap-4 py-3">
<div className="min-w-0 space-y-0.5">
<Label htmlFor="groupToolCalls">Group exploration</Label>
<p className="text-sm text-muted-foreground">
Collapse consecutive reads, searches, and fetches into one summary line
</p>
</div>
<Switch
id="groupToolCalls"
checked={preferences?.groupToolCalls ?? true}
onCheckedChange={(checked) => updateSettings({ groupToolCalls: checked })}
/>
</div>
<div className="flex items-start justify-between gap-4 py-3">
<div className="min-w-0 space-y-0.5">
<Label htmlFor="expandToolCalls">Expand tool calls</Label>