Skip to content

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

fix(switchdash): don't invite phone sign-in to a loopback-only chat (CHOO-1787)

Louis Amaudruza7e9c3eca213
diff --git a/dash/apps/switchdash-desktop/src/renderer/features/switch-servers/BundledChatSignIn.tsx b/dash/apps/switchdash-desktop/src/renderer/features/switch-servers/BundledChatSignIn.tsx
index b061723bf..7fd3e7834 100644
--- a/dash/apps/switchdash-desktop/src/renderer/features/switch-servers/BundledChatSignIn.tsx
+++ b/dash/apps/switchdash-desktop/src/renderer/features/switch-servers/BundledChatSignIn.tsx
@@ -69,7 +69,11 @@ function CredentialRow({
/**
* The bundled chat's address and sign-in, for signing in outside switchdash —
- * a browser, a phone, or the desktop Mattermost client (CHOO-1787).
+ * a browser or the desktop Mattermost client (CHOO-1787).
+ *
+ * Both are on the same machine by necessity: the stack publishes onto loopback
+ * so it is never exposed to the LAN, so the copy must not invite the user to
+ * try a device that cannot reach it.
*
* Collapsed by default, and the values are only fetched once it is opened: the
* password should not cross into the renderer for everyone who merely looks at
@@ -104,8 +108,8 @@ export function BundledChatSignIn({ serverId }: { serverId: string }) {
{expanded && (
<div className="mt-2 space-y-2">
<p className="text-xs text-foreground-muted">
- Use these to sign in to this chat in a browser, on your phone, or in the Mattermost
- desktop app.
+ Use these to sign in to this chat in a browser or the Mattermost desktop app on this
+ computer.
</p>
{signInQuery.isLoading ? (
diff --git a/dash/apps/switchdash-desktop/src/shared/core/switch-servers/switch-servers.ts b/dash/apps/switchdash-desktop/src/shared/core/switch-servers/switch-servers.ts
index fd017536a..ceaa12fd9 100644
--- a/dash/apps/switchdash-desktop/src/shared/core/switch-servers/switch-servers.ts
+++ b/dash/apps/switchdash-desktop/src/shared/core/switch-servers/switch-servers.ts
@@ -223,7 +223,9 @@ export type RemoteBridge = {
/**
* How to sign in to a managed deployment's bundled Mattermost directly — in a
- * browser, on a phone, or in the desktop Mattermost client (CHOO-1787).
+ * browser or the desktop Mattermost client, on the machine running it
+ * (CHOO-1787). The stack publishes onto loopback, so nothing off that machine
+ * can reach the URL.
*
* `unavailable` carries the reason in words a user can act on, and is the only
* alternative to real values: the credentials are per-deployment and generated,