We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 47dfebf commit 3577bf2Copy full SHA for 3577bf2
packages/opencode/src/index.ts
@@ -129,6 +129,12 @@ try {
129
if (formatted) UI.error(formatted)
130
if (formatted === undefined) UI.error("Unexpected error, check log file at " + Log.file() + " for more details")
131
process.exitCode = 1
132
+} finally {
133
+ // Some subprocesses don't react properly to SIGTERM and similar signals.
134
+ // Most notably, some docker-container-based MCP servers don't handle such signals unless
135
+ // run using `docker run --init`.
136
+ // Explicitly exit to avoid any hanging subprocesses.
137
+ process.exit();
138
}
139
140
cancel.abort()
0 commit comments