fix: use current OpenCode paths on Windows - #74
Merged
Conversation
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
USERPROFILEas the Windows home and match current OpenCode XDG defaults:~/.config/opencode~/.local/share/opencode~/.local/state/opencodeXDG_CONFIG_HOME,XDG_DATA_HOME, andXDG_STATE_HOMEoverridespath.win32semantics whenever Windows is injected, including sync-plan and repository pathswindows-latestpath-test job without changing the existing Ubuntu checkThis is a narrow replacement for the already-closed #68. It does not include that PR's package, repository, workflow-fork, portable-state, or frontier-selector changes.
Upstream evidence
xdg-basedirfor config, data, and state rootsopencode debug pathsreports.config/opencode,.local/share/opencode, and.local/state/opencodeVerification
bun run checkbun test: 107 tests passed, 233 assertionsbun run buildwindows-latest: 25 path tests and 60 assertions passed using Bun 1.3.2 against an authenticated source archive pinned to head9acb43a8640382c1ff16c7d4f9acad75617b9349Checkand PR-title validation passedThe Windows job uses the exact-head GitHub source archive because Windows Git cannot materialize the repository's existing Unix-only
.mise/tasks/lint:fixfilename. The isolated harness emitted its known warnings: password-free loopback servers, duplicate sandbox skill discovery, and machine B's liveAGENTS.mdnot refreshing even though its sync clone contained the second sentinel and confirmed repository replication.Closes #59