test: add coverage for resolveStorePaths Windows absolute-path handling
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 86/100
- Issue type
- Feature
- Clarity
- Clearly specified
- Activity status
- Active
- Tech stack
- typescript
- Domain
- testing
Research direction
Start in packages/opencode/src/altimate/native/connections/registry.ts at resolveStorePaths around line 128, then inspect packages/opencode/test/ for the existing test conventions. Make the function or a thin wrapper testable and add coverage for a C:\... global-config path, verifying it remains absolute; run the relevant test file and confirm it passes on a non-Windows OS.
Written by the indexing model from the issue text.
Description
Summary
#1238's Windows-path fix in packages/opencode/src/altimate/native/connections/registry.ts:128 (resolveStorePaths, using path.isAbsolute() || path.win32.isAbsolute()) is explicitly documented in its own commit message as "by-inspection only — no Windows CI." resolveStorePaths is currently unexported and has zero test references anywhere in packages/opencode/test/ — registry-env-loading.test.ts doesn't cover Windows paths either.
path.win32.isAbsolute() behavior is deterministic and fully testable on any OS (no Windows runner required) — this is a cheap gap to close.
Proposed fix
Export resolveStorePaths (or a thin testable wrapper) and add a unit test asserting a C:\...-style global-config path is left absolute rather than mangled by path.resolve, per the gap the #1238 commit already identified in its own message.
Provenance
Found during the v0.11.0 stable release's Tech Lead persona review.
- Dominant language
- TypeScript
- Stars
- 813
- Forks
- 134
- Avg merge
- 2d 5h
- Merged PRs (30d)
- 62
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from AltimateAI/altimate-code
-
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
AltimateAI/altimate-code#1323 ·
-
Difficulty 1/5 Under an hour Newbie friendliness 92/100
AltimateAI/altimate-code#1285 ·
-
privacy: Altimate Base consent dialog no longer discloses persistent per-installation identifier Open
Difficulty 1/5 Under an hour Newbie friendliness 88/100
AltimateAI/altimate-code#1284 ·
-
Difficulty 2/5 Under an hour Newbie friendliness 72/100
AltimateAI/altimate-code#1283 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
AltimateAI/altimate-code#1282 ·
All issues in AltimateAI/altimate-code
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
copse-dev/agent-pane#2953 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
Eynzof/Hermes-CN-Desktop#610 ·
-
bug clawsweeper:linked-pr-open clawsweeper:needs-live-repro clawsweeper:no-new-fix-pr impact:message-loss issue-rating: 🐚 platinum hermit P2 regression
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
-
enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
-
calcite-components needs triage refactor
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
Esri/calcite-design-system#15203 ·