Repository navigation
chore(deps): update fs-safe to 0.24.2 - #166457
Conversation
|
🦞👀 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: blocked before merge. Reviewed October 7, 2026, 1:59 AM ET / 05:59 UTC (Revision 4). ClawSweeper reviewWhat this changesUpdates OpenClaw and its bundled plugins to fs-safe 0.24.2 to repair native cloned-file access and unsupported Linux exclusive publication. Merge readiness⛔ Blocked before merge - 1 item remains The dependency update remains useful: current main still pins fs-safe 0.24.1. No actionable patch defect was found, and the previous migration-proof blocker is unsupported because no stored-data contract changes. The documented inherited CI failure belongs to the native landing workflow. Priority: P2 Review scores
Verification
How this fits togetherOpenClaw uses fs-safe to copy plugin source files and publish recovery captures without overwriting existing files. Its native filesystem helpers supply descriptors and identity checks that OpenClaw uses to hash and verify those copies. flowchart TD
A[Plugin source files] --> B[Safe native copy]
B --> C[Readable cloned descriptor]
C --> D[Hash and verify plugin capture]
E[Recovery capture files] --> F[Exclusive publication]
F --> G[Published recovery capture]
Before merge
Agent review detailsSecurityNone. PR surfaceConfig 0, Other 0. Total 0 across 15 files. View PR surface stats
Review metricsNone. Stored data modelPersistent data-model change detected: Technical reviewBest possible solution: Consume the published filesystem repairs through the existing fs-safe owner while retaining current capture formats and strict identity checks. Do we have a high-confidence way to reproduce the issue? Yes: OpenClaw immediately reads the native clone descriptor, and upstream documents published-0.24.1 Linux/Btrfs failures through that same consumer. This read-only review did not execute target code. Is this the best way to solve the issue? Yes: updating the authoritative filesystem dependency repairs the descriptor contract without duplicating native logic in OpenClaw; the complete patch introduces no migration requirement. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against b0eecb9ea134. LabelsLabel changes: No label changes. Label justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
History |
|
The generated data-model checklist does not apply to this dependency-only patch. The changes under The existing 83 consumer tests passed, including SDK filesystem compatibility and plugin source capture/admission with native APFS cloning. This is sufficient consumer coverage for the metadata update; migration proof would exercise an unchanged contract. |
|
Merged via explicitly authorized admin squash with attributed pre-existing CI failures.
|
214 upstream commits. On the Feishu side, openclaw#166610 moves the streaming preview queue into a new streaming-update.ts helper, openclaw#166427 replaces a local JSON parse helper in dedupe-key.ts with the SDK's safeParseJson and drops an unused import in monitor.transport.ts, and openclaw#166457 updates fs-safe to 0.24.2 in extensions/feishu/package.json. extensions/feishu/src/reply-dispatcher.ts conflicted only on the imports: openclaw#166610 added queueFeishuStreamingUpdate next to this branch's createFeishuTableRouting import. The merge keeps both. The rest of openclaw#166610 merged on its own, and the streaming path still hands the table- routed text to the new helper. No upstream change touches a config schema, so the generated files were regenerated from this merge and came out identical to the previous branch head. build:docker ran in a separate detached checkout of this commit. Counts are core 2494, channel 3876 and plugin 4524. The core and plugin hashes match upstream/main. The generated metadata differs from upstream/main only by the two Feishu markdown.tables entries. The three generated-file checks pass there. Feishu: 102 files and 1523 tests in the extension project, 17 files and 218 tests in the database-workers project, all passing. The forwarder test and the routing guards pass, 503 tests. tsgo:core, tsgo:extensions, tsgo:extensions:test, tsgo:test:root, the line-cap, max-lines, assertion-safety, database-worker, test-timeout-race and test-mock- exports ratchets against upstream/main, oxlint and oxfmt on the 43 changed code files all pass.
Related: #166246
What Problem This Solves
Plugin source capture can fail on Linux when it hashes a native cloned file through a write-only descriptor.
User Impact
Plugin source capture receives readable and writable native clone descriptors. This also consumes the upstream exclusive-publication fallback for Linux filesystems that reject
RENAME_NOREPLACE, complementing the existing Doctor capture repair. No configuration or migration is required.Why This Change Was Made
Update the root package and all 12 bundled-plugin consumers to
@openclaw/fs-safe0.24.2, regenerate the pnpm lockfile, and rotate the eight version-specific install cooldown exceptions. The filesystem fixes remain owned by fs-safe: publication fallback and native clone descriptors.Thanks @MertBasar0 for the Doctor reproduction.
Evidence
pnpm install --lockfile-onlyandpnpm install --frozen-lockfilepassed.git diff --checkpassed.Linux syscall fallback proof belongs to the upstream release; local consumer proof runs on macOS arm64, including native APFS cloning. Only dependency metadata changes: stored formats, database schemas, embedding metadata, and migration code are unchanged.
The exact-head CI run finished with one failing test shard and its downstream gate:
sessions-history-http.test.ts→returns 404 after initializing a missing configured session storeraisesAgent database execution admission is closed. The same case, error, and stack reproduce on the exact main baselinef45e4dac14547bdc78d90c95384ca65c2de3ef4ewith fs-safe 0.24.1 usingpnpm test src/gateway/sessions-history-http.test.ts --maxWorkers=1 -t "returns 404 after initializing a missing configured session store"(1 failed, 19 skipped, 175.75 seconds). The implicated test and admission-owner files are byte-identical in the tested merge. This qualifies for the native inherited-failure landing exception; CI is not being reported as green. All other jobs passed or skipped, with no cancellations.