fix(config): support both ~/.config and %APPDATA% paths on Windows (#131)

Implements dual-path config resolution on Windows to ensure backward compatibility
while maintaining cross-platform consistency. Checks ~/.config first (new standard),
falls back to %APPDATA% for existing installations.

Resolves #129

🤖 GENERATED WITH ASSISTANCE OF [OhMyOpenCode](https://github.com/code-yeongyu/oh-my-opencode)
This commit is contained in:
YeonGyu-Kim
2025-12-20 13:10:35 +09:00
committed by GitHub
parent a926ebcf8c
commit 6e72173cde
4 changed files with 23 additions and 6 deletions

View File

@@ -703,7 +703,7 @@ Config file locations (priority order):
| Platform | User Config Path |
|----------|------------------|
| **Windows** | `%APPDATA%\opencode\oh-my-opencode.json` |
| **Windows** | `~/.config/opencode/oh-my-opencode.json` (preferred) or `%APPDATA%\opencode\oh-my-opencode.json` (fallback) |
| **macOS/Linux** | `~/.config/opencode/oh-my-opencode.json` |
Schema autocomplete supported: