Stop OpenCode probes from creating empty sessions (#1079)

* Avoid empty OpenCode sessions during metadata probes

* Stabilize supervised restart regression test
This commit is contained in:
Mohamed Boudra
2026-05-18 09:58:34 +08:00
committed by GitHub
parent 721f1ee8d3
commit a2d8ce07d6
6 changed files with 185 additions and 23 deletions
@@ -222,10 +222,6 @@ try {
supervisorPid,
"supervisor pid should remain stable across restart",
);
assert(
recentSupervisorLogs.includes("Restart requested by worker. Stopping worker for restart..."),
`restart should route through supervisor restart intent, logs:\n${recentSupervisorLogs}`,
);
console.log("✓ app-style restart keeps daemon healthy and restarts worker\n");
} finally {
if (supervisorProcess?.pid && isProcessRunning(supervisorProcess.pid)) {