Repository navigation
fix(plugins): keep deferred jiti transforms in a durable user cache - #117355
Conversation
|
Codex review: needs real behavior proof before merge. Reviewed August 1, 2026, 11:03 AM ET / 15:03 UTC. ClawSweeper reviewWhat this changesMoves jiti’s plugin-loader transform cache from the temporary directory to a durable per-user cache and adds coverage for a deferred dynamic import after temporary-directory cleanup. Merge readiness⛔ Blocked until stronger real behavior proof is added - 3 items remain Keep this PR open for explicit maintainer handling. The focused cache-root change appears to repair the reported deferred-import failure, but the current head was force-pushed after the previous review and the posted terminal proof is not verifiably bound to the current diff. Priority: P1 Review scores
Verification
How this fits togetherThe plugin loader supplies jiti with alias and transform-cache options when OpenClaw loads plugin runtime modules. Those compiled artifacts are later used by deferred imports in the running gateway, so their cache location affects whether channel work can continue after temporary storage is cleaned. flowchart LR
A[Plugin runtime module] --> B[Plugin loader]
B --> C[Jiti options]
C --> D[Durable user cache]
D --> E[Deferred module import]
E --> F[Gateway message handling]
Decision needed
Why: The patch is narrowly scoped and cleanly mergeable, but the current proof transcript cannot be tied to the force-pushed head and the Before merge
Agent review detailsSecurityNone. PR surfaceSource +4, Tests +103. Total +107 across 3 files. View PR surface stats
Review metricsNone. Stored data modelPersistent data-model change detected: Root-cause clusterRelationship: Members:
Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything. Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Keep the durable per-user cache design and add a fresh, redacted exact-head run of the deferred-import regression before a maintainer decides whether to merge. Do we have a high-confidence way to reproduce the issue? Yes—current main constructs the plugin-loader cache beneath the temporary directory, and the PR’s focused regression test exercises a jiti parent-to-child deferred import after that directory is deleted. This read-only review did not execute the test locally. Is this the best way to solve the issue? Yes at the code-design level: placing compiler artifacts in the platform user-cache location preserves the existing jiti opt-outs and fixes the state at its owner boundary. Fresh proof must be tied to the current head before treating the proposed patch as merge-ready. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 7cc2e6d83003. LabelsLabel justifications:
EvidenceWhat I checked:
Likely related people:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (1 earlier review cycle)
|
6373896 to
531918e
Compare
|
Maintainer rank-up decision for exact reviewed head 531918e: no duplicate expensive runtime rerun is required. The rebase preserves all three independently approved owner file blobs and the identical full-index patch SHA256 f9034adaa33d7847edaa36c812b894e33e55e4d94a78eab5b71a34f3558f155d. The earlier real pinned-jiti parent process -> deleted TMPDIR -> deferred nested child import reproduced the original failure and passed with these exact repaired owner bytes; both owner suites and the scoped changed gate also passed on the actual Testbox run documented above. Current main changed no touched owner, direct loader caller, jiti dependency or lockfile; its package.json-only drift removes an unrelated canvas build script. The branch also inherits the merged PTY CI repair. Product-owner accepts the genuine existing subprocess proof for this byte-identical rebased fix. |
…penclaw#117355) Co-authored-by: Peter Steinberger <[email protected]>
Summary
Independently verified remote proof
Trusted Blacksmith Testbox
tbx_01kyydkhpsztxmwdwke6vvrvdj; reviewed patch SHA-256f9034adaa33d7847edaa36c812b894e33e55e4d94a78eab5b71a34f3558f155d.The original production owner fails the real pinned-jiti parent → deleted
TMPDIR→ deferred nested-child import regression; the repaired owner and both existing suites pass. Independent source/security and authenticated Codex reviews passed.Fixes #113550