Open-source AI teammates in Slack, Teams, Discord, Telegram and Mattermost. Self-host it, with any agent harness and any model.
Python agent-orchestrationaiai-agentschatopsdiscordlangchainmcpmicrosoft-teamsmulti-agentopen-sourceopenaiself-hostedslack
style(switchdash): tighten the switch-core drift notices (CHOO-1736)
Louis Amaudruz28e092bf2a67
diff --git a/dash/apps/switchdash-desktop/src/renderer/features/switch-servers/VersionDriftNotice.tsx b/dash/apps/switchdash-desktop/src/renderer/features/switch-servers/VersionDriftNotice.tsxindex d712d663b..85b151f2f 100644--- a/dash/apps/switchdash-desktop/src/renderer/features/switch-servers/VersionDriftNotice.tsx+++ b/dash/apps/switchdash-desktop/src/renderer/features/switch-servers/VersionDriftNotice.tsx@@ -52,8 +52,8 @@ export function VersionDriftNotice({</AlertTitle><AlertDescription>{unknown- ? `This server runs switch-core ${drift.deployed} and this version of switchdash expects ${drift.expected}. Those cannot be compared automatically — restart only if you know ${drift.expected} is not older.`- : `This server still runs switch-core ${drift.deployed}. Restart it to pull ${drift.expected} and migrate its data. Its rooms and messages are kept.`}+ ? `Runs switch-core ${drift.deployed}; this app expects ${drift.expected}. Can't tell which is newer — restart only if ${drift.expected} isn't older.`+ : `Still on switch-core ${drift.deployed}. Restart to pull ${drift.expected} and migrate; rooms and messages are kept.`}</AlertDescription><AlertAction><Button size="sm" disabled={disabled} onClick={onRestart}>diff --git a/dash/apps/switchdash-desktop/src/shared/core/managed-switch-server/managed-switch-server.ts b/dash/apps/switchdash-desktop/src/shared/core/managed-switch-server/managed-switch-server.tsindex 92f719256..65995e1a6 100644--- a/dash/apps/switchdash-desktop/src/shared/core/managed-switch-server/managed-switch-server.ts+++ b/dash/apps/switchdash-desktop/src/shared/core/managed-switch-server/managed-switch-server.ts@@ -42,16 +42,14 @@ export type SwitchVersionDrift = {* the status `error` when a start is blocked) and the renderer (as the drift* banner) so both say the same thing.*- * Names what is stuck, why it cannot be undone, and the two ways out: the- * honest answer is "install the newer switchdash again", and a user who is not- * told that will reach for Reset and lose their data.+ * Kept to two sentences, but both ways out stay in: a user who is not told+ * that updating switchdash fixes this will reach for Reset and lose their data.*/export function switchVersionDowngradeMessage(deployed: string, expected: string): string {return (- `This stack runs switch-core ${deployed}, but this version of switchdash pins ${expected}. ` +- `Starting it would point the stack at an older core than its database has already migrated to, ` +- `and switch-core cannot roll a migration back. Update switchdash to a version that ships ` +- `switch-core ${deployed} or newer, or reset the stack to rebuild it empty (this deletes its data).`+ `Runs switch-core ${deployed}; this app pins ${expected}. Its database has already migrated ` ++ `forward and switch-core can't roll back — update switchdash to a build with switch-core ` ++ `${deployed} or newer, or reset the stack (deletes its data).`);}