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
fix(console): drop the home-page card the workspace banner already shows
Simon Flackd3cdba1de304
diff --git a/console/apps/switch-console-desktop/src/renderer/features/switch-servers/view.tsx b/console/apps/switch-console-desktop/src/renderer/features/switch-servers/view.tsxindex 0990e92a4..b17dbe457 100644--- a/console/apps/switch-console-desktop/src/renderer/features/switch-servers/view.tsx+++ b/console/apps/switch-console-desktop/src/renderer/features/switch-servers/view.tsx@@ -5,7 +5,6 @@ import {MoreVertical,Pencil,PlugZap,- Power,RefreshCw,Trash2,Unplug,@@ -34,12 +33,8 @@ import {} from '@renderer/lib/ui/dropdown-menu';import { Spinner } from '@renderer/lib/ui/spinner';import { dashboardOrigin, type SwitchServer } from '@shared/core/switch-servers/switch-servers';-import { frozenSentence } from './frozen-workspace';import { GuardrailsSection } from './GuardrailsSection';import { localServerStore } from './local-server-store';-import { startManagedServer } from './managed-server-actions';-import { TONE_BOX, ToneDot } from './managed-server-dot';-import { managedServerState } from './managed-server-state';import { MessagingAppsCard } from './MessagingAppsCard';import { openServerPage } from './open-server-page';import { remoteServerStore } from './remote-server-store';@@ -128,8 +123,8 @@ const ServerMainPanel = observer(function ServerMainPanel() {// A managed server that isn't running has no gateway to reach — its// connection status, sign-in, and web-app links are meaningless until it's up,- // so we neither fetch nor render them: a card saying it is down, with the way- // to start it and to its status page, shows instead.+ // so we neither fetch nor render them (the workspace banner above says it is+ // down, with the way to start it and to its status page).const detailsVisible = !server?.managed || isManagedRunning(server);useEffect(() => {@@ -294,8 +289,6 @@ const ServerMainPanel = observer(function ServerMainPanel() {</Alert>)}- {!detailsVisible && <ManagedServerDownCard server={server} />}-{detailsVisible && unreachable && <ServerUnreachableCard server={server} />}{detailsVisible && !unreachable && (@@ -478,49 +471,6 @@ const ServerUnreachableCard = observer(function ServerUnreachableCard({);});-/**- * In place of the page's details when a server this Console runs is not- * running: what is wrong, in the words the workspace banner uses, Start (or- * Restart, after it stopped on its own) when that is all it takes, and the way- * to its status page, where the reason and the rest of its controls are.- * Nothing until its state has been read: an unread state is not a stopped one.- */-const ManagedServerDownCard = observer(function ManagedServerDownCard({- server,-}: {- server: SwitchServer;-}) {- const { navigate } = useNavigate();- const state = managedServerState(server);- if (!state || !state.known || state.answering) return null;- const crashed = state.reason === 'stopped-unexpectedly';- return (- <div- className={`flex items-center justify-between gap-3 rounded-lg border p-4 ${TONE_BOX[state.tone]}`}- >- <div className="flex min-w-0 items-center gap-2 text-sm">- <ToneDot tone={state.tone} size={7} />- <span className="text-foreground">{frozenSentence(server, state)}</span>- </div>- <div className="flex shrink-0 items-center gap-2">- <Button- variant="outline"- size="sm"- onClick={() => navigate('managedServer', { serverId: server.id })}- >- Server status- </Button>- {(state.tone === 'stopped' || crashed) && (- <Button size="sm" onClick={() => startManagedServer(server)}>- <Power className="size-4" />- {crashed ? 'Restart' : 'Start'}- </Button>- )}- </div>- </div>- );-});-function StatusDot({ connected }: { connected: boolean }) {return (<spandiff --git a/console/apps/switch-console-desktop/src/renderer/tests/browser/server-view-local-down.test.tsx b/console/apps/switch-console-desktop/src/renderer/tests/browser/server-view-local-unreachable.test.tsxsimilarity index 77%rename from console/apps/switch-console-desktop/src/renderer/tests/browser/server-view-local-down.test.tsxrename to console/apps/switch-console-desktop/src/renderer/tests/browser/server-view-local-unreachable.test.tsxindex 67385804c..540b50358 100644--- a/console/apps/switch-console-desktop/src/renderer/tests/browser/server-view-local-down.test.tsx+++ b/console/apps/switch-console-desktop/src/renderer/tests/browser/server-view-local-unreachable.test.tsx@@ -11,9 +11,8 @@ vi.hoisted(() => {} as unknown as typeof window.electronAPI;});-// The home page of the server on this computer when it is not answering: a-// crash shows as the server being down, with Restart and the way to its status-// page, rather than as a connection problem.+// The home page of the server on this computer when it is not answering says+// so, with the way to its status page, rather than blaming the connection.const state = vi.hoisted(() => ({status: null as unknown,unreachable: false,@@ -97,13 +96,13 @@ vi.mock('@renderer/features/switch-servers/server-sign-in', () => ({import { serverView } from '@renderer/features/switch-servers/view';import '@renderer/index.css';-const LOCAL = {+const LOCAL: { managed: boolean; [key: string]: unknown } = {id: 'local',name: 'Local server',url: 'http://localhost:41001',dashboardUrl: null,managed: true,- managementKind: 'local' as const,+ managementKind: 'local',sshHost: null,createdAt: '2026-01-01T00:00:00.000Z',updatedAt: '2026-01-01T00:00:00.000Z',@@ -148,41 +147,6 @@ function button(label: RegExp): HTMLElement | undefined {label.test(b.textContent?.trim() ?? ''));}--it('says the server stopped unexpectedly, and offers Restart and its status page', async () => {- state.status = {- ...base,- phase: 'error',- failedTo: 'run',- error: 'switch-core stopped unexpectedly',- };- await render();-- expect(document.body.textContent).toContain('Local server stopped unexpectedly');- expect(document.body.textContent).not.toContain('Check your connection');-- await act(async () => button(/^Restart$/)!.click());- expect(state.localStart).toHaveBeenCalledOnce();- await act(async () => button(/^Server status$/)!.click());- expect(state.navigate).toHaveBeenCalledWith('managedServer', { serverId: 'local' });-});--it('offers Start for a server that was stopped', async () => {- state.status = { ...base, phase: 'stopped' };- await render();-- expect(document.body.textContent).toContain("Local server isn't running");- expect(button(/^Start$/)).toBeDefined();-});--it('says nothing until the server has been looked at', async () => {- state.status = { ...base, phase: 'stopped', checked: false };- await render();-- expect(button(/^Start$/)).toBeUndefined();- expect(button(/^Server status$/)).toBeUndefined();-});-it('does not blame the connection when the local server is not answering', async () => {state.unreachable = true;await render();@@ -191,3 +155,15 @@ it('does not blame the connection when the local server is not answering', asyncexpect(document.body.textContent).not.toContain('Check your connection');expect(button(/^Server status$/)).toBeDefined();});++it('still calls an unmanaged server unreachable a connection problem', async () => {+ state.unreachable = true;+ LOCAL.managed = false;+ try {+ await render();+ expect(document.body.textContent).toContain('Check your connection');+ expect(button(/^Server status$/)).toBeUndefined();+ } finally {+ LOCAL.managed = true;+ }+});