Files
harshitgavita-07andGitHub f70fd576cb fix(hanzo-tools-shell): keep completed background processes queryable (#51)
Once an auto-backgrounded process exited, its tracking record was
deleted, so every later exec lookup for it - wait, logs, ps by proc_id
and kill - raised NotFoundError even though the process had completed
normally and its captured output existed in the log file.

ProcessManager now moves finished processes into a bounded completed
registry (default 100 records) instead of dropping them, and the exec
tool's wait/logs/ps/kill actions consult live and completed records
through get_process_info(). kill on a finished process now reports
already-terminated with its exit code instead of NOT_FOUND; genuinely
unknown process IDs still raise NOT_FOUND.

The added tests fail without the fix (the completed record is gone and
the tool returns NOT_FOUND) and pass with it.
2026-11-06 13:54:20 -08:00
..