-
Notifications
You must be signed in to change notification settings - Fork 7
Open
Description
Summary: On macOS, envPaths currently resolves to ~/Library/Preferences/opencode/skills/, which breaks config read/write.
The correct path should match Linux and use ~/.config/opencode/. (Base on OpenCode's doc - Global Config)
Background
- Source:
src/config.ts - Current behavior for macOS (darwin):
["~/Library/Preferences/opencode/skills/", ".config/opencode/.opencode/skills"], - Intended behavior: use path:
~/.config/opencode/(same as Linux)
Impact
- Actual: Config files are read under
~/Library/Preferences/opencode/skills/on macOS, causing missing configs and path inconsistencies across platforms. - Expected: macOS should use
~/.config/opencode/so Linux/macOS share the same config location.
Steps to Reproduce
- Run the app on macOS.
- Trigger any code path that reads/writes config via
envPaths. - Observe files under
~/Library/Preferences/opencode/skills/instead of~/.config/opencode/.
Environment
- OS: macOS (Tahoe 26.2)
renothing and franky47
Metadata
Metadata
Assignees
Labels
No labels