Skip to content

armgit / TREK

Public Imported from GitHub
0

The most complete open-source travel planner: real-time collaboration, bookings, budgets, packing lists, journals, offline PWA, SSO and an AI-ready MCP server, with planet-wide place search and routing built in.

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

Maurice3292a092aeed
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;
}