Skip to content

Open-source AI teammates in Slack, Teams, Discord, Telegram and Mattermost. Self-host it, with any agent harness and any model.

Top bar links to Switch Trust, for everyone

Simon Flack85aed53fca68
diff --git a/console/apps/switch-console-desktop/src/renderer/features/sidebar/workspace-top-bar.tsx b/console/apps/switch-console-desktop/src/renderer/features/sidebar/workspace-top-bar.tsx
index 3b44cdbd2..528eabde3 100644
--- a/console/apps/switch-console-desktop/src/renderer/features/sidebar/workspace-top-bar.tsx
+++ b/console/apps/switch-console-desktop/src/renderer/features/sidebar/workspace-top-bar.tsx
@@ -1,5 +1,5 @@
import { detectPlatform } from '@tanstack/react-hotkeys';
-import { BookOpen, PanelLeft, Search } from 'lucide-react';
+import { BookOpen, ExternalLink, PanelLeft, Search } from 'lucide-react';
import { observer } from 'mobx-react-lite';
import { NavButtons } from '@renderer/lib/components/nav-buttons';
import { useWorkspaceLayoutContext } from '@renderer/lib/layout/layout-provider';
@@ -11,7 +11,7 @@ import { Button } from '@renderer/lib/ui/button';
import { BoundShortcut } from '@renderer/lib/ui/shortcut';
import { Tooltip, TooltipContent, TooltipTrigger } from '@renderer/lib/ui/tooltip';
import { cn } from '@renderer/utils/utils';
-import { SWITCH_CONSOLE_DOCS_URL } from '@shared/urls';
+import { SWITCH_CONSOLE_DOCS_URL, SWITCH_TRUST_URL } from '@shared/urls';
const isMac = detectPlatform() === 'mac';
@@ -103,6 +103,15 @@ export const WorkspaceTopBar = observer(function WorkspaceTopBar() {
/>
<TooltipContent>Docs</TooltipContent>
</Tooltip>
+ <Button
+ variant="ghost"
+ size="sm"
+ className="h-7 gap-1.5 px-2 text-xs [-webkit-app-region:no-drag]"
+ onClick={() => openExternalUrl(SWITCH_TRUST_URL, 'Could not open Switch Trust')}
+ >
+ <ExternalLink className="h-3.5 w-3.5" />
+ Switch Trust
+ </Button>
</div>
</div>
);
diff --git a/console/apps/switch-console-desktop/src/shared/urls.ts b/console/apps/switch-console-desktop/src/shared/urls.ts
index d4fab0b24..0008aa533 100644
--- a/console/apps/switch-console-desktop/src/shared/urls.ts
+++ b/console/apps/switch-console-desktop/src/shared/urls.ts
@@ -43,3 +43,6 @@ export const SWITCH_DOCS_ROOMS_URL = `${SWITCH_DOCS_BASE}/using/work-in-a-room`;
export const SWITCH_CONSOLE_ISSUES_URL = `${SWITCH_CONSOLE_REPO_URL}/issues`;
export const SWITCH_CONSOLE_ISSUES_NEW_URL = `${SWITCH_CONSOLE_REPO_URL}/issues/new/choose`;
+
+/** Switch Trust, the guardrails service, linked from the top bar for everyone. */
+export const SWITCH_TRUST_URL = 'https://app.switchagents.ai/';