Skip to content

Fix a race in the fake claude args file - #2

Merged
icntswm merged 1 commit into
mainfrom
fix/fake-args-race
Sep 28, 2026
Merged

icntswm merged 1 commit into
mainfrom
fix/fake-args-race

Conversation

@icntswm

@icntswm icntswm commented Sep 28, 2026

Copy link
Copy Markdown
Owner

The adapter test "abortActiveRuns kills live runs and removes their tmp dirs" waits for the fake claude to create its args file, then kills it and reads the file. The fake could be killed between creating the file and writing it, so the test read an empty file and failed with Unexpected end of JSON input (seen on macOS, Node 24, in the 1.4.0 release run).

The fake now writes the args to a temporary file and renames it into place, so the file appears only when it is complete. Test-only change.

@icntswm
icntswm merged commit 0a6b818 into main Sep 28, 2026
6 checks passed
@icntswm
icntswm deleted the fix/fake-args-race branch September 28, 2026 17:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant