Summary
A local code audit found that WhatsApp responsiveness repair identifies local TUI processes with broad command-line matching. A non-TUI process whose argv happens to contain matching terms can be selected for termination during repair.
Affected area
src/commands/doctor-whatsapp-responsiveness.ts
parsePsPidLine
terminateLocalTuiProcesses
Expected
Doctor repair should only signal processes that are confidently identified as OpenClaw TUI clients.
Suggested fix
Make process detection argv-aware and anchored to the expected executable/subcommand shape. Before signaling, revalidate that the PID still refers to the same expected command, ideally with stable process metadata where available.
Suggested regression test
Mock ps output containing a non-TUI command with matching words in argv and assert it is not returned or signaled by the repair path.
Source: local code audit.
Summary
A local code audit found that WhatsApp responsiveness repair identifies local TUI processes with broad command-line matching. A non-TUI process whose argv happens to contain matching terms can be selected for termination during repair.
Affected area
src/commands/doctor-whatsapp-responsiveness.tsparsePsPidLineterminateLocalTuiProcessesExpected
Doctor repair should only signal processes that are confidently identified as OpenClaw TUI clients.
Suggested fix
Make process detection argv-aware and anchored to the expected executable/subcommand shape. Before signaling, revalidate that the PID still refers to the same expected command, ideally with stable process metadata where available.
Suggested regression test
Mock
psoutput containing a non-TUI command with matching words in argv and assert it is not returned or signaled by the repair path.Source: local code audit.