Repository navigation
Conversation
Keep builder HOME, XDG directories and the pnpm store in disposable tmpfs outside staged workspace artifacts. Preserve offline policy and runtime environment configuration. Include a real-container regression for missing image HOME under a read-only root.
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
Codex Review SummaryThis 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. |
|
|
Merged via squash.
|
Keep builder HOME, XDG directories and the pnpm store in disposable tmpfs outside staged workspace artifacts. Preserve offline policy and runtime environment configuration. Include a real-container regression for missing image HOME under a read-only root.
* commit 'b4ebd3673fea4932296b92bbc07b7abc4bdc792d': fix(ci): allow serial SDK API reports to finish (#192196) fix(ci): run PostgreSQL checks when its shard planner changes (#191963) fix(ci): model native Linux updater asset entry improve(test): speed up config and device binding browser tests (#192404) improve(ui): show arrivals top right with a contextual session status (#192016) improve(ui): mark error toasts and split two-sentence copy (#192015) fix(sandbox): give dependency builders a writable home (#192390) fix(worktrees): keep archive manifest checks off the main thread (#192358) fix(cron): preserve admitted runs and pacing across unrelated MCP reloads (#192399) improve(ui): stack toasts in a center lane and an arrivals lane (#192014) fix: reclaim abandoned read-only database snapshots (#192368) improve(ui): rebuild the toast on one component with variants and a hover dismiss (#192013) docs: consolidate team server and team setup into one Multiplayer page fix(ci): reconcile remaining unallocated test lines feat: run admitted MCP tools on the worker node that hosts them (#191387)
What Problem This Solves
Dependency-template installation fails with
ENOENTwhen a custom sandbox image points HOME at a missing directory and the builder has a read-only root.User Impact
Dependency builders can initialize package-manager state without writing into staged workspace artifacts. Offline registry packages still require preprovisioned metadata/content; this change does not enable network access. Runtime tool containers retain their existing environment policy.
Why This Change Was Made
The credential-free builder deliberately replaces the session environment. Give that owner a private tmpfs with explicit HOME/XDG paths and pass pnpm's store directory explicitly, including for pnpm versions that otherwise choose a project-local store. The existing template identity incorporates the changed config. No new OpenClaw option, cache, or schema is introduced.
Evidence
prepareSandboxDependencyTemplateand production create-argument construction: non-root user, absent HOME, read-only root, no network, no configured tmpfs. Fails on base34007820fa2cwith pnpm ENOENT; passes on this change. pnpm 10.23 reports the missing/home/sandboxparent; the reported production error named/home/sandbox/.local. The production image binary was not inspected.OPENCLAW_TEST_SANDBOX_HOME_IMAGEafter buildingtest/fixtures/sandbox-home/Dockerfile.ERR_PNPM_NO_OFFLINE_META; package/network policy is deliberately left for a separate decision.dbecd558192e: scoped-clean at P0–P2, no actionable findings.pnpm check:changedcompleted: lint, format, and remaining guards passed; core/core-test typechecks and the production dead-export scan failed identically on exact parent34007820fa2c. The missingMcpCatalogToolimport was introduced by refactor(agents): separate MCP catalog metadata contracts #192302 (f32ee258e309) and is repaired on main bydbecd558192e. Four unused node-plugin-tool-snapshot exports were introduced by feat: let node-hosted MCP tools ask questions through the Gateway #191589 (e0ac3370bbe3) when their production callers moved into the same module. The initial CI SDK build hit that same MCP defect, so the branch now integrates main throughdbecd558192e; the affected typechecks and focused tests pass. The Knip defect remains an attributed main follow-up. Exact-head CI remains required before landing.Production grows by 7 lines to define the disposable storage contract. The 84 added test lines are allocated separately for the real read-only-container regression; the shared test budget is unchanged.