fix: automatically close opencode process when exiting openchamber (closes #927) (#947)

This commit is contained in:
ricautomation
2026-04-21 23:02:01 +03:00
committed by GitHub
parent 3509a5f98b
commit 45f8d6c2be
4 changed files with 81 additions and 35 deletions
@@ -18,7 +18,7 @@ export const registerServerStatusRoutes = (app, dependencies) => {
app.post('/api/system/shutdown', (_req, res) => {
res.json({ ok: true });
gracefulShutdown({ exitProcess: false }).catch((error) => {
gracefulShutdown({ exitProcess: true }).catch((error) => {
console.error('Shutdown request failed:', error?.message || error);
});
});