#1822·happy

Group Tool Calls never groups tool calls: the setting collapses finished turns, and skips turns that end without an agent-text

Author: tieoCreated Sep 20, 2026Updated Sep 20, 2026

Summary

The Group Tool Calls setting is described as "Collapse consecutive tool calls into one container", but nothing in the app groups consecutive tool calls. The toggle collapses a completed turn's intermediate messages instead, and only under conditions that a tool-heavy turn frequently fails to meet, so with the setting on the transcript still renders every tool call flat.

Where the promise is made

packages/happy-app/sources/text/_default.ts:236

typescript
groupToolCalls: 'Group Tool Calls',
groupToolCallsSubtitle: 'Collapse consecutive tool calls into one container',

packages/happy-app/sources/sync/settings.ts:55

typescript
groupToolCalls: z.boolean().describe('Collapse consecutive tool calls into grouped containers in chat'),

Where it is contradicted

packages/happy-app/sources/hooks/useGroupedMessages.ts:33

Grouping is single-level on purpose: while a turn is streaming every message
renders flat, and once the turn completes its intermediate work collapses
into one AgentWorkGroupItem above the final answer. There is no grouping of
adjacent tool calls — an expanded work group renders its members exactly as
they looked while streaming.

The setting is wired correctly (ChatList.tsx:286 reads it, :345 passes it to useGroupedMessages), so this is not a plumbing bug. The implemented feature is simply a different one from the one the label sells.

Why the implemented feature often does nothing either

collectAgentWorkGroups skips a turn entirely in three cases:

  • useGroupedMessages.ts:135 — if (finalTextIndex === undefined) continue; a turn that ends without an agent-text message never groups.
  • useGroupedMessages.ts:138 — if (hiddenIndexes.length === 0) continue; a turn needs at least one visible agent message before that final text.
  • useGroupedMessages.ts:122 — the streaming turn is excluded unless collapseCurrentTurn is set.

A turn made of nothing but tool calls therefore stays flat no matter what the setting says, which is exactly the case where grouping is worth the most.

Expected

Either of these would be consistent; they are different features and it is worth deciding which one the setting means:

  1. Group runs of adjacent tool calls into one container, as the subtitle states, independent of whether the turn produced a final text answer. Other agent clients summarise the run in a single line, e.g. Ran 10 commands and used 2 other tools, expandable to the individual calls. That reads well in a long tool-heavy turn and is what the setting's wording leads a user to expect.
  2. Keep turn-level collapsing only, and reword the setting to say so, e.g. "Collapse a finished turn's intermediate work above its answer."

Environment

packages/happy-app at 7e9dcd5, Android build, self-hosted server.


Disclosure: this report was written by an LLM, from a session that read the code on my machine while investigating why the setting appeared to do nothing, and posted with my approval. The quoted code and line numbers are real and were checked against that revision.