Repository navigation
Conversation
Eliminates the temporary EFFECT_MIN_NODE (22.22.3) vs OAR_MIN_NODE (24.21.0) dual-floor split across Python, TypeScript, CI workflows, docs, and tests. Node.js 24.21.0 LTS (Krypton) is kept as the single verified minimum floor: - Node 24.0.0..24.14.x ship SQLite < 3.51.3 and fail LoopX's SQLite authority WAL-reset concurrency qualification; 24.21.0 bundles SQLite 3.53.4 with synchronous statement finalization and StatementSync.prototype.close(). - Aligns Effect Core, OAR, Workbench, Desktop, package.json, and CI lanes onto one floor with zero dual-floor branching (keeping zero-branching compatibility aliases for legacy constant/helper names where external callers such as session_host_server.ts reference them). Signed-off-by: song <xinxinsong66@gmail.com>
Adds deterministic checksum-verified Node 24 LTS sidecar staging and bundling for Desktop across macOS, Linux, and Windows, and updates Tauri runtime search to prefer the bundled sidecar over host PATH/version-manager discovery: - scripts/desktop_node_sidecar.py pins Node.js v24.23.0 (LTS Krypton, OpenSSL 3.5.9, SQLite 3.54.1, satisfying >= 24.21.0) with official nodejs.org SHA-256 digests for all 6 macOS/Linux/Windows targets, safe extraction, native --version verification, and atomic manifest publication. - Wires binaries/loopx-node into tauri.conf.json externalBin (avoiding macOS notarization rejections for Mach-O files in Contents/Resources and avoiding Linux /usr/bin/node collisions), adds macOS Hardened Runtime V8/Wasm JIT Entitlements.plist, and hooks staging into package.json and Desktop CI. - Updates services.rs to verify and prepend the bundled sidecar shim at index 0 of PATH (skipping host version-manager scanning in packaged builds), falling back cleanly to host PATH/nvm discovery only when absent or invalid. Signed-off-by: song <xinxinsong66@gmail.com>
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
This pull request has merge conflicts with Choose the remote for the base repository, not an out-of-date fork. git fetch upstream
git rebase upstream/codex/oar-deep-fusion-phase0-1
# Resolve each conflict, git add the resolved files, then git rebase --continue.
git push --force-with-lease origin HEADFor a same-repository clone whose Keep the DCO |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: f9fcf27992
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
Signed-off-by: song <xinxinsong66@gmail.com>
songoow
left a comment
There was a problem hiding this comment.
Reviewer: model_agent · GPT-6 Astra Pro · OpenAI · self_reported
Request changes conclusion (author-owned PR; GitHub blocks formal self-review)
动机 / Motivation
从 Finder 启动 LoopX Desktop、通过桌面 Chat 使用本机 Codex 或 Claude Code 的用户会经过这条路径。以前桌面应用从版本管理器寻找工具;现在安装包自带 Node,普通用户可以少装一个运行时,但原有工具目录仍须保留。期望是内置 Node 优先,同时仍能打开已安装的聊天工具。本次审查覆盖 Node 版本探测、安装包准备、子进程搜索路径和 Chat 的可用性判断。
改动思路 / Approach
运行时版本选择和附属命令发现应共用原有搜索顺序,Node 的首选目录只需要占第一位。 构建期按目标平台下载固定版本的二进制,以归档摘要验证来源;运行期挑选可执行文件,再用版本探测决定是否启用 sidecar。现有目录发现器已能处理被桌面启动环境省略的目录。保留统一版本下限和随包二进制,恢复后续工具目录并为这个组合补回归。
具体改动 / Changes
关键代码讲解
stage_sidecar 按 Rust target 选择包,在同目录中暂存二进制和 manifest,原生目标还会运行版本检查。Tauri 的 externalBin、npm prebuild、macOS 签名配置及 updater 流程共同决定产物。Python 和 TypeScript 的探测器统一使用 24.21.0 下限,Effect、OAR、Workbench、doctor、脚本、CI 和安装文档同步更新。Rust 的 runtime_search_path_with_bundled 把内置 Node 放首位,但在第 1827 行就返回,遗漏第 1888 行已有的版本管理器目录发现。Chat 服务在创建子进程时继承这个 PATH,能力列表直接用 shutil.which 查找 Codex 与 Claude。
基线规范 apps/desktop/loopx-control-plane/README.md,版本 433dc52。条目「Desktop host discovery」要求安装器和自有服务能使用原有版本管理器目录。当前 head 在已打包分支未满足其中的工具发现要求。路径构造
对主干的风险 / Risks
P1 打包版 Desktop 会丢失版本管理器里的聊天工具。 在与打包分支输出相同的 PATH 下,真实 builtin_chat_endpoints 对仅装在 Volta 目录的 Codex 与 Claude 都返回 executable_not_found;追加 Volta 后两者立即可用,node 仍解析到同一 shim。 这个场景覆盖已安装 CLI、从桌面启动、没有 shell 初始化的组合。现有 Rust 断言要求打包后跳过 nvm,覆盖的是 Node 优先级,没有检查另一个目录里的聊天命令。保持内置 Node 排第一,将 fnm、Volta、mise 和 asdf 的非 Node 工具目录继续追加到 PATH。 建议同时断言 Node 的真实目标和两条 Chat capability。
我的整体评价 / Verdict
打包能减少安装步骤,但已配置工具在每次桌面启动后都会消失,长会话和用户操作均受影响。Python 定向测试共 123 项通过,其中两个 OAR Bridge 用例在提供锁文件对应的 npm 依赖后重跑通过。Python 版本探测、Desktop sidecar SHA 校验和 Windows/macOS/Linux 三种归档格式的仓库测试均通过;Node 版本矩阵 34 通过、4 项因缺少另一 Node 版本而跳过。 本轮未实际生成或启动签名版 macOS 或 Windows 安装包。
English verdict: REQUEST_CHANGES at 032cab5 — bundled Desktop drops discovered host CLIs; the catalog counterexample passes with the manager directory restored.
Signed-off-by: Codex <codex@openai.com> Signed-off-by: song <liusongstep@gmail.com>
Signed-off-by: Codex <codex@openai.com> Signed-off-by: song <liusongstep@gmail.com>
|
This pull request has merge conflicts with Choose the remote for the base repository, not an out-of-date fork. git fetch upstream
git rebase upstream/main
# Resolve each conflict, git add the resolved files, then git rebase --continue.
git push --force-with-lease origin HEADFor a same-repository clone whose Keep the DCO |
Use the shared OAR branch point to carry the Node 24 delta onto main after the OAR squash merge. The Node and desktop runtime patch is byte-identical against the updated base. Signed-off-by: Codex <codex@openai.com> Signed-off-by: song <liusongstep@gmail.com>
Signed-off-by: Codex <codex@openai.com> Signed-off-by: song <liusongstep@gmail.com>
songoow
left a comment
There was a problem hiding this comment.
Reviewer: model_agent · GPT-6 Astra Pro · OpenAI · self_reported
Approval conclusion (author-owned PR; GitHub blocks formal self-approval)
动机 / Motivation
从桌面或命令行启动聊天和 Workbench 的用户依赖同一套运行时。主干上的 Node 22.22.3 可运行 Effect,但 OAR 报不支持。同一台机器会得到两个资格结论。该版本把公开下限统一为 24.21.0,并让打包版优先使用自带 Node;Volta 中的 Codex 和 nvm 中的 Claude 仍可启动。本次核对运行时资格、随包文件和宿主工具发现。
改动思路 / Approach
Node 版本资格由统一探测器负责,桌面可执行文件及其搜索顺序由已有启动器负责。随包 Node 的准备与校验属于发布流程;桌面先校验 sidecar;缺失或版本不合格时,继续按已有路径查找可用的宿主 Node。
具体改动 / Changes
56 个文件涉及 runtime、桌面安装、发布和测试;与 #10243 共有 5 个路径,合并树无冲突。主干 Effect 接受 Node 22.22.3;当前 PR 和 #10243 集成树中,Effect 与 OAR 均以 24.21.0 为下限并拒绝该版本。
按 docs/reference/protocols/host-integration-surface-v0.md(e357962f24577c19cf74153572fc9fd65be7487b)验证 host-node-runtime。当前 main 与 PR 组成的集成树:38/38 TypeScript 测试通过,无跳过,分别提供 Node 22.12.0、24.21.0、26.14.0;Python 的 sidecar、探测、OAR 和 Workbench 用例 147 项通过;补齐 pytest 插件后,工作流用例 44/44 通过。当前 PR tree 的 Linux Rust 路径用例 15/15。
对主干的风险 / Risks
此前的打包目录反例丢失 Codex。当前 PR tree 在真实 Rust 路径输出上运行 Python builtin_chat_endpoints,Codex、Claude 均报告可用且 node 仍指向 sidecar。本机是 Linux。已验证原生 resolver 和发布归档逻辑;没有在本机执行签名后的 macOS/Windows 安装程序。获取检查时 15 项成功、6 项跳过、6 项未结束。
我的整体评价 / Verdict
当前 head 的实现与上述范围一致,可以接受。Node 版本资格由统一探测器负责,桌面可执行文件及其搜索顺序由已有启动器负责。随包 Node 的准备与校验属于发布流程;桌面先校验 sidecar;缺失或版本不合格时,继续按已有路径查找可用的宿主 Node。
English verdict: APPROVE at ddbf5f2. Verified the unified Node floor and bundled Desktop host CLI discovery on the current change.
|
This pull request has merge conflicts with Choose the remote for the base repository, not an out-of-date fork. git fetch upstream
git rebase upstream/main
# Resolve each conflict, git add the resolved files, then git rebase --continue.
git push --force-with-lease origin HEADFor a same-repository clone whose Keep the DCO |
…security, and Desktop PATH invariants Signed-off-by: song <xinxinsong66@gmail.com>
…nd align workbench probe_node test Signed-off-by: song <xinxinsong66@gmail.com>
|
Synced CI &
|
Signed-off-by: Codex <codex@openai.com> Signed-off-by: song <liusongstep@gmail.com>
songoow
left a comment
There was a problem hiding this comment.
Reviewer: model_agent · GPT-6 Astra Pro · OpenAI · self_reported
Approval conclusion (author-owned PR; GitHub blocks formal self-approval)
动机 / Motivation
从命令行和打包 Desktop 打开工作台的用户依赖一致的 Node 资格判断。主干的 Effect 探测仍接受 22.22.3,OAR 使用 24.21.0;早先候选的 Rust 版本解析签名及 Python 测试导入还会触发 CI 静态检查。当前提交把公开下限统一为 24.21.0,保留 sidecar 和宿主工具发现,并清掉此次修改带来的两处静态检查错误。这里验证版本解析、打包辅助脚本、启动路径和此次变更引起的静态检查。
改动思路 / Approach
安装流程负责校验和准备随包 Node;运行时由同一版本规则决定是否能启动,桌面 resolver 仍负责安排宿主工具的搜索路径。新类型别名只描述现有版本三元组,恢复的静态检查标注仅解释测试为什么先准备本地导入路径。通过同一入口和合成 fixture 比较改动前后的运行结果,并核对错误返回时能否恢复原有工作流。
具体改动 / Changes
56 项 Python 测试和 34 项子测试通过;显式提供 Node 22.12.0、24.21.0 和 26.14.0 的 TypeScript 矩阵 38/38 通过,无跳过。主干资格函数对 22.22.3 和 24.21.0 都返回 true;当前树分别返回 false 和 true,实际运行 24.21.0 时两边都可启动探测。用 CI 同系列 Clippy 单独编译相同源码,旧签名确实触发 type_complexity,当前签名和仓库原 SemVer 表通过。E402 修复恢复了基线在该导入处的标注。
本次按 docs/reference/protocols/host-integration-surface-v0.md(e410b012e67a2fa75ff0056b16ab1362b931764d)核对 NODE_RUNTIME 的实现。其中比较的是仓库实际调用方所获得的结果,远端整套发布流水线单独记录。
对主干的风险 / Risks
本机未构建签名的 Windows/macOS 应用。此前 CI 还报告主干已有的 executor.py F401 和 ServiceSet::adopt 的 Clippy 大错误类型;stage2c 汇总收到 cancelled 或 skipped,并没有给出独立的 pytest 失败。新提交的远程 CI 请单独跟踪。用 CI 同系列 Clippy 单独编译相同源码,旧签名确实触发 type_complexity,当前签名和仓库原 SemVer 表通过。E402 修复恢复了基线在该导入处的标注。上述证据支持本次所修改的调用边界;对未执行的平台不作延伸判断。
我的整体评价 / Verdict
没有发现当前提交引入的合并阻塞项。安装流程负责校验和准备随包 Node;运行时由同一版本规则决定是否能启动,桌面 resolver 仍负责安排宿主工具的搜索路径。新类型别名只描述现有版本三元组,恢复的静态检查标注仅解释测试为什么先准备本地导入路径。
English verdict: APPROVE at 0b3cfdc. The unified runtime floor and the two branch-owned lint fixes are verified.
|
This pull request has merge conflicts with Choose the remote for the base repository, not an out-of-date fork. git fetch upstream
git rebase upstream/main
# Resolve each conflict, git add the resolved files, then git rebase --continue.
git push --force-with-lease origin HEADFor a same-repository clone whose Keep the DCO |
Keep custom-protocol embedding for the local installer while excluding release-only resources and the Node sidecar. Reconcile installer coverage, make damaged sidecar manifests recoverable and align PATH diagnostics with the launched executable. Box only rejected service handoffs to clear the desktop Clippy gate, and stage the required resources in the documented Cargo checks. Signed-off-by: Codex <codex@openai.com> Signed-off-by: song <liusongstep@gmail.com>
This PR targets
main, which includes #9854 at93be88db8. The Node baseline and Desktop sidecar changes can be reviewed independently of #10241 and #10242.Summary
Part A — Unify Effect Core, OAR, Workbench, Desktop & CI onto ONE Single Node 24 Baseline (
24.21.0)24.21.0LTS Krypton) rationale:@botiverse/oardeclaresnode >= 24.0.0, but Node24.0.0..24.14.xembed SQLite< 3.51.3without the WAL-reset concurrency fix required byloopx/control_plane/coordination/sqlite_runtime.ts(SQLite3.51.3landed in Nodev24.15.0).24.21.0bundles SQLite3.53.4(WAL-reset fix + synchronous statement finalization +StatementSync.prototype.close()), OpenSSL3.5.8, and matches LoopX's qualification ledger,package.json, CI matrix,session_host_server.ts,apps/workbench/.../oar.ts, and Desktopservices.rs.EFFECT_MIN_NODE = 22.22.3vsOAR_MIN_NODE = 24.21.0) and all dual-floor branching across:loopx/control_plane/runtime/node_probe.py&loopx/control_plane/runtime/node_version.ts(keeping zero-branching compatibility aliases pointing toMINIMUM_NODE_VERSIONfor untouched callers such assession_host_server.ts)loopx/doctor.py,loopx/cli_commands/opencode2_goal_worker.py,loopx/cli_commands/workbench.py,loopx/hosts/oar_client.py,loopx/control_plane/runtime/workbench.ts,loopx/control_plane/coordination/sqlite_runtime.ts,loopx/control_plane/scheduler/heartbeat_followup_cli.ts,loopx/entrypoint.py, and shell launchers (scripts/dashboard-dev.sh,scripts/loopx,scripts/loopx.ps1)CONTRIBUTING.md,README.md,README.zh-CN.md,README.ja.md,pyproject.toml,docs/guides/installing-loopx.md,docs/development/frontend-delivery.md,docs/reference/protocols/host-integration-surface-v0.md,docs/reference/sqlite-authority-store.md,packages/loopx-core/README.md).github/workflows/python-tests.yml,examples/github-actions-runtime-smoke.py,scripts/ci/test_windows_lane_coverage.py,examples/goal-direction-baseline-f2-smoke.py) and Python/TS unit suites.Part B — Desktop Bundled Node 24 LTS Sidecar (
apps/desktop/loopx-control-plane/)scripts/desktop_node_sidecar.pyto deterministically download (HTTPS-only), verify against pinned officialnodejs.org/dist/v24.23.0/SHASUMS256.txtSHA-256 digests for all 6 macOS/Linux/Windows target triples, safely extract (rejecting symlinks/non-regular entries), run native--versionverification (v24.23.0 >= 24.21.0, including OpenSSL3.5.9+ SQLite3.54.1+ Oct/Nov 2026 security patches), and atomically stagesrc-tauri/binaries/loopx-node-<target>[.exe]with adesktop_node_sidecar_v1manifest.externalBin: ["binaries/loopx-node"]and macOS Hardened Runtime V8/Wasm JITEntitlements.plistintosrc-tauri/tauri.conf.json(avoiding Apple notarization rejections for Mach-O files insideContents/Resources/and Linux/usr/bin/nodecollisions), addedstage:node+prebuildinapps/desktop/loopx-control-plane/package.json, ignored staged binaries in.gitignore, and wired staging into.github/workflows/desktop-updater.ymland.github/workflows/desktop-release-artifacts.yml.src-tauri/src/services.rsto verify (is_executable_file+--version >= 24.21.0) and prepend the bundled sidecar shim (nodesymlink on Unix; cached hardlink/copynode.exeon Windows) atPATH[0], skipping host version-manager scanning in packaged builds and falling back cleanly to hostPATH/nvm discovery only in unpackaged dev/test runs or when the sidecar is absent/invalid.src-tauri/src/services_tests.rs,tests/desktop/test_node_sidecar.py, and updatedapps/desktop/loopx-control-plane/README.md.Verification
npm run typecheck:control-plane: PASS (0 errors)dashboard_node_runtime,scheduler_heartbeat_followup_cli,sqlite_runtime_admission,sqlite_authority_runtime_matrix,workbench): 54 passed, 0 failed (4 host-matrix skips for absent distinct/below-floor binary)pytest(Node probe, equivalence, readiness, entrypoint, workbench bridge, contributing, opencode2 worker, turn-journal inspection,test_doctor*,test_python_ci_workflow, plus targetedtest_cli_entrypoint,test_start_goal_compact_projection,test_turn_host_decision_capture,test_oar_session_client,test_oar_phase3_integration): 1,031 passed (independent verifier run; 399 in author focused run)tests/desktopunittest (includingtest_node_sidecar.py): 55/55 PASSdesktop_node_sidecar.stage_sidecar+verify_onlyagainst officialnodejs.org/dist/v24.23.0/node-v24.23.0-linux-x64.tar.xz: PASSexamples/github-actions-runtime-smoke.py,examples/desktop-release-workflow-smoke.py,scripts/ci/test_windows_lane_coverage.py,node scripts/ci/lint-external-transports.mjs,ruff(external-request, external-transport, new scripts/tests),python -m loopx.cli check(ok: True, 0 errors): all PASScargo/rustcabsent on this Linux dev host; manual borrow-checker/type/cfg/clippy -D warningsaudit completed and independently reviewed; Desktop CI (desktop-updater.ymlmacOS + Windows jobs anddesktop-release-artifacts.yml) will compile and executecargo test --locked && cargo clippy --all-targets --locked -- -D warnings.