From fe8b3f69c225e00b7e5e2875aad1508341d517f3 Mon Sep 17 00:00:00 2001 From: ysm-dev Date: Fri, 13 Feb 2026 15:39:50 +0900 Subject: [PATCH 1/3] fix(app): remount SDK/sync tree when server URL changes ServerKey was using a plain conditional return, which is not reactive in Solid. Switching servers no longer remounted GlobalSDKProvider / GlobalSyncProvider, so two servers with the same project path shared the same in-memory session state. Restore keyed so the subtree remounts on server change. Fixes #13436 --- packages/app/src/app.tsx | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/packages/app/src/app.tsx b/packages/app/src/app.tsx index 3032a795f8cd..1121c2e955ac 100644 --- a/packages/app/src/app.tsx +++ b/packages/app/src/app.tsx @@ -1,5 +1,5 @@ import "@/index.css" -import { ErrorBoundary, Suspense, lazy, type JSX, type ParentProps } from "solid-js" +import { ErrorBoundary, Show, Suspense, lazy, type JSX, type ParentProps } from "solid-js" import { Router, Route, Navigate } from "@solidjs/router" import { MetaProvider } from "@solidjs/meta" import { Font } from "@opencode-ai/ui/font" @@ -156,8 +156,11 @@ export function AppBaseProviders(props: ParentProps) { function ServerKey(props: ParentProps) { const server = useServer() - if (!server.url) return null - return props.children + return ( + + {props.children} + + ) } export function AppInterface(props: { defaultUrl?: string; children?: JSX.Element; isSidecar?: boolean }) { From 473e5f78832cf4ad8a9d3604c4d0a417d8033944 Mon Sep 17 00:00:00 2001 From: ysm-dev Date: Fri, 13 Feb 2026 15:49:33 +0900 Subject: [PATCH 2/3] test(opencode): increase writable config install timeout The OPENCODE_CONFIG_DIR dependency install test can exceed Bun's\ndefault 5s timeout on loaded CI runners. Increase the timeout so\nthe test validates behavior instead of timing out intermittently. --- packages/opencode/test/config/config.test.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/opencode/test/config/config.test.ts b/packages/opencode/test/config/config.test.ts index 91b87f6498c4..8e00f9533bd6 100644 --- a/packages/opencode/test/config/config.test.ts +++ b/packages/opencode/test/config/config.test.ts @@ -645,7 +645,7 @@ test("installs dependencies in writable OPENCODE_CONFIG_DIR", async () => { if (prev === undefined) delete process.env.OPENCODE_CONFIG_DIR else process.env.OPENCODE_CONFIG_DIR = prev } -}) +}, 15000) test("resolves scoped npm plugins in config", async () => { await using tmp = await tmpdir({ From 881eb5583846b6fe6c71d42f4e54af11fd72704c Mon Sep 17 00:00:00 2001 From: ysm-dev Date: Fri, 13 Feb 2026 15:56:44 +0900 Subject: [PATCH 3/3] Revert "test(opencode): increase writable config install timeout" This reverts commit 473e5f78832cf4ad8a9d3604c4d0a417d8033944. --- packages/opencode/test/config/config.test.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/opencode/test/config/config.test.ts b/packages/opencode/test/config/config.test.ts index 8e00f9533bd6..91b87f6498c4 100644 --- a/packages/opencode/test/config/config.test.ts +++ b/packages/opencode/test/config/config.test.ts @@ -645,7 +645,7 @@ test("installs dependencies in writable OPENCODE_CONFIG_DIR", async () => { if (prev === undefined) delete process.env.OPENCODE_CONFIG_DIR else process.env.OPENCODE_CONFIG_DIR = prev } -}, 15000) +}) test("resolves scoped npm plugins in config", async () => { await using tmp = await tmpdir({