fix(cli): make native hook relay resilient to stale bridges#88718
fix(cli): make native hook relay resilient to stale bridges#88718NickMartyniuk wants to merge 2 commits into
Conversation
|
Codex review: needs real behavior proof before merge. Reviewed June 27, 2026, 5:00 PM ET / 21:00 UTC. Summary PR surface: Source -12, Tests -33. Total -45 across 3 files. Reproducibility: yes. at source level: current code and tests show stale direct-bridge errors stop before gateway fallback, and Codex source shows empty successful PreToolUse output does not block. I did not run the reported WSL2/OpenClaw/Codex gateway restart scenario in this read-only review. Review metrics: 1 noteworthy metric.
Stored data model Root-cause cluster Members:
Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything. Merge readiness Overall follows the weaker of proof and patch quality, so missing proof can cap an otherwise strong patch. Rank-up moves:
Proof guidance:
Risk before merge
Maintainer options:
Next step before merge
Security Review findings
Review detailsBest possible solution: Keep stale direct-bridge gateway fallback only if unknown unavailable PreToolUse remains fail-closed and no-op behavior stays limited to the explicit no-policy marker, or choose #94870 after real proof and security acceptance. Do we have a high-confidence way to reproduce the issue? Yes at source level: current code and tests show stale direct-bridge errors stop before gateway fallback, and Codex source shows empty successful PreToolUse output does not block. I did not run the reported WSL2/OpenClaw/Codex gateway restart scenario in this read-only review. Is this the best way to solve the issue? No. Falling through from stale direct bridge to gateway is plausible, but making all unavailable PreToolUse events no-op is not the best fix because current main intentionally keeps unknown policy state fail-closed. Full review comments:
Overall correctness: patch is incorrect AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 1b8b8500cee0. Label changesLabel justifications:
Evidence reviewedPR surface: Source -12, Tests -33. Total -45 across 3 files. View PR surface stats
Security concerns:
What I checked:
Likely related people:
What the crustacean ranks mean
Shiny media proof means a screenshot, video, or linked artifact directly shows the changed behavior. Runtime, network, CSP, and security claims still need visible diagnostics. How this review workflow works
|
Summary
Verification