add opencode attach command to connect to a remote opencode server

This commit is contained in:
Dax Raad
2025-09-17 03:30:25 -04:00
parent 259c722208
commit 40c206c2f9
6 changed files with 58 additions and 409 deletions
-2
View File
@@ -15,7 +15,6 @@ import { Ide } from "../../ide"
import { Flag } from "../../flag/flag"
import { Session } from "../../session"
import { Instance } from "../../project/instance"
import { $ } from "bun"
declare global {
@@ -151,7 +150,6 @@ export const TuiCommand = cmd({
...process.env,
CGO_ENABLED: "0",
OPENCODE_SERVER: server.url.toString(),
OPENCODE_PROJECT: JSON.stringify(Instance.project),
},
onExit: () => {
server.stop()