fix(gateway): include device identity in probe clients#48617
fix(gateway): include device identity in probe clients#48617Oclw-bot wants to merge 1 commit intoopenclaw:mainfrom
Conversation
Greptile SummaryThis PR fixes a false-negative in Key observations:
Confidence Score: 5/5
Last reviewed commit: 83d0dac |
|
Thanks — closing this as superseded by upstream commit I independently reproduced the issue locally and this PR fixed it from the reporter side, but upstream already landed the canonical fix in the same area ( |
Summary
openclaw status/ gateway probe paths could reportunreachable (missing scope: operator.read)against a healthy local loopback gateway.src/gateway/probe.tsnow passesloadOrCreateDeviceIdentity()into probe clients, matching normal gateway call behavior.Change Type (select all)
Scope (select all touched areas)
Linked Issue/PR
User-visible / Behavior Changes
openclaw status/ gateway probe output no longer falsely reports a healthy loopback gateway as unreachable withmissing scope: operator.readwhen device pairing/scopes are otherwise valid.Security Impact (required)
No)No)No)No)No)Yes, explain risk + mitigation:Repro + Verification
Environment
gateway.mode=local,gateway.bind=loopback, token auth enabled, paired operator device presentSteps
openclaw status(or a code path that usesprobeGateway()).Expected
Actual
missing scope: operator.read, even though direct gateway calls were healthy.Evidence
Attach at least one:
Human Verification (required)
What you personally verified (not just CI), and how:
openclaw statusbehavior locally against a healthy loopback gateway.openclaw statusstill showedmissing scope: operator.read.openclaw statusswitched toreachable.deviceIdentity.corepack pnpm vitest run src/gateway/probe.test.tssuccessfully.operator.readscope.Review Conversations
Compatibility / Migration
Yes)No)No)Failure Recovery (if this breaks)
src/gateway/probe.ts,src/gateway/probe.test.tsRisks and Mitigations