fix: kill orphaned MCP child processes and expose OPENCODE_PID on shu… (#15516)

This commit is contained in:
ryanwyler
2026-03-01 05:38:17 -07:00
committed by GitHub
parent 38704acacd
commit c4c0b23bff
3 changed files with 39 additions and 0 deletions

View File

@@ -145,6 +145,7 @@ try {
Object.assign(process.env, serverEnv)
process.env.AGENT = "1"
process.env.OPENCODE = "1"
process.env.OPENCODE_PID = String(process.pid)
const log = await import("../../opencode/src/util/log")
const install = await import("../../opencode/src/installation")