{"record":{"id":"c0dba9fb337916a6","repo":"Hmbown/CodeWhale","slug":"persistent-service-id-has-no-releasable-process","errorCode":null,"errorMessage":"Persistent service {id} has no releasable process id","messagePattern":"Persistent service (.+?) has no releasable process id","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"crates/tui/src/tools/shell.rs","lineNumber":3122,"sourceCode":"            let shell = self\n                .processes\n                .get_mut(id)\n                .ok_or_else(|| anyhow!(\"Persistent service {id} disappeared before commit\"))?;\n            shell.poll();\n            if shell.status != ShellStatus::Running {\n                return Err(anyhow!(\n                    \"Persistent service {id} exited before ownership transfer (status {:?}, exit code {:?})\",\n                    shell.status,\n                    shell.exit_code\n                ));\n            }\n            if shell\n                .child\n                .as_ref()\n                .and_then(ShellChild::process_id)\n                .is_none()\n            {\n                return Err(anyhow!(\n                    \"Persistent service {id} has no releasable process id\"\n                ));\n            }\n        }\n\n        let mut receipts = Vec::with_capacity(ids.len());\n        for id in ids {\n            let mut shell = self\n                .processes\n                .remove(&id)\n                .ok_or_else(|| anyhow!(\"Persistent service {id} disappeared during commit\"))?;\n            let pid = shell\n                .child\n                .as_ref()\n                .and_then(ShellChild::process_id)\n                .ok_or_else(|| anyhow!(\"Persistent service {id} lost its process id\"))?;\n            unregister_pending_persistent_process_group(pid);\n            shell.ownership = ShellOwnership::Released;","sourceCodeStart":3104,"sourceCodeEnd":3140,"githubUrl":"https://github.com/Hmbown/CodeWhale/blob/73e0f67d83c59909b571efdfc88c4bc28c309cb1/crates/tui/src/tools/shell.rs#L3104-L3140","documentation":"Ownership-transfer guard in commit_persistent_services: a persist-pending shell is still running but its child handle exposes no process id, so ownership cannot be handed to a PID the user could later manage. Nothing has been released yet at this point.","triggerScenarios":"Thrown at crates/tui/src/tools/shell.rs:3122 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["This is an internal invariant break (running child without a pid); restart the service manually and report it.","Retry the enclosing turn; a fresh spawn normally carries a releasable pid."],"exampleFix":null,"handlingStrategy":"validation","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"73e0f67d83c59909b571efdfc88c4bc28c309cb1","analyzedAt":"2026-09-22T01:30:00.501Z","contentChangedAt":"2026-09-22T01:30:00.501Z","schemaVersion":2},"datasetVersion":"2026-09-23T08:17:48.524Z"}