Fix a race in the cancel_command test #82

Merged
jared merged 1 commits from fix-cancel-test-race into main 2026-11-23 16:02:53 -05:00
1 Commits
Author SHA1 Message Date
jaredandClaude Opus 5.5 0412eeeb38 Fix a race in the cancel_command test
CI / Lint (eslint) (pull_request) Successful in 20s
CI / Test (jest) (pull_request) Successful in 19s
CI / Security (npm audit) (pull_request) Successful in 12s
CI / Scan (secrets, workflows, shell) (pull_request) Successful in 3m9s
CI / Integration (api) (pull_request) Successful in 4m1s
CI / UI screenshots (before/after) (pull_request) Successful in 11s
CI / UI (playwright) (pull_request) Successful in 2m38s
CI / Deploy (pull_request) Skipped
CI / Deploy worker (pull_request) Skipped
CI / Notify (pull_request) Skipped
The shell creates a redirect target before writing to it, so the test
could read an empty pid file, take pid 0, and decide the child was not
running. This failed the push run of #80's merge, so that commit was not
deployed. The command now writes the pid to a temporary file and renames
it into place.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-23 15:54:53 -05:00