Skip to content

Stop writing protocol.json to home directory on slave nodes#45

Merged
jonathonbyrdziak merged 1 commit intomasterfrom
fix/no-protocol-json-in-homedir
Mar 20, 2026
Merged

Stop writing protocol.json to home directory on slave nodes#45
jonathonbyrdziak merged 1 commit intomasterfrom
fix/no-protocol-json-in-homedir

Conversation

@jonathonbyrdziak
Copy link
Copy Markdown
Contributor

Summary

  • Removes the block in flowSlaveNode() that wrote protocol.json and ran git init in the user's working directory (e.g. /home/ec2-user/)
  • All slave node config is already stored in NodeConfig at ~/.protocol/.node/nodes/{project}.json — the local protocol.json was redundant and misplaced
  • Also removes the erroneous git init that was creating a git repo in the user's home directory

Test plan

  • Run protocol init on a production node — verify no protocol.json appears in the working directory
  • Verify ~/.protocol/.node/nodes/{project}.json contains the full config
  • Verify existing commands that read from NodeConfig still work

🤖 Generated with Claude Code

Slave node init was writing protocol.json and running git init in
whatever directory the user ran from (e.g. /home/ec2-user/), polluting
the home directory. All slave config is already stored in NodeConfig
at ~/.protocol/.node/nodes/{project}.json — the local protocol.json
was redundant and misplaced.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@jonathonbyrdziak jonathonbyrdziak merged commit b515414 into master Mar 20, 2026
6 of 8 checks passed
@jonathonbyrdziak jonathonbyrdziak deleted the fix/no-protocol-json-in-homedir branch March 20, 2026 22:38
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