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

+1
View File
@@ -55,6 +55,7 @@ export const AssistantSettingsPatchSchema = UserPreferencesSchema.pick({
autoScroll: true,
expandDiffs: true,
expandToolCalls: true,
groupToolCalls: true,
showReasoning: true,
simpleChatMode: true,
leaderKey: true,
+2
View File
@@ -173,6 +173,7 @@ export const UserPreferencesSchema = z.object({
autoScroll: z.boolean(),
expandDiffs: z.boolean(),
expandToolCalls: z.boolean(),
groupToolCalls: z.boolean(),
showReasoning: z.boolean(),
simpleChatMode: z.boolean(),
leaderKey: z.string().optional(),
@@ -228,6 +229,7 @@ export const DEFAULT_USER_PREFERENCES = {
autoScroll: true,
expandDiffs: true,
expandToolCalls: false,
groupToolCalls: true,
showReasoning: false,
simpleChatMode: false,
leaderKey: DEFAULT_LEADER_KEY,