summaryrefslogtreecommitdiffhomepage
path: root/packages/app/src
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 /packages/app/src
parent154cbf6996cdc93b574e93bcbe063f6d11170c0c (diff)
downloadopencode-891875402cce45112053115fea8f68c0c61ffd81.tar.gz
opencode-891875402cce45112053115fea8f68c0c61ffd81.zip
fix(terminal): support remote server connections and fix GLIBC compatibility (#11906)
Diffstat (limited to 'packages/app/src')
-rw-r--r--packages/app/src/components/terminal.tsx1
1 files changed, 1 insertions, 0 deletions
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