finishInstall called configureOpencodePermissions unconditionally, causing fs.mkdirSync + fs.writeFileSync to run even under GSD_TEST_MODE='1', violating the side-effect-free contract. Guarded the call with !process.env.GSD_TEST_MODE. Fixes #130 Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
5
.changeset/130-finishinstall-testmode-guard.md
Normal file
5
.changeset/130-finishinstall-testmode-guard.md
Normal file
@@ -0,0 +1,5 @@
|
||||
---
|
||||
type: Fixed
|
||||
pr: 130
|
||||
---
|
||||
Test-mode installs no longer write the opencode config file — `finishInstall` now skips `configureOpencodePermissions` when `GSD_TEST_MODE=1`.
|
||||
Reference in New Issue
Block a user