Skip to content

fix(workbuddy): support WorkBuddyAI-app.exe in versioned layout - #1707

Merged
iruriQ merged 1 commit into
BytePioneer-AI:mainfrom
TimYuhong:fix/workbuddyai-versioned-app-exe
Dec 5, 2026
Merged

iruriQ merged 1 commit into
BytePioneer-AI:mainfrom
TimYuhong:fix/workbuddyai-versioned-app-exe

Conversation

@TimYuhong

Copy link
Copy Markdown

Summary

  • 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.

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-only nonregular-snapshot.test.ts and root-isolation.test.ts); 248 tests passed, 61 skipped
  • node tools/check-boundaries.mjs — passed (exit code 0)

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.

Copilot AI balanced review requested due to automatic review settings December 5, 2026 07:28

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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.

@coderabbitai

coderabbitai Bot commented Dec 5, 2026 •

Copy link
Copy Markdown

Explain Change →

No actionable comments were generated in the recent review.

Summary

Summary by CodeRabbit

  • 新功能
    • Windows 版 WorkBuddy 现在可识别 WorkBuddyAI-app.exe,包括显式指定的安装路径及版本化安装目录。
    • 扩展了 WorkBuddyAI 自定义根目录和直接指定版本目录的发现支持。

Windows WorkBuddy 可执行文件匹配和发现逻辑新增对 WorkBuddyAI-app.exe 的支持。测试覆盖显式安装路径、版本目录布局,以及 WorkBuddyAI 的应用与 CLI 配对。

Changes: Windows WorkBuddy 发现

Layer / File(s) Summary
扩展 Windows 可执行文件发现
packages/adapters/workbuddy/src/command.ts, packages/adapters/workbuddy/src/discovery.ts, packages/adapters/workbuddy/test/discovery.test.ts
命令匹配和共享候选列表新增 WorkBuddyAI-app.exe。安装目录解析和版本目录探测使用该候选列表。测试新增显式路径、WorkBuddyAI 根目录及 WorkBuddyAI 版本目录覆盖,并验证应用与同目录 CLI 配对。

Estimated code review effort: 2 (Simple) | ~10 minutes

Change: Bug fix

Possibly related PRs

  • BytePioneer-AI/codex-host#1383:该 PR 为 WorkBuddy 5.12+ 的版本目录布局添加 CLI 发现逻辑;本次改动也涉及相同布局的可执行文件发现。
  • BytePioneer-AI/codex-host#1398:该 PR 处理 Windows WorkBuddy 5.12+ 启动器布局;本次改动也扩展 Windows 版本目录下的可执行文件识别。

Suggested reviewers: bytepioneer-ai, koeria

Merge Risk: Minimal · up to 9cdde

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.

Pre-merge checks: Passed 4

Check name Status Explanation
Title check Passed 标题与变更内容相符。变更在 Windows WorkBuddy 5.12+ 的 versions/ 布局中支持 WorkBuddyAI-app.exe,并涉及 discovery.ts 与 command.ts 中的可执行文件匹配。标题简洁,指出了主要变更。
Description check Passed 描述与变更内容直接相关。描述说明了 WorkBuddyAI-app.exe 在 Windows 5.12+ 布局中的支持、windowsExecutables 常量的合并、涉及的函数,并列出了测试与真实机器验证结果。
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Finishing Touches

Generate unit tests (beta)

  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

Recent review info

Run configuration

Commits

Reviewing files that changed from the base of the PR and between 8b14ba9 and 9cdde10.

Files selected for processing: 3

  • packages/adapters/workbuddy/src/command.ts
  • packages/adapters/workbuddy/src/discovery.ts
  • packages/adapters/workbuddy/test/discovery.test.ts

Included review availability: This review used your included allowance. Your plan provides up to 8 included reviews per hour; 7 remain after this review.

Recent review details

Context from checks skipped due to timeout: 3

  • GitHub Check: CodeRabbit
  • GitHub Check: Static checks
  • GitHub Check: Vitest
Additional context used

Code guidelines: 2

AGENTS.md — auto-discovered
CLAUDE.md — auto-discovered
Path-based instructions: 2

Source excerpt: Harness-specific protocol details must remain inside the corresponding Adapter.

CodeRabbit inference engine (AGENTS.md)

Files:

  • packages/adapters/workbuddy/src/command.ts
  • packages/adapters/workbuddy/src/discovery.ts
  • packages/adapters/workbuddy/test/discovery.test.ts
Source excerpt: `codexhost` runs external Agent Harnesses as independent Threads inside Codex Desktop, preserving the official shell and native Codex path.

CodeRabbit inference engine (AGENTS.md)

Files:

  • packages/adapters/workbuddy/src/command.ts
  • packages/adapters/workbuddy/src/discovery.ts
  • packages/adapters/workbuddy/test/discovery.test.ts
Learnings: 1

Learning: 2026-11-28T13:43:21.809Z

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/test/discovery.test.ts

@iruriQ
iruriQ merged commit 7489843 into BytePioneer-AI:main Dec 5, 2026
7 checks passed
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.

4 participants