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 journey's session no longer attaches delete_journey

Maurice35c3ab4bd764
diff --git a/server/src/nest/assistant/assistant-journey-offer.ts b/server/src/nest/assistant/assistant-journey-offer.ts
index 6b243f36f..f69cf56d3 100644
--- a/server/src/nest/assistant/assistant-journey-offer.ts
+++ b/server/src/nest/assistant/assistant-journey-offer.ts
@@ -95,8 +95,13 @@ function isOfferedInJournal(name: string, className: string | undefined): boolea
return className !== undefined && JOURNAL_CONTROLLERS.has(className) && !isStudioController(className);
}
-/** Whether a journey's session attaches a registered tool: what either of its pages offers. */
+/**
+ * Whether a journey's session attaches a registered tool: what either of its
+ * pages offers. A tool denied in a journey's own conversation is never
+ * attached, though the Studio's controllers would bring it along.
+ */
export function isHeldInJourney(name: string, className: string | undefined): boolean {
+ if (name in JOURNAL_DENIED_TOOLS) return false;
return isOfferedInJourney(name, className) || isOfferedInJournal(name, className);
}