Repository navigation
feat(workbuddy): support the Linux desktop app - #1163
Conversation
- Discover /opt/WorkBuddy, /opt/WorkBuddy AI, and /opt/WorkBuddyAI with the bundled CLI; ignore PATH launchers. - Use the Linux app's ~/.workbuddy data root for native login, history, and product snapshot. - Accept a Linux app executable or installation directory as an explicit launch path. - Report the Linux app version without querying a non-existent public update feed. - Cover Linux discovery, launch, data root, snapshot, and version checks with focused tests. - Document Linux support and verification on WorkBuddy 5.11.3 / CLI 2.176.0, including native custom models.
|
Caution Review failedThe pull request is closed. No actionable comments were generated in the recent review. Summary
Merge Risk:
|
|
Welcome and thank you for the clean Linux WorkBuddy integration, @icepie! During review we caught one subtle gap where |
目标
让 WorkBuddy Harness 在 Linux 上使用应用内置 CLI,而不是只支持 macOS / Windows。
行为变更
/opt/WorkBuddy、/opt/WorkBuddy AI、/opt/WorkBuddyAI下的workbuddy,并配对同目录resources/app.asar.unpacked/cli/bin/codebuddy;不把 PATH 上的workbuddy包装脚本当成应用。~/.workbuddy(macOS / Windows 保持~/.workbuddy-ai),复用已有登录、原生历史与cache/acc-product-config-v3.json。CODEXHOST_WORKBUDDY_COMMAND支持 Linux 应用目录或应用内的workbuddy;显式原生 CLI 仍按自定义 CLI 处理。product.json的genieVersion;Linux 没有已确认的公共更新 Feed,最新版本标为 Unknown,不发起无效查询。自定义模型
Linux 不需要额外的模型合并逻辑:WorkBuddy CLI 的 ACP Model List 已原生返回
~/.workbuddy/models.json中的自定义模型,原生 ID 形如custom-local:gpt-6.1-sol。Windows 的 snapshot 补偿路径保持不变。验证
npx vitest run --config tests/vitest.config.js packages/adapters/workbuddy/test:14 个文件、182 个测试通过。createHarnessAdapter(...).inspect()返回ready,模型目录 80 项,其中 62 项来自~/.workbuddy/models.json的自定义模型(custom-local:*)。policy=fields收到原生确认;ACPinitialize、session/new、session/set_config_option(选择custom-local:gpt-6.1-sol)成功。currentVersion: 5.11.3、latestVersion: Unknown。No visual changes: adapter discovery and platform metadata only.