fix(cli): guard device fallback state#75544
Conversation
|
Codex review: passed. Summary Reproducibility: yes. Source inspection and the added mocked tests show the failure path: the Gateway reports Real behavior proof Next step before merge Security Review detailsBest possible solution: Keep the narrow request-id guard and regression coverage, then resolve the exact-head CI/human-review state before merge. Do we have a high-confidence way to reproduce the issue? Yes. Source inspection and the added mocked tests show the failure path: the Gateway reports Is this the best way to solve the issue? Yes. The current branch validates the Gateway request id before local approval mutation, preserves loopback fallback when the request matches, and adds focused regression coverage; the remaining blocker is CI/human-review state rather than a different code design. What I checked:
Likely related people:
Remaining risk / open question:
Codex review notes: model gpt-5.5, reasoning high; reviewed against 58c706451e1d. |
|
/clawsweeper automerge |
|
🦞🦞 I added Draft PRs stay fix-only until GitHub marks them ready for review. A maintainer can pause this with Automerge progress:
|
|
🦞🦞 Source: I added |
ff483e6 to
ce9efd1
Compare
ce9efd1 to
f45c585
Compare
Summary
openclaw deviceslocal fallback when the active Gateway names a pending request that is absent from the local pairing storeTests
FORCE_COLOR=0 pnpm test:serial src/cli/devices-cli.test.tsgit diff --check origin/main..HEADFORCE_COLOR=0 pnpm exec oxfmt --check --threads=1 src/cli/devices-cli.ts src/cli/devices-cli.test.ts CHANGELOG.mdtbx_01kqhaz9ewzybzwxqa2tsg57np:OPENCLAW_TESTBOX=1 pnpm check:changedpassed (GitHub run25208306627)