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
commit c4c0b23bff
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
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")