Skip to content

feat: add OPENCODE_CONFIG_DIR support#51

Merged
marcusrbrown merged 6 commits into
mainfrom
feat/support-opencode-config-dir
Feb 8, 2026
Merged

feat: add OPENCODE_CONFIG_DIR support#51
marcusrbrown merged 6 commits into
mainfrom
feat/support-opencode-config-dir

Conversation

@marcusrbrown
Copy link
Copy Markdown
Owner

Add baseline unit tests for configuration functions and refactor the configuration loading logic to use getConfigPaths as the single source of truth. Introduce support for the OPENCODE_CONFIG_DIR environment variable to allow custom configuration directory resolution. Additional tests ensure proper handling of the new environment variable.

@marcusrbrown marcusrbrown enabled auto-merge (squash) February 5, 2026 13:53
@marcusrbrown marcusrbrown self-assigned this Feb 5, 2026
Comment thread tests/unit/config.test.ts Fixed
Comment thread tests/unit/config.test.ts Fixed
Comment thread tests/unit/config.test.ts Fixed
Comment thread tests/unit/config.test.ts Fixed
Comment thread tests/unit/config.test.ts Fixed
Comment thread tests/unit/config.test.ts Fixed
Comment thread tests/unit/config.test.ts Fixed
Comment thread tests/unit/config.test.ts Fixed
Comment thread tests/unit/config.test.ts Fixed
Comment thread tests/unit/config.test.ts Fixed
- add safe read/unlink helpers to avoid TOCTOU
- replace existsSync checks with helper usage
- restore empty backups instead of deleting
@marcusrbrown marcusrbrown merged commit 38e69f0 into main Feb 8, 2026
8 checks passed
@marcusrbrown marcusrbrown deleted the feat/support-opencode-config-dir branch February 8, 2026 05:08
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.

2 participants