Hmbown/CodeWhale · error
Persistent service has no releasable process id
Error message
Persistent service {id} has no releasable process id What it means
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.
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.
Defensive patterns
Strategy: validation
When it happens
Trigger: Thrown at crates/tui/src/tools/shell.rs:3122 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of Hmbown/CodeWhale@73e0f67d83 (2026-09-22).
Data as JSON: /api/errors/c0dba9fb337916a6.
Report an issue: GitHub.
Appendix: source
Thrown at crates/tui/src/tools/shell.rs:3122
let shell = self
.processes
.get_mut(id)
.ok_or_else(|| anyhow!("Persistent service {id} disappeared before commit"))?;
shell.poll();
if shell.status != ShellStatus::Running {
return Err(anyhow!(
"Persistent service {id} exited before ownership transfer (status {:?}, exit code {:?})",
shell.status,
shell.exit_code
));
}
if shell
.child
.as_ref()
.and_then(ShellChild::process_id)
.is_none()
{
return Err(anyhow!(
"Persistent service {id} has no releasable process id"
));
}
}
let mut receipts = Vec::with_capacity(ids.len());
for id in ids {
let mut shell = self
.processes
.remove(&id)
.ok_or_else(|| anyhow!("Persistent service {id} disappeared during commit"))?;
let pid = shell
.child
.as_ref()
.and_then(ShellChild::process_id)
.ok_or_else(|| anyhow!("Persistent service {id} lost its process id"))?;
unregister_pending_persistent_process_group(pid);
shell.ownership = ShellOwnership::Released;View on GitHub (pinned to 73e0f67d83)