Skip to content

The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.

fix(dev): correct mock script import path in ToolCallGallery

Steven Enamakel25efe4a2ef7c
diff --git a/app/src/pages/dev/ToolCallGallery.tsx b/app/src/pages/dev/ToolCallGallery.tsx
index 5b3c622266..6056bf6bc5 100644
--- a/app/src/pages/dev/ToolCallGallery.tsx
+++ b/app/src/pages/dev/ToolCallGallery.tsx
@@ -47,6 +47,7 @@ import { useT } from '../../lib/i18n/I18nContext';
import type { PendingApproval } from '../../store/chatRuntimeSlice';
import {
MOCK_COMMANDS_LIST,
+ MOCK_CONNECTION_PHASES,
MOCK_CONTEXT_BREAKDOWN,
MOCK_CONTEXT_USAGE,
MOCK_MEMORY_RECALL,
diff --git a/app/src/pages/dev/assistant-ui-demo/assistantUiMock/mockScript.ts b/app/src/pages/dev/assistant-ui-demo/assistantUiMock/mockScript.ts
index e6b38b655a..105d26b8d0 100644
--- a/app/src/pages/dev/assistant-ui-demo/assistantUiMock/mockScript.ts
+++ b/app/src/pages/dev/assistant-ui-demo/assistantUiMock/mockScript.ts
@@ -455,3 +455,10 @@ export const MOCK_CONTEXT_BREAKDOWN: ContextBreakdown = {
total_est_tokens: 61_500,
context_window: 200_000,
};
+
+/**
+ * Every phase of the thread's connection banner (`ConnectionStateBanner`), for
+ * the gallery's phase toggle (`/dev/tools`). In the app the phase follows the
+ * renderer's socket status; here it is picked by hand.
+ */
+export const MOCK_CONNECTION_PHASES = ['dropped', 'reconnecting', 'resumed', 'online'] as const;