Handle disconnected instances with blocking modal

This commit is contained in:
Shantur Rathore
2025-11-13 10:46:03 +00:00
parent 28131aec47
commit 041dfc6824
5 changed files with 122 additions and 29 deletions

View File

@@ -182,7 +182,8 @@ class ProcessManager {
async kill(pid: number): Promise<void> {
const meta = this.processes.get(pid)
if (!meta) {
throw new Error(`Process ${pid} not found`)
// Treat unknown processes as already stopped so tabs close cleanly
return
}
return new Promise((resolve, reject) => {