fix(assistant): a session names the follow-ups a read, as they change nothing

This commit is contained in:
Maurice
2026-10-23 13:18:38 +02:00
parent 8afc20e1ab
commit 3292a092ae
@@ -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;
}