You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
π fix(core): use absolute paths in global install config
- Replace `stripDotOpencode()` with `toGlobalPath()` that produces absolute paths (e.g., `/home/user/.config/opencode/skills/...`) instead of relative paths like `skills/...`
- Pass `opencodeHome` to `rewriteTemplatePathsForGlobal()` so it can resolve `.opencode/...` relative to the global config directory
- Update SKILL.md documentation to explain why absolute paths are required (OpenCode resolves config paths relative to the current project directory)
- Bump version to 1.3.7 across `package.json`, migration manifests, and landing page
- Fix will prevent all skill, instruction, and agent references from breaking when `opencode` is run from any project directory
On macOS and Linux, OpenCode automatically reads `~/.config/opencode/opencode.jsonc`. All skills, prompts, commands, and instructions are stored flat in that directory. When you run `opencode` in any project, OpenCode finds this global config and loads everything.
200
200
201
-
The template's `opencode.json` paths (which use `.opencode/skills/...`) are rewritten during global install to flat paths (`skills/...`):
201
+
The template's `opencode.json` paths (which use `.opencode/skills/...`) are rewritten during global install to **absolute paths** pointing into the global directory. This is critical β OpenCode resolves config paths relative to the **current project directory**, so relative paths like `skills/...` would break in every project. Absolute paths guarantee the files are found regardless of where you run `opencode`.
Copy file name to clipboardExpand all lines: CHANGELOG.md
+11Lines changed: 11 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -49,13 +49,24 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
49
49
50
50
-**Windows global install path** β corrected from `%APPDATA%\opencode\` to `%USERPROFILE%\.config\opencode\` to match official OpenCode documentation. The previous path (`%APPDATA%`) would have caused OpenCode to not find the agent kit on Windows.
51
51
-**Official path reference** β all paths now confirmed against [opencode.ai/docs/config/](https://opencode.ai/docs/config/) (Global: `~/.config/opencode/opencode.json` on macOS/Linux, `%USERPROFILE%\.config\opencode\` on Windows)
52
+
-**Absolute paths in global config** β `rewriteTemplatePathsForGlobal()` now produces **absolute paths** (e.g. `/Users/user/.config/opencode/skills/...`) instead of relative paths (`skills/...`). This is critical because OpenCode resolves config paths relative to the **current project directory**, not relative to `~/.config/opencode/`. Relative paths would cause all skill, instruction, and agent references to fail in every project.
52
53
53
54
### Changed
54
55
55
56
-`bin/commands/global-path.mjs`: Windows path uses `USERPROFILE` + `.config\opencode` instead of `APPDATA`
56
57
-`package.json`: version bumped to 1.3.6
57
58
-`.opencode/skills/global-install/SKILL.md`: all Windows path references corrected
58
59
60
+
## [1.3.7] - 2026-06-27
61
+
62
+
### Notes
63
+
64
+
-**Prose `.opencode/` references** (64 occurrences across 17 skill/docs/prompt files) are intentionally **not rewritten** during global install. These are informational text for the LLM, not config paths resolved by OpenCode. The critical fix (absolute config paths in `opencode.jsonc`) was already shipped in v1.3.6.
0 commit comments