fix(terminal): support remote server connections and fix GLIBC compatibility (#11906)

This commit is contained in:
Lucas (TaeYoung) Jo
2026-02-04 20:01:10 +09:00
committed by GitHub
parent 154cbf6996
commit 891875402c
3 changed files with 4 additions and 3 deletions

View File

@@ -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