summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorLucas (TaeYoung) Jo <[email protected]>2026-02-04 20:01:10 +0900
committerGitHub <[email protected]>2026-02-04 05:01:10 -0600
commit891875402cce45112053115fea8f68c0c61ffd81 (patch)
tree7d1a5a2a23b96c57a143bbd358f73e4069b50165
parent154cbf6996cdc93b574e93bcbe063f6d11170c0c (diff)
downloadopencode-891875402cce45112053115fea8f68c0c61ffd81.tar.gz
opencode-891875402cce45112053115fea8f68c0c61ffd81.zip
fix(terminal): support remote server connections and fix GLIBC compatibility (#11906)
-rw-r--r--bun.lock4
-rw-r--r--packages/app/src/components/terminal.tsx1
-rw-r--r--packages/opencode/package.json2
3 files changed, 4 insertions, 3 deletions
diff --git a/bun.lock b/bun.lock
index a1573116c..9b0d0eccc 100644
--- a/bun.lock
+++ b/bun.lock
@@ -309,7 +309,7 @@
"ai": "catalog:",
"ai-gateway-provider": "2.3.1",
"bonjour-service": "1.3.0",
- "bun-pty": "0.4.4",
+ "bun-pty": "0.4.8",
"chokidar": "4.0.3",
"clipboardy": "4.0.0",
"decimal.js": "10.5.0",
@@ -2108,7 +2108,7 @@
"bun-ffi-structs": ["[email protected]", "", { "peerDependencies": { "typescript": "^5" } }, "sha512-Lh1oQAYHDcnesJauieA4UNkWGXY9hYck7OA5IaRwE3Bp6K2F2pJSNYqq+hIy7P3uOvo3km3oxS8304g5gDMl/w=="],
- "bun-pty": ["[email protected]", "", {}, "sha512-WK4G6uWsZgu1v4hKIlw6G1q2AOf8Rbga2Yr7RnxArVjjyb+mtVa/CFc9GOJf+OYSJSH8k7LonAtQOVeNAddRyg=="],
+ "bun-pty": ["[email protected]", "", {}, "sha512-rO70Mrbr13+jxHHHu2YBkk2pNqrJE5cJn29WE++PUr+GFA0hq/VgtQPZANJ8dJo6d7XImvBk37Innt8GM7O28w=="],
"bun-types": ["[email protected]", "", { "dependencies": { "@types/node": "*" } }, "sha512-inmAYe2PFLs0SUbFOWSVD24sg1jFlMPxOjOSSCYqUgn4Hsc3rDc7dFvfVYjFPNHtov6kgUeulV4SxbuIV/stPw=="],
diff --git a/packages/app/src/components/terminal.tsx b/packages/app/src/components/terminal.tsx
index d38844802..11bcd4cc8 100644
--- a/packages/app/src/components/terminal.tsx
+++ b/packages/app/src/components/terminal.tsx
@@ -146,6 +146,7 @@ export const Terminal = (props: TerminalProps) => {
const once = { value: false }
const url = new URL(sdk.url + `/pty/${local.pty.id}/connect?directory=${encodeURIComponent(sdk.directory)}`)
+ url.protocol = url.protocol === "https:" ? "wss:" : "ws:"
if (window.__OPENCODE__?.serverPassword) {
url.username = "opencode"
url.password = window.__OPENCODE__?.serverPassword
diff --git a/packages/opencode/package.json b/packages/opencode/package.json
index fdf2c0519..e03ad8009 100644
--- a/packages/opencode/package.json
+++ b/packages/opencode/package.json
@@ -94,7 +94,7 @@
"ai": "catalog:",
"ai-gateway-provider": "2.3.1",
"bonjour-service": "1.3.0",
- "bun-pty": "0.4.4",
+ "bun-pty": "0.4.8",
"chokidar": "4.0.3",
"clipboardy": "4.0.0",
"decimal.js": "10.5.0",