Skip to content

ci: pin the Windows runner to windows-2022 - #85

Merged
abasiri merged 1 commit into
mainfrom
ci/pin-windows-2022
Aug 1, 2026
Merged

ci: pin the Windows runner to windows-2022#85
abasiri merged 1 commit into
mainfrom
ci/pin-windows-2022

Conversation

@abasiri

@abasiri abasiri commented Aug 1, 2026

Copy link
Copy Markdown
Contributor

windows-latest has rolled over to Windows Server 2025, whose image no longer ships the Visual Studio C++ toolchain node-gyp needs. Every Windows build fails in electron-builder's install-app-deps while rebuilding node-pty:

Error: Could not find any Visual Studio installation to use
  ⨯ node-gyp failed to rebuild '...\node_modules\node-pty'  failedTask=installAppDeps

Observed on run 30686024328, triggered by a push to #55. macOS passed in the same run, so this is Windows-image-specific, not a code problem.

Pinning to windows-2022 restores an image that still carries the toolchain.

Why this went unnoticed

build.yml triggers only on pull_request and v* tags — never on push to main — and recent fork PRs are all parked at action_required pending maintainer approval. So no run had actually executed in a while, and the last green Windows runs predate the image rollover. Worth considering separately: adding push: branches: [main] so regressions surface on merge rather than on whichever PR happens to trigger a run.

Credit

@Flaykz spotted this independently and included the same pin in #72. Pulling it out here so it lands on its own merits and #72 can stay focused on the status-bar gauges.

🤖 Generated with Claude Code

The `windows-latest` label has rolled over to Windows Server 2025, whose image
no longer ships the Visual Studio C++ toolchain node-gyp requires. Every Windows
build now fails in electron-builder's install-app-deps while rebuilding node-pty:

    Error: Could not find any Visual Studio installation to use
      ⨯ node-gyp failed to rebuild '...\node_modules\node-pty'  failedTask=installAppDeps

Pinning to windows-2022 restores an image that still carries the toolchain.

This went unnoticed because build.yml only runs on pull_request and v* tags —
never on push to main — and fork PRs sit at action_required, so no run had
actually executed in some time.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
@abasiri
abasiri merged commit 1c0c8c5 into main Aug 1, 2026
5 checks passed
@abasiri
abasiri deleted the ci/pin-windows-2022 branch August 1, 2026 05:55
abasiri added a commit to Flaykz/switchboard that referenced this pull request Aug 1, 2026
Only conflict was .github/workflows/build.yml: this branch pinned the Windows
runner to windows-2022, and doctly#85 landed the same fix on main (credited to
@Flaykz, who found it independently) with a fuller comment explaining the
Windows Server 2025 toolchain removal. Took main's version, so the line is
identical and no longer carried here.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
abasiri pushed a commit that referenced this pull request Aug 1, 2026
Adds two gauges to the status bar: session context usage (read from the tail of the session .jsonl via a new get-session-tokens IPC handler) and 5-hour quota usage (via the existing get-usage handler), with the quota gauge linking to the Stats tab.

The windows-2022 runner pin from this branch landed separately as #85.

Co-authored-by: Flaykz <flaykz@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant