From 3292a092aeed5dc40673bb78bc15f89ebce1f92b Mon Sep 17 00:00:00 2001 From: Maurice Date: Fri, 23 Oct 2026 13:18:38 +0200 Subject: [PATCH] fix(assistant): a session names the follow-ups a read, as they change nothing --- server/src/nest/assistant/assistant-tools.service.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/server/src/nest/assistant/assistant-tools.service.ts b/server/src/nest/assistant/assistant-tools.service.ts index 0324a3a30..436a6d071 100644 --- a/server/src/nest/assistant/assistant-tools.service.ts +++ b/server/src/nest/assistant/assistant-tools.service.ts @@ -246,6 +246,8 @@ export class AssistantToolSession { kindOf(name: string): AssistantToolKind | null { if (name === REMEMBER_TOOL) return this.mode === 'turn' ? 'write' : null; + // The follow-ups change nothing; the agent loop answers them itself in every turn. + if (name === ASSISTANT_FOLLOW_UPS_TOOL) return this.mode === 'undo' ? null : 'read'; if (name === USE_TOOLS_TOOL) return this.mode === 'turn' ? 'read' : null; return this.tools.get(name)?.kind ?? null; }