GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

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
Filter options
  • packages/app
    • e2e/regression
      • mcp-workspace-toggle.spec.ts
    • src/settings/providers
      • extensions.tsx
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎packages/app/e2e/regression/mcp-workspace-toggle.spec.ts‎

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 numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ async function open(
8181
return { requests, panel, show, push: mock.push, toggle: panel.getByRole("switch") }
8282
}
8383

84-
for (const surface of ["popover", "dialog"] as const) {
84+
for (const surface of ["popover", "dialog", "settings"] as const) {
8585
test(`idle MCP stays enabled and disconnects from the ${surface}`, async ({ page }) => {
8686
const actions: Parameters<NonNullable<MockServerConfig["onMcpAction"]>>[0][] = []
8787

Collapse file

‎packages/app/src/settings/providers/extensions.tsx‎

Copy file name to clipboardExpand all lines: packages/app/src/settings/providers/extensions.tsx
+2Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ import "@/shell/search-list.css"
1919

2020
const statusLabels = {
2121
connected: "mcp.status.connected",
22+
idle: "mcp.status.idle",
2223
failed: "mcp.status.failed",
2324
needs_auth: "mcp.status.needs_auth",
2425
disabled: "mcp.status.disabled",
@@ -125,6 +126,7 @@ export const SettingsExtensions: Component<{
125126
const busy = () => {
126127
const target = toggleMcp.isPending ? toggleMcp.variables : undefined
127128

129+
// oxlint-disable-next-line anti-slop/no-runtime-typeof -- Mutation variables are a typed string-or-toggle union, not untrusted input.
128130
return (typeof target === "string" ? target : target?.name) === item.name
129131
}
130132

0 commit comments

Comments
0 (0)
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.