GeezerVison is showing github.com — fix(app): label idle MCP servers in settings · anomalyco/opencode@22650de
File tree
Expand file treeCollapse file tree
Open diff view settings
Expand file treeCollapse file tree
Open diff view settings
Collapse file
Copy file name to clipboardExpand all lines: packages/app/e2e/regression/mcp-workspace-toggle.spec.ts +1-1Lines changed: 1 addition & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
@@ -81,7 +81,7 @@ async function open( |
81 | 81 | return { requests, panel, show, push: mock.push, toggle: panel.getByRole("switch") } |
82 | 82 | } |
83 | 83 |
|
84 | | -for (const surface of ["popover", "dialog"] as const) { |
| 84 | +for (const surface of ["popover", "dialog", "settings"] as const) { |
85 | 85 | test(`idle MCP stays enabled and disconnects from the ${surface}`, async ({ page }) => { |
86 | 86 | const actions: Parameters<NonNullable<MockServerConfig["onMcpAction"]>>[0][] = [] |
87 | 87 |
|
|
Collapse file
Copy file name to clipboardExpand all lines: packages/app/src/settings/providers/extensions.tsx +2Lines changed: 2 additions & 0 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -19,6 +19,7 @@ import "@/shell/search-list.css" |
19 | 19 |
|
20 | 20 | const statusLabels = { |
21 | 21 | connected: "mcp.status.connected", |
| 22 | + idle: "mcp.status.idle", |
22 | 23 | failed: "mcp.status.failed", |
23 | 24 | needs_auth: "mcp.status.needs_auth", |
24 | 25 | disabled: "mcp.status.disabled", |
@@ -125,6 +126,7 @@ export const SettingsExtensions: Component<{ |
125 | 126 | const busy = () => { |
126 | 127 | const target = toggleMcp.isPending ? toggleMcp.variables : undefined |
127 | 128 |
|
| 129 | + // oxlint-disable-next-line anti-slop/no-runtime-typeof -- Mutation variables are a typed string-or-toggle union, not untrusted input. |
128 | 130 | return (typeof target === "string" ? target : target?.name) === item.name |
129 | 131 | } |
130 | 132 |
|
|