fix(recovery): restore OpenClaw guard chain#5340
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Enterprise Run ID: 📒 Files selected for processing (2)
📝 WalkthroughWalkthroughThis PR fixes a crash loop on aarch64 systems after pod recreate by implementing automatic re-emission of OpenClaw guard preload chains in the recovery path. A new ChangesGuard Chain Restoration for Crash Loop Fix
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~25 minutes Possibly related issues
Possibly related PRs
Suggested labels
Suggested reviewers
Poem
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
Summary
Fixes #2701 with a narrow OpenClaw recovery change: when
/tmp/nemoclaw-proxy-env.shis missing after a pod/container recreate, the recovery script re-emits the guard preload files from the baked/usr/local/lib/nemoclaw/preloads/directory and regenerates/tmp/nemoclaw-proxy-env.shbefore launching the gateway.This preserves the failing-test-first guard from #5049 without adding new framework, registry, workflow, or migration infrastructure.
Related Issues
Fixes #2701
Refs #2478
Refs #5049
Refs #5098
Simplicity / #5098 alignment
src/lib/agent/runtime.test.ts.buildOpenClawRecoveryScript().Verification
npm run build:clish -nagainst generatedbuildOpenClawRecoveryScript(18789)outputnpx vitest run src/lib/agent/runtime.test.tsNote: pre-push full
Test (CLI)is still noisy locally with existing environment/timeouts (json5fixture path, local OpenShell/gateway state, shell supervisor signal assertions); targeted validation above passed.Summary by CodeRabbit
Bug Fixes
Tests