Fix dictation process lifecycle #36
No reviewers
Labels
No labels
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
nsaspy/zara!36
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "fix/zara-005-dictation-lifecycle"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
What changed
killwithprocess_kill/2Why
The parent Prolog process cached dictation state independently of the child. Self-stop, crashes, and stale PID files could therefore leave the wake loop trapped in dictation mode, while stop trusted arbitrary PID text in a shell command.
Impact
The wake listener returns to normal whenever the dictation child exits. Repeated start/stop calls are safe, malformed state is removed, and PID termination no longer uses shell interpolation.
Validation
nix develop -c scripts/test-dictation-lifecycle.sh(8 passed)nix develop -c scripts/test-prolog-config.shnix develop -c scripts/test-command-routing.shnix develop -c pytest(11 passed)Closes #6