Watch
0
0
Fork
You've already forked hyperhive
0

bash-mcp: kill of a pending task reports failure when the task file write fails

A failed write left the task Pending on disk, so the poll loop still started it
while the kill reply said it was cancelled.
This commit is contained in:
atlas 2026-10-16 13:38:42 +02:00 • committed by mara
commit 5cec29ff49
2 changed files with 37 additions and 2 deletions

View file

@ -256,7 +256,8 @@ impl BashMcp {
let (killed, was_running) = runner::kill_task(&args.id, args.force);
if !killed {
return format!(
"no running or pending task with id `{}` (already finished or unknown)",
"no running or pending task with id `{}` could be killed (already finished, unknown, \
or its pending file could not be updated — see the daemon log)",
args.id
);
}