You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
fix(workbuddy): support WorkBuddyAI-app.exe in versioned layout - #1707
Support WorkBuddyAI-app.exe in Windows WorkBuddy 5.12+ versioned launcher layouts (versions/<version>/WorkBuddyAI-app.exe), directory selection (resolveWorkBuddyInstallDirectory), and explicit executable detection (resolveWorkBuddyLaunch in packages/adapters/workbuddy/src/command.ts).
Consolidate the Windows executable candidate list into a shared windowsExecutables constant in packages/adapters/workbuddy/src/discovery.ts.
On Windows, WorkBuddy AI 5.12.3 ships WorkBuddyAI.exe as the top-level launcher and places the actual Electron app (WorkBuddyAI-app.exe) and bundled CLI (resources/app.asar.unpacked/cli/bin/codebuddy) under versions/5.12.3/. Previously only WorkBuddy-app.exe was matched, causing notInstalled (WorkBuddy app or its bundled CLI is unavailable).
Related issues
N/A
UI Demo
No visual changes: adapter discovery and launch path resolution only.
Real-machine verification (Windows x64, WorkBuddy AI 5.12.3)
Applied the matching change to local @codexhost/cli-win32-x64 (0.35.1) plugins/workbuddy/plugin.mjs and verified createHarnessAdapter with WorkBuddy AI 5.12.3:
installation('check') returned currentVersion: "5.12.3", versionKind: "application" for root install directory, versions/5.12.3, and versions/5.12.3/WorkBuddyAI-app.exe
adapter.inspect({}) returned status: "ready" with 27 models
Not run: full Rust suite (cargo test) and non-Windows platform tests.
The reason will be displayed to describe this comment to others. Learn more.
Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota. Try requesting a review at a lower effort level.
This change lets Windows WorkBuddy AI 5.12+ installs, whose app and CLI sit under versioned directories, be detected instead of showing as not installed. It is a narrow, additive discovery fix with tests, and no merge-blocking risk was found.
Included review availability: This review used your included allowance. Your plan provides up to 8 included reviews per hour; 7 remain after this review.
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
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
WorkBuddyAI-app.exein Windows WorkBuddy 5.12+ versioned launcher layouts (versions/<version>/WorkBuddyAI-app.exe), directory selection (resolveWorkBuddyInstallDirectory), and explicit executable detection (resolveWorkBuddyLaunchinpackages/adapters/workbuddy/src/command.ts).windowsExecutablesconstant inpackages/adapters/workbuddy/src/discovery.ts.WorkBuddyAI.exeas the top-level launcher and places the actual Electron app (WorkBuddyAI-app.exe) and bundled CLI (resources/app.asar.unpacked/cli/bin/codebuddy) underversions/5.12.3/. Previously onlyWorkBuddy-app.exewas matched, causingnotInstalled(WorkBuddy app or its bundled CLI is unavailable).Related issues
N/A
UI Demo
No visual changes: adapter discovery and launch path resolution only.
Test plan
Automated checks (Windows x64)
npx prettier --check packages/adapters/workbuddy— passed (All matched files use Prettier code style!)npx eslint packages/adapters/workbuddy— passed (exit code 0)npm run build:typescript(tsc -b && npm run build:plugins) — passed (exit code 0)npx vitest run --config tests/vitest.config.js packages/adapters/workbuddy/test— 16 files passed, 2 skipped (POSIX-onlynonregular-snapshot.test.tsandroot-isolation.test.ts); 248 tests passed, 61 skippednode tools/check-boundaries.mjs— passed (exit code 0)Real-machine verification (Windows x64, WorkBuddy AI 5.12.3)
@codexhost/cli-win32-x64(0.35.1)plugins/workbuddy/plugin.mjsand verifiedcreateHarnessAdapterwith WorkBuddy AI 5.12.3:installation('check')returnedcurrentVersion: "5.12.3",versionKind: "application"for root install directory,versions/5.12.3, andversions/5.12.3/WorkBuddyAI-app.exeadapter.inspect({})returnedstatus: "ready"with27modelscargo test) and non-Windows platform tests.