From 1bdef365778b6fa0681bb1332594aa710b06f972 Mon Sep 17 00:00:00 2001 From: Jack Date: Thu, 5 Nov 2026 11:40:51 +0800 Subject: [PATCH] feat(chat): collapse tool calls by run --- .../2026-11-05-tool-call-groups.md | 10 +++++++++ .../components/hermes/chat/MessageList.vue | 22 +++++++++++++++++++ .../hermes/chat/groupRunMessages.ts | 4 +++- packages/client/src/i18n/locales/en.ts | 1 + packages/client/src/i18n/locales/zh.ts | 1 + packages/client/src/stores/hermes/chat.ts | 3 ++- tests/client/chat-group-run-messages.test.ts | 9 +++++++- tests/e2e/chat-streaming.spec.ts | 9 ++++++++ 8 files changed, 56 insertions(+), 3 deletions(-) create mode 100644 docs/chat-chain-changes/2026-11-05-tool-call-groups.md diff --git a/docs/chat-chain-changes/2026-11-05-tool-call-groups.md b/docs/chat-chain-changes/2026-11-05-tool-call-groups.md new file mode 100644 index 0000000..1b26959 --- /dev/null +++ b/docs/chat-chain-changes/2026-11-05-tool-call-groups.md @@ -0,0 +1,10 @@ +--- +date: 2026-11-05 +pr: pending +feature: Collapsible tool call groups +impact: Tool calls in each chat turn and the active run are collapsed by default, with individual details available after expansion. Chat events and persisted messages are unchanged. +--- + +The chat transcript groups each turn's tool calls in a single disclosure. The +active run's tool list uses a separate disclosure so approval and status +indicators remain visible. diff --git a/packages/client/src/components/hermes/chat/MessageList.vue b/packages/client/src/components/hermes/chat/MessageList.vue index 1ab1c27..f29028a 100644 --- a/packages/client/src/components/hermes/chat/MessageList.vue +++ b/packages/client/src/components/hermes/chat/MessageList.vue @@ -492,6 +492,10 @@ defineExpose({