Skip to content

feat(runtime,desktop): unify Node 24.21.0 single baseline and bundle Desktop Node 24 sidecar - #10244

Open
songoow wants to merge 13 commits into
mainfrom
codex/node24-unification
Open

songoow wants to merge 13 commits into
mainfrom
codex/node24-unification

Conversation

@songoow

@songoow songoow commented Dec 6, 2026 •

Copy link
Copy Markdown
Collaborator

This PR targets main, which includes #9854 at 93be88db8. 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)

  • Single verified floor (24.21.0 LTS Krypton) rationale:
    • @botiverse/oar declares node >= 24.0.0, but Node 24.0.0..24.14.x embed SQLite < 3.51.3 without the WAL-reset concurrency fix required by loopx/control_plane/coordination/sqlite_runtime.ts (SQLite 3.51.3 landed in Node v24.15.0).
    • Node 24.21.0 bundles SQLite 3.53.4 (WAL-reset fix + synchronous statement finalization + StatementSync.prototype.close()), OpenSSL 3.5.8, and matches LoopX's qualification ledger, package.json, CI matrix, session_host_server.ts, apps/workbench/.../oar.ts, and Desktop services.rs.
  • Eliminated the temporary dual-floor split (EFFECT_MIN_NODE = 22.22.3 vs OAR_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 to MINIMUM_NODE_VERSION for untouched callers such as session_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)
    • Docs & metadata (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)
    • CI workflows & smokes (.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/)

  • Added scripts/desktop_node_sidecar.py to deterministically download (HTTPS-only), verify against pinned official nodejs.org/dist/v24.23.0/SHASUMS256.txt SHA-256 digests for all 6 macOS/Linux/Windows target triples, safely extract (rejecting symlinks/non-regular entries), run native --version verification (v24.23.0 >= 24.21.0, including OpenSSL 3.5.9 + SQLite 3.54.1 + Oct/Nov 2026 security patches), and atomically stage src-tauri/binaries/loopx-node-<target>[.exe] with a desktop_node_sidecar_v1 manifest.
  • Wired externalBin: ["binaries/loopx-node"] and macOS Hardened Runtime V8/Wasm JIT Entitlements.plist into src-tauri/tauri.conf.json (avoiding Apple notarization rejections for Mach-O files inside Contents/Resources/ and Linux /usr/bin/node collisions), added stage:node + prebuild in apps/desktop/loopx-control-plane/package.json, ignored staged binaries in .gitignore, and wired staging into .github/workflows/desktop-updater.yml and .github/workflows/desktop-release-artifacts.yml.
  • Updated src-tauri/src/services.rs to verify (is_executable_file + --version >= 24.21.0) and prepend the bundled sidecar shim (node symlink on Unix; cached hardlink/copy node.exe on Windows) at PATH[0], skipping host version-manager scanning in packaged builds and falling back cleanly to host PATH/nvm discovery only in unpackaged dev/test runs or when the sidecar is absent/invalid.
  • Added unit and contract coverage in src-tauri/src/services_tests.rs, tests/desktop/test_node_sidecar.py, and updated apps/desktop/loopx-control-plane/README.md.

Verification

  • npm run typecheck:control-plane: PASS (0 errors)
  • Control-plane TS tests (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)
  • Python pytest (Node probe, equivalence, readiness, entrypoint, workbench bridge, contributing, opencode2 worker, turn-journal inspection, test_doctor*, test_python_ci_workflow, plus targeted test_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/desktop unittest (including test_node_sidecar.py): 55/55 PASS
  • Live E2E desktop_node_sidecar.stage_sidecar + verify_only against official nodejs.org/dist/v24.23.0/node-v24.23.0-linux-x64.tar.xz: PASS
  • Smokes & lints: examples/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 PASS
  • Rust crate: cargo/rustc absent on this Linux dev host; manual borrow-checker/type/cfg/clippy -D warnings audit completed and independently reviewed; Desktop CI (desktop-updater.yml macOS + Windows jobs and desktop-release-artifacts.yml) will compile and execute cargo test --locked && cargo clippy --all-targets --locked -- -D warnings.

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>
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Dec 6, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-12-06T03:42:20.067838Z f9fcf27 PR opened
ℹ️ 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" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@mergify

mergify Bot commented Dec 6, 2026

Copy link
Copy Markdown

This pull request has merge conflicts with codex/oar-deep-fusion-phase0-1 and cannot be merged
until they are resolved. Please rebase or merge the base branch, @songoow.

Choose the remote for the base repository, not an out-of-date fork.
For a fork clone, first inspect git remote -v; upstream must point
to https://github.com/loopx-project/loopx.git. If it is absent, add it
with git remote add upstream https://github.com/loopx-project/loopx.git.
Then run:

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 HEAD

For a same-repository clone whose origin points to
https://github.com/loopx-project/loopx.git, use origin instead of
upstream for fetch/rebase. If you prefer merging the base, use
git merge <base-remote>/codex/oar-deep-fusion-phase0-1 and push normally.

Keep the DCO Signed-off-by trailer on every commit when you rebase.
https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/working-with-forks/syncing-a-fork

@mergify mergify Bot added the needs-rebase Mergify: the pull request has merge conflicts with its base branch label Dec 6, 2026

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 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".

@mergify mergify Bot removed the needs-rebase Mergify: the pull request has merge conflicts with its base branch label Dec 6, 2026

@songoow songoow left a comment

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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>
Base automatically changed from codex/oar-deep-fusion-phase0-1 to main December 6, 2026 07:17
@mergify

mergify Bot commented Dec 6, 2026

Copy link
Copy Markdown

This pull request has merge conflicts with main and cannot be merged
until they are resolved. Please rebase or merge the base branch, @songoow.

Choose the remote for the base repository, not an out-of-date fork.
For a fork clone, first inspect git remote -v; upstream must point
to https://github.com/loopx-project/loopx.git. If it is absent, add it
with git remote add upstream https://github.com/loopx-project/loopx.git.
Then run:

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 HEAD

For a same-repository clone whose origin points to
https://github.com/loopx-project/loopx.git, use origin instead of
upstream for fetch/rebase. If you prefer merging the base, use
git merge <base-remote>/main and push normally.

Keep the DCO Signed-off-by trailer on every commit when you rebase.
https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/working-with-forks/syncing-a-fork

@mergify mergify Bot added the needs-rebase Mergify: the pull request has merge conflicts with its base branch label Dec 6, 2026
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>
@mergify mergify Bot removed the needs-rebase Mergify: the pull request has merge conflicts with its base branch label Dec 6, 2026
Signed-off-by: Codex <codex@openai.com>
Signed-off-by: song <liusongstep@gmail.com>

@songoow songoow left a comment

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

@mergify

mergify Bot commented Dec 6, 2026

Copy link
Copy Markdown

This pull request has merge conflicts with main and cannot be merged
until they are resolved. Please rebase or merge the base branch, @songoow.

Choose the remote for the base repository, not an out-of-date fork.
For a fork clone, first inspect git remote -v; upstream must point
to https://github.com/loopx-project/loopx.git. If it is absent, add it
with git remote add upstream https://github.com/loopx-project/loopx.git.
Then run:

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 HEAD

For a same-repository clone whose origin points to
https://github.com/loopx-project/loopx.git, use origin instead of
upstream for fetch/rebase. If you prefer merging the base, use
git merge <base-remote>/main and push normally.

Keep the DCO Signed-off-by trailer on every commit when you rebase.
https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/working-with-forks/syncing-a-fork

@mergify mergify Bot added the needs-rebase Mergify: the pull request has merge conflicts with its base branch label Dec 6, 2026
…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>
@songoow

songoow commented Dec 6, 2026

Copy link
Copy Markdown
Collaborator Author

Synced codex/node24-unification with latest main (7ac233da3) via strict non-force fast-forward (ddbf5f281..ff03c5e2f), resolved the CI failures from run 47624608473, and completed adversarial invariant hardening with property / state-matrix tests:

CI & main Sync Fixes

  • stage2c (e2e 1), stage2c (e2e 2), stage2c-correctness-e2e (run 47624608473): Reproduced locally as the pytest collection collision between tests/control_plane/test_workbench_cli.py and tests/test_workbench_cli.py. Resolved cleanly via syncing main (#10265 rename to tests/control_plane/test_workbench_cli_transport.py, preserving PR feat(runtime,desktop): unify Node 24.21.0 single baseline and bundle Desktop Node 24 sidecar #10244's probe_node assertions) and aligning tests/test_workbench_cli.py:86 (#10273) to probe_node.
  • Conflict & integration resolution (#10254, #10241, #10251, #10264): Preserved both #10254's Desktop Workbench default surface/CSP and #10244's externalBin/Entitlements.plist/sidecar resolution; unified examples/github-actions-runtime-smoke.py on the single 24.21.0 floor; updated scripts/desktop_app_install.py thin local macOS build TAURI_CONFIG to also clear "externalBin": [] and exclude gitignored src-tauri/binaries/ from source_fingerprint().

Adversarial Invariant Hardening & Property / State-Matrix Tests

  1. Cross-Language Node Version Parity (node_probe.py, node_version.ts, services.rs):
    • Eliminated live Python/TS/Rust drifts (empty prerelease/build tags, garbage characters/spaces, empty dot segments, non-ASCII Unicode digits, Rust +24 integer parse, and Unicode BOM \ufeff / NEL \x85 / NBSP \u00a0 whitespace mismatches) by unifying on strict ASCII SemVer 2.0.0 parsing with ASCII-only [' ', '\t', '\r', '\n'] trimming.
    • Subtracted duplicate regex/banner parsing in node_probe.py (_parse_node_version) and services.rs (node_environment_in_path reusing probe_node_executable_banner + parse_node_version_parts).
    • Added a 158-case Python ↔ TS boundary/malformed parity matrix (tests/control_plane/test_effect_runtime_node_probe.py, tests/control_plane_ts/scheduler_heartbeat_followup_cli.test.ts) and Rust SemVer matrix (services_tests.rs).
  2. Sidecar Staging Security (scripts/desktop_node_sidecar.py, tests/desktop/test_node_sidecar.py):
    • Replaced lstrip("./") with strict _canonical_archive_member_path (removeprefix("./").removesuffix("/")) validating every tar/zip entry against .. traversal, absolute paths, backslashes, NUL bytes, and drive letters.
    • Added duplicate-member rejection in tar and zip, strict regular-file enforcement (rejecting symlinks, hardlinks, directories, FIFOs, devices, sockets), clean TarError/BadZipFile wrapping, _HttpsOnlyRedirectHandler (blocks https:// -> http:// downgrade), FD-leak-free partial-download cleanup, symlink rejection in cache and _manifest_matches_staged, strict lowercase-hex binary_sha256 validation, and NODE_OPTIONS scrubbing in verify_staged_binary_version.
    • Added full archive-security, corrupt-manifest, symlink, partial-download, HTTPS-redirect, cross-target, and NODE_OPTIONS property tests in tests/desktop/test_node_sidecar.py.
  3. Desktop PATH & Sidecar Precedence (services.rs, services_tests.rs):
    • Fixed promote_qualified_node_directory so stable releases (24.22.0) beat same-version prereleases (24.22.0-rc.1), and scrubbed NODE_OPTIONS in probe_node_executable_banner.
    • Added an exhaustive 75-cell (5 × 3 × 5) Cartesian state-matrix test (bundled_sidecar_host_path_and_version_manager_cartesian_matrix) covering bundled sidecar (missing | non_exec | corrupt | below_floor | valid_24_23) × host PATH (none | stale_22 | valid_24_22) × version managers (Volta | fnm | mise | asdf | nvm) asserting PATH[0] bundled precedence, non-Node CLI (codex, claude) discoverability, fallback qualification, zero duplicates, and idempotence.

Local Verification (ff03c5e2f, Node v24.23.0)

  • npm run typecheck:control-plane: PASS
  • Control-plane TS suites (dashboard_node_runtime, scheduler_heartbeat_followup_cli, sqlite_authority_runtime_matrix, workbench, oar_session_hub): 74/74 PASS
  • tests/desktop/test_*.py: 57/57 PASS
  • stage2c_e2e suites + test_workbench_cli_transport.py/test_workbench_cli.py collection: 20/20 collected, 56/56 PASS
  • Core touched Python suites (node_probe, readiness, workbench_cli, desktop_app_install, oar_session_client, oar_phase3_integration, effect_runtime_equivalence, contributing_guide, cli_entrypoint, etc.): PASS
  • CI ruff (external-request-lint.toml, external-transport-lint.toml, touched Python files), scripts/ci/lint-external-transports.mjs, python -m loopx.cli check, examples/github-actions-runtime-smoke.py: PASS

@mergify mergify Bot removed the needs-rebase Mergify: the pull request has merge conflicts with its base branch label Dec 6, 2026
Signed-off-by: Codex <codex@openai.com>
Signed-off-by: song <liusongstep@gmail.com>

@songoow songoow left a comment

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

@mergify

mergify Bot commented Dec 6, 2026

Copy link
Copy Markdown

This pull request has merge conflicts with main and cannot be merged
until they are resolved. Please rebase or merge the base branch, @songoow.

Choose the remote for the base repository, not an out-of-date fork.
For a fork clone, first inspect git remote -v; upstream must point
to https://github.com/loopx-project/loopx.git. If it is absent, add it
with git remote add upstream https://github.com/loopx-project/loopx.git.
Then run:

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 HEAD

For a same-repository clone whose origin points to
https://github.com/loopx-project/loopx.git, use origin instead of
upstream for fetch/rebase. If you prefer merging the base, use
git merge <base-remote>/main and push normally.

Keep the DCO Signed-off-by trailer on every commit when you rebase.
https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/working-with-forks/syncing-a-fork

@mergify mergify Bot added the needs-rebase Mergify: the pull request has merge conflicts with its base branch label Dec 6, 2026
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 branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

needs-rebase Mergify: the pull request has merge conflicts with its base branch

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants