fix(installer): use opencode config dir on Windows#192
Open
NgoQuocViet2001 wants to merge 1 commit into
Open
Conversation
Closed
|
Confirmed this fixes a real bug — hit it today on Windows with OpenCode v1.15.10 and CodeGraph v0.9.4. The installer's Tests pass cleanly, and this is blocking every Windows + OpenCode user from a working install. Any chance this can be merged soon? |
21c3015 to
fab3f64
Compare
Author
|
Thanks for confirming, @skywalker-35. I rebased this on the latest Validation:
@colbymchenry this should be ready for another look/merge when you have a chance. |
|
Will this be merged soon? Thank you :) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
~/.config/opencodeon Windows instead of%APPDATA%/opencode.XDG_CONFIG_HOMEoverride behavior for global installs.APPDATAand verifies CodeGraph writes bothopencode.jsoncandAGENTS.mdunder~/.config/opencode.Closes #186.
Why
OpenCode documents the global config path as
~/.config/opencode/opencode.json, and #186 reports that the installer-created%APPDATA%/opencodeconfig is not the file OpenCode reads on Windows. That makescodegraph install --target=opencodeappear successful while the MCP server and instructions do not load.Duplicate check
Checked recent/open PRs for opencode. #162 and #163 already merged the multi-target installer and
.jsonc/AGENTS.mdsupport, but they do not address the Windows%APPDATA%path. I did not find an open PR covering #186.Test plan
node node_modules/vitest/vitest.mjs run __tests__/installer-targets.test.ts— 57 passednode node_modules/typescript/bin/tsc --noEmit