scripts: path comparisons break on Windows (check-greys fails the pre-push hook, upgrade-opentui skips nothing)
Maintainers usually reply within 1 day
@deosiree is already working on this.
Since Nov 24, 2026.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 76/100
- Issue type
- Bug
- Clarity
- Clearly specified
- Activity status
- Active
- Tech stack
- typescript
- Domain
- developer-experience
Research direction
Start in script/check-greys.ts at the EXCEPTIONS.find call near line 74, and in script/upgrade-opentui.ts at the file.split("/") filter near lines 41-43. Both compare paths from Bun.Glob, which uses the platform separator, against /-written strings; the fix is to normalise separators before matching, as script/oxlint/anti-slop/effect/rules/no-service-constructor-imports.ts:31 already does. Done means bun script/check-greys.ts exits 0 on Windows with the same exemptions as Linux, and the upgrade script skips node_modules and dist there.
Written by the indexing model from the issue text.
Description
Description
Two repository scripts compare paths from Bun.Glob against strings written with /. The glob returns the platform separator, so on Windows neither comparison works. The repo already normalises for this in one place (script/oxlint/anti-slop/effect/rules/no-service-constructor-imports.ts:31), so the convention exists and these two missed it.
script/check-greys.ts — fails the pre-push hook on Windows
EXCEPTIONS are written with / (/style\/token\/color\.css$/, /component\/video-editor\//, …) and matched with EXCEPTIONS.find(([re]) => re.test(file)) (:74). On Windows every scanned path is services\site\src\…, so no exception matches and the checker reports greys from the files the list exists to excuse — legacy tokens, the video editor, the font film, print.
Because bun run check is the pre-push hook, every Windows contributor is blocked until they push with --no-verify, which weakens the hook for everyone.
$ bun script/check-greys.ts
services\site\src\style\token\color.css:7 #f5f5f7 not on the scale
…
172 greys off the shared scale (script/check-greys.ts). # exit 1
script/upgrade-opentui.ts — the skip list silently does nothing
const skip = new Set([".git", ".opencode", ".turbo", "dist", "node_modules"])
…
(file) => !file.split("/").some((part) => skip.has(part))
On Windows file.split("/") yields one part (node_modules\foo\package.json), so skip never matches and the script would rewrite the version field of every package.json under node_modules and dist.
Environment
- opencode
devatb0cda20 - Windows 10 22H2, Bun 1.4.5, PowerShell 5.1
Steps to reproduce
- Clone on Windows without Developer Mode.
bun script/check-greys.ts→ 172 problems, exit 1. On Linux the same command exits 0.- Read
script/upgrade-opentui.ts:41-43: the filter keepsnode_modulesanddistentries on Windows.
Expected behavior
Both scripts match on a separator-normalised path, so the same files are exempted and the same directories are skipped on every platform.
Additional context
Fixes are ready on two branches (check-greys one expression; upgrade-opentui one expression). Verified on Windows: bun script/check-greys.ts exit 1 → 0, bun run lint exit 0, and bun run check 36/36 tasks exit 0 once the checkout's 29 symlinks are materialised (they land as text files without Developer Mode, which is a separate, environment-only obstacle).
- Dominant language
- TypeScript
- Stars
- 228k
- Forks
- 31k
- Avg merge
- 5h 19m
- Merged PRs (30d)
- 457
Getting set up
- No Dockerfile or Docker Compose file
- Has a pull request template
- Read the contributing 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 anomalyco/opencode
-
tui: Mermaid renderer displays <b>/<strong> tags literally and ignores \n line breaksPossibly taken @argszero claimed this today. Openarea/tui platform/wsl status/repro-simulated type/bug version/v2
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
anomalyco/opencode#66773 · 2 comments ·
Maintainers usually reply within 1 day
-
area/sdk-api platform/linux type/feature version/v2
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
anomalyco/opencode#66604 · 1 comment ·
Maintainers usually reply within 1 day
-
area/tui platform/linux type/feature version/v2
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
anomalyco/opencode#66585 · 1 comment ·
Maintainers usually reply within 1 day
-
area/web inference/go reproduced type/bug
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
anomalyco/opencode#66475 · 1 comment ·
Maintainers usually reply within 1 day
-
[FEATURE]: More colorful built-in Dracula theme for the desktop appMay be free again A pull request for this issue was closed without being merged. Openarea/desktop type/feature version/v2
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
anomalyco/opencode#66446 · 1 comment ·
Maintainers usually reply within 1 day
All issues in anomalyco/opencode
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 67/100
knaw-huc/textannoviz#742 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
cloudflare/realtimekit-ui#219 ·
Maintainers usually reply within 1 day
-
ui
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
mermaid-js/mermaid-v13#1370 ·
Maintainers usually reply within 1 day
-
area:docs area:plugins bug documentation low-priority platform:windows
Difficulty 1/5 Under an hour Newbie friendliness 84/100
anthropics/claude-code#112676 ·