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): discover the bundled CLI in the 5.12+ launcher versions layout - #1383
WorkBuddy 5.12 ships a new launcher layout on Windows: the install root only holds a small launcher WorkBuddy.exe, while the real application and its bundled CLI live under versions/<version>/ (e.g. WorkBuddy-app.exe plus resources/app.asar.unpacked/cli/bin/codebuddy). Discovery required the CLI to sit beside the root executable, so 5.12 installs were reported notInstalled.
When the sibling resources CLI is missing next to a matched Windows executable, discovery now probes versions/<version>/ (newest version first) for an application executable paired with its own CLI, and uses that pair. The root/legacy layout still takes priority, so existing installations resolve exactly as before.
Part of #1382 (part 1: harness detection). The ACP stdio disconnect and stderr diagnostics in that issue are separate concerns not touched here.
Testing
npx vitest run packages/adapters/workbuddy/test/discovery.test.ts — 22/22 passed, including a new case covering the launcher layout.
Full packages/adapters/workbuddy/test run: the only failures (streaming-boundaries unresolved @codexhost/protocol-core, one history-derivation AggregateError assertion) reproduce identically on a clean checkout without this change.
Windows WorkBuddy 被判定为 notInstalled:该问题涉及默认发现路径无法找到已安装的应用。本次改动检查 versions/<version> 下的应用程序和 CLI,但现有信息无法确认该问题报告的安装路径与本次支持的布局一致。
Suggested reviewers:bytepioneer-ai, icepie
Merge Risk: Minimal · up to 2fb79
This adds detection of WorkBuddy's newer Windows launcher layout and leaves the existing layout's priority unchanged. No merge-blocking risk was identified.
Included review availability: This review used your included allowance. Your plan provides up to 8 included reviews per hour; 7 remain after this review.
Learnt from: CR
Repo: BytePioneer-AI/codex-host PR: 0
File: CLAUDE.md:0-0
Timestamp: 2026-11-28T13:43:21.809Z
Learning: Applies to ** : Source excerpt:
# Repository Guidelines
## Testing & Completion
- A change is complete only when implementation, contracts, tests, and affected documentation agree.
Applied to files:
packages/adapters/workbuddy/src/discovery.ts
Learning: 2026-11-17T12:08:43.655Z
Learnt from: CR
Repo: BytePioneer-AI/codex-host PR: 0
File: AGENTS.md:0-0
Timestamp: 2026-11-17T12:08:43.655Z
Learning: Source excerpt:
# Repository Guidelines
## Testing & Completion
- Writing tests. Every test is code to maintain and CI time to pay; add one only when it earns that.
- Small, low-risk changes need no new tests. Add focused tests for high-risk or cross-package changes, or when asked.
- A new test must catch a regression the existing tests would miss. Extend the nearest existing case or `test.each` instead of adding near-duplicates.
- Assert observable behavior (inputs, outputs, protocol messages, persisted state), not internal call order, private state, or mock call counts.
- Mock only external boundaries (network, clock, real CLIs, the OS), never the code under test. Avoid large snapshots and long literal expectations that can only be updated mechanically.
- A bug-fix test must fail before the fix. Never weaken assertions or delete tests just to make a change pass; report the conflict instead.
- When a change makes existing tests redundant or ties them to removed internals...
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
WorkBuddy 5.12 ships a new launcher layout on Windows: the install root only holds a small launcher
WorkBuddy.exe, while the real application and its bundled CLI live underversions/<version>/(e.g.WorkBuddy-app.exeplusresources/app.asar.unpacked/cli/bin/codebuddy). Discovery required the CLI to sit beside the root executable, so 5.12 installs were reportednotInstalled.When the sibling
resourcesCLI is missing next to a matched Windows executable, discovery now probesversions/<version>/(newest version first) for an application executable paired with its own CLI, and uses that pair. The root/legacy layout still takes priority, so existing installations resolve exactly as before.Part of #1382 (part 1: harness detection). The ACP stdio disconnect and stderr diagnostics in that issue are separate concerns not touched here.
Testing
npx vitest run packages/adapters/workbuddy/test/discovery.test.ts— 22/22 passed, including a new case covering the launcher layout.packages/adapters/workbuddy/testrun: the only failures (streaming-boundariesunresolved@codexhost/protocol-core, onehistory-derivationAggregateError assertion) reproduce identically on a clean checkout without this change.