openclaw/src/infra
Mariano 5dd304d1c6
fix(gateway): clear pairing state on device token mismatch (#22071)
Merged via /review-pr -> /prepare-pr -> /merge-pr.

Prepared head SHA: ad38d1a529
Co-authored-by: mbelinky <132747814+mbelinky@users.noreply.github.com>
Co-authored-by: mbelinky <132747814+mbelinky@users.noreply.github.com>
Reviewed-by: @mbelinky
2026-02-20 18:21:13 +00:00
..
format-time test: table-drive format-time timestamp assertions 2026-02-18 23:30:31 +00:00
net Net: expand cross-origin sensitive header regression test 2026-02-19 11:42:25 -08:00
outbound fix(signal): preserve case for Base64 group IDs in target normalization (openclaw#10623) thanks @heyhudson 2026-02-19 22:41:55 -06:00
tls perf(test): fold tls fingerprint normalization into ssrf suite 2026-02-16 02:44:59 +00:00
abort-pattern.test.ts perf(test): fake abort timer and dedupe slack thread cases 2026-02-18 16:14:07 +00:00
agent-events.test.ts
agent-events.ts
archive-path.test.ts refactor(archive): share archive path safety helpers 2026-02-18 16:48:35 +00:00
archive-path.ts refactor(archive): share archive path safety helpers 2026-02-18 16:48:35 +00:00
archive.test.ts test: dedupe extracted-size budget assertions in archive tests 2026-02-19 13:51:53 +00:00
archive.ts refactor(archive): share archive path safety helpers 2026-02-18 16:48:35 +00:00
backoff.ts
binaries.ts
bonjour-ciao.ts
bonjour-discovery.test.ts
bonjour-discovery.ts refactor(infra): share isTailnetIPv4 helper 2026-02-15 21:47:51 +00:00
bonjour-errors.ts
bonjour.test.ts perf(test): trim bonjour watchdog post-stop timer advance 2026-02-18 22:26:27 +00:00
bonjour.ts
brew.test.ts
brew.ts
canvas-host-url.ts fix(canvas): port remaining iOS branch stability fixes (#18228) 2026-02-16 16:42:28 +00:00
channel-activity.ts
channel-summary.ts style: align formatting with oxfmt 0.33 2026-02-18 01:34:35 +00:00
channels-status-issues.ts style: align formatting with oxfmt 0.33 2026-02-18 01:34:35 +00:00
clipboard.ts
control-ui-assets.test.ts test: dedupe and optimize test suites 2026-02-19 15:19:38 +00:00
control-ui-assets.ts feat(plugins): expose llm input/output hook payloads (openclaw#16724) thanks @SecondThread 2026-02-15 16:01:00 -06:00
dedupe.ts refactor(core): dedupe shared config and runtime helpers 2026-02-16 14:59:30 +00:00
detect-package-manager.ts refactor(update): dedupe package manager detection 2026-02-15 04:34:39 +00:00
device-auth-store.ts refactor(device-auth): share store types + normalization 2026-02-15 04:22:44 +00:00
device-identity.state-dir.test.ts perf(test): reduce module reload overhead in key suites 2026-02-13 15:45:19 +00:00
device-identity.ts perf(test): reduce module reload overhead in key suites 2026-02-13 15:45:19 +00:00
device-pairing.test.ts fix(gateway): clear pairing state on device token mismatch (#22071) 2026-02-20 18:21:13 +00:00
device-pairing.ts fix(gateway): clear pairing state on device token mismatch (#22071) 2026-02-20 18:21:13 +00:00
diagnostic-events.ts fix(otel): complete diagnostics-otel OpenTelemetry v2 API migration (#12897) 2026-02-19 02:36:47 -08:00
diagnostic-flags.ts
dotenv.test.ts refactor(core): dedupe shared config and runtime helpers 2026-02-16 14:59:30 +00:00
dotenv.ts style: align formatting with oxfmt 0.33 2026-02-18 01:34:35 +00:00
env-file.ts
env.test.ts test: dedupe zai env test setup and cover blank legacy key 2026-02-19 13:48:21 +00:00
env.ts
errors.ts fix(security): redact Telegram bot tokens in errors 2026-02-16 03:30:53 +01:00
exec-approval-forwarder.test.ts chore: Fix types in tests 33/N. 2026-02-17 15:50:07 +09:00
exec-approval-forwarder.ts style: align formatting with oxfmt 0.33 2026-02-18 01:34:35 +00:00
exec-approvals-allowlist.ts refactor(security): unify safe-bin argv parsing and harden regressions 2026-02-19 16:04:58 +01:00
exec-approvals-analysis.ts refactor(security): unify safe-bin argv parsing and harden regressions 2026-02-19 16:04:58 +01:00
exec-approvals.test.ts refactor(security): unify safe-bin argv parsing and harden regressions 2026-02-19 16:04:58 +01:00
exec-approvals.ts refactor(infra): reuse shared home prefix expansion 2026-02-18 17:48:02 +00:00
exec-host.ts refactor(infra): share jsonl socket requester 2026-02-15 13:56:50 +00:00
exec-safe-bin-policy.ts refactor(security): unify safe-bin argv parsing and harden regressions 2026-02-19 16:04:58 +01:00
exec-safe-bin-trust.test.ts refactor(exec): split host flows and harden safe-bin trust 2026-02-19 14:22:01 +01:00
exec-safe-bin-trust.ts refactor(exec): split host flows and harden safe-bin trust 2026-02-19 14:22:01 +01:00
exec-safety.ts
fetch.test.ts test: dedupe fetch cleanup-throw signal harness 2026-02-19 13:50:07 +00:00
fetch.ts refactor(infra): make fetch wrapping idempotent 2026-02-16 08:24:55 -05:00
file-lock.ts refactor: share file lock via plugin-sdk 2026-02-15 00:26:46 +00:00
fixed-window-rate-limit.test.ts refactor(acp): split session tests and share rate limiter 2026-02-19 14:55:06 +01:00
fixed-window-rate-limit.ts refactor(acp): split session tests and share rate limiter 2026-02-19 14:55:06 +01:00
fs-safe.test.ts refactor(media): unify safe local file reads 2026-02-19 10:21:20 +01:00
fs-safe.ts style: format fs-safe and web media 2026-02-19 09:25:12 +00:00
gateway-lock.test.ts refactor(core): dedupe shared config and runtime helpers 2026-02-16 14:59:30 +00:00
gateway-lock.ts refactor(shared): reuse isPidAlive 2026-02-15 19:06:54 +00:00
gemini-auth.ts fix: support OAuth for Gemini media understanding 2026-02-16 23:53:21 +01:00
git-commit.ts Infra: unify git root discovery 2026-02-18 00:45:43 -05:00
git-root.test.ts Infra: unify git root discovery 2026-02-18 00:45:43 -05:00
git-root.ts Infra: unify git root discovery 2026-02-18 00:45:43 -05:00
heartbeat-active-hours.test.ts fix(heartbeat): return false for zero-width active-hours window (#21408) 2026-02-19 20:03:57 -05:00
heartbeat-active-hours.ts fix(heartbeat): return false for zero-width active-hours window (#21408) 2026-02-19 20:03:57 -05:00
heartbeat-events-filter.ts refactor(infra): split heartbeat event filters 2026-02-13 19:08:37 +00:00
heartbeat-events.ts
heartbeat-reason.test.ts fix: skip heartbeat when HEARTBEAT.md does not exist (#20461) 2026-02-19 01:09:33 -05:00
heartbeat-reason.ts fix: skip heartbeat when HEARTBEAT.md does not exist (#20461) 2026-02-19 01:09:33 -05:00
heartbeat-runner.ghost-reminder.test.ts test: dedupe heartbeat and action-runner fixtures 2026-02-19 14:27:36 +00:00
heartbeat-runner.model-override.test.ts fix: skip heartbeat when HEARTBEAT.md does not exist (#20461) 2026-02-19 01:09:33 -05:00
heartbeat-runner.respects-ackmaxchars-heartbeat-acks.test.ts test: dedupe heartbeat and action-runner fixtures 2026-02-19 14:27:36 +00:00
heartbeat-runner.returns-default-unset.test.ts fix(heartbeat): run when HEARTBEAT.md is missing 2026-02-19 19:32:18 -05:00
heartbeat-runner.scheduler.test.ts chore: Fix types in tests 33/N. 2026-02-17 15:50:07 +09:00
heartbeat-runner.sender-prefers-delivery-target.test.ts test: dedupe heartbeat and action-runner fixtures 2026-02-19 14:27:36 +00:00
heartbeat-runner.test-harness.ts style: align formatting with oxfmt 0.33 2026-02-18 01:34:35 +00:00
heartbeat-runner.test-utils.ts fix: skip heartbeat when HEARTBEAT.md does not exist (#20461) 2026-02-19 01:09:33 -05:00
heartbeat-runner.transcript-prune.test.ts refactor(test): dedupe channel and monitor action suites 2026-02-18 04:49:22 +00:00
heartbeat-runner.ts fix(heartbeat): run when HEARTBEAT.md is missing 2026-02-19 19:32:18 -05:00
heartbeat-visibility.test.ts test: dedupe heartbeat and action-runner fixtures 2026-02-19 14:27:36 +00:00
heartbeat-visibility.ts
heartbeat-wake.test.ts chore: Fix types in tests 33/N. 2026-02-17 15:50:07 +09:00
heartbeat-wake.ts fix: skip heartbeat when HEARTBEAT.md does not exist (#20461) 2026-02-19 01:09:33 -05:00
home-dir.test.ts
home-dir.ts
http-body.test.ts perf(test): replace timeout ticks with microtask waits 2026-02-18 16:23:55 +00:00
http-body.ts fix(infra): avoid req.destroy(err) in request body limiters 2026-02-15 03:19:27 +01:00
infra-parsing.test.ts
infra-runtime.test.ts fix: harden gateway control-plane restart protections 2026-02-19 14:30:15 +01:00
infra-store.test.ts
install-package-dir.ts refactor(install): share package dir install 2026-02-14 15:39:46 +00:00
install-safe-path.test.ts test(skills): split installer security coverage 2026-02-16 03:47:28 +01:00
install-safe-path.ts fix(security): restrict skill download target paths 2026-02-16 03:47:28 +01:00
install-source-utils.test.ts fix(security): harden npm plugin and hook install integrity flow 2026-02-19 15:11:25 +01:00
install-source-utils.ts fix(security): harden npm plugin and hook install integrity flow 2026-02-19 15:11:25 +01:00
is-main.ts
json-file.ts
json-files.ts refactor(infra): extract json file + async lock helpers 2026-02-15 21:46:08 +00:00
jsonl-socket.ts refactor(infra): share jsonl socket requester 2026-02-15 13:56:50 +00:00
machine-name.ts
map-size.ts refactor(core): dedupe shared config and runtime helpers 2026-02-16 14:59:30 +00:00
node-pairing.test.ts refactor: dedupe pending pairing request flow and add reuse tests 2026-02-19 13:54:35 +00:00
node-pairing.ts refactor: dedupe pending pairing request flow and add reuse tests 2026-02-19 13:54:35 +00:00
node-shell.ts
npm-integrity.test.ts refactor: share npm integrity drift handling 2026-02-19 15:08:14 +00:00
npm-integrity.ts refactor: share npm integrity drift handling 2026-02-19 15:08:14 +00:00
npm-pack-install.test.ts test: cover npm pack install drift branches 2026-02-19 15:08:54 +00:00
npm-pack-install.ts refactor: eliminate jscpd clones and boost tests 2026-02-19 15:08:54 +00:00
npm-registry-spec.ts fix(security): harden plugin/hook npm installs 2026-02-14 14:07:14 +01:00
openclaw-root.test.ts test: dedupe and optimize test suites 2026-02-19 15:19:38 +00:00
openclaw-root.ts refactor: dedupe openclaw root traversal and add coverage 2026-02-19 13:43:31 +00:00
os-summary.ts
package-json.ts refactor(update): share package.json readers 2026-02-16 00:41:28 +00:00
pairing-files.ts refactor: dedupe pending pairing request flow and add reuse tests 2026-02-19 13:54:35 +00:00
pairing-token.ts fix: harden device pairing token generation and verification (#16535) 2026-02-14 16:23:33 -05:00
path-env.test.ts perf(test): speed up suites and reduce fs churn 2026-02-15 19:29:27 +00:00
path-env.ts fix: harden exec PATH handling 2026-02-14 19:53:04 +01:00
path-prepend.ts refactor: dedupe PATH prepend helpers 2026-02-15 03:53:53 +00:00
path-safety.test.ts test(skills): split installer security coverage 2026-02-16 03:47:28 +01:00
path-safety.ts fix(security): restrict skill download target paths 2026-02-16 03:47:28 +01:00
plain-object.test.ts refactor: share plain object guard across config and utils 2026-02-19 14:27:36 +00:00
plain-object.ts refactor: share plain object guard across config and utils 2026-02-19 14:27:36 +00:00
ports-format.ts style: align formatting with oxfmt 0.33 2026-02-18 01:34:35 +00:00
ports-inspect.ts style: align formatting with oxfmt 0.33 2026-02-18 01:34:35 +00:00
ports-lsof.ts
ports-types.ts
ports.test.ts chore: Fix types in tests 33/N. 2026-02-17 15:50:07 +09:00
ports.ts style: align formatting with oxfmt 0.33 2026-02-18 01:34:35 +00:00
process-respawn.test.ts refactor(test): reuse shared env snapshots 2026-02-15 23:15:07 +00:00
process-respawn.ts Agents: add nested subagent orchestration controls and reduce subagent token waste (#14447) 2026-02-14 22:03:45 -08:00
provider-usage.auth.normalizes-keys.test.ts refactor: dedupe provider usage auth/fetch logic and expand coverage 2026-02-19 13:28:18 +00:00
provider-usage.auth.ts refactor: dedupe provider usage auth/fetch logic and expand coverage 2026-02-19 13:28:18 +00:00
provider-usage.fetch.antigravity.test.ts refactor: dedupe provider usage fetch logic and tests 2026-02-19 12:51:30 +00:00
provider-usage.fetch.antigravity.ts refactor: dedupe provider usage auth/fetch logic and expand coverage 2026-02-19 13:28:18 +00:00
provider-usage.fetch.claude.test.ts refactor: dedupe provider usage fetch logic and tests 2026-02-19 12:51:30 +00:00
provider-usage.fetch.claude.ts refactor: dedupe provider usage fetch logic and tests 2026-02-19 12:51:30 +00:00
provider-usage.fetch.codex.test.ts refactor: dedupe provider usage fetch logic and tests 2026-02-19 12:51:30 +00:00
provider-usage.fetch.codex.ts refactor: dedupe provider usage fetch logic and tests 2026-02-19 12:51:30 +00:00
provider-usage.fetch.copilot.test.ts refactor: dedupe provider usage fetch logic and tests 2026-02-19 12:51:30 +00:00
provider-usage.fetch.copilot.ts refactor: dedupe provider usage fetch logic and tests 2026-02-19 12:51:30 +00:00
provider-usage.fetch.gemini.test.ts refactor: dedupe provider usage fetch logic and tests 2026-02-19 12:51:30 +00:00
provider-usage.fetch.gemini.ts refactor: dedupe provider usage fetch logic and tests 2026-02-19 12:51:30 +00:00
provider-usage.fetch.minimax.test.ts refactor: dedupe provider usage fetch logic and tests 2026-02-19 12:51:30 +00:00
provider-usage.fetch.minimax.ts refactor: dedupe provider usage auth/fetch logic and expand coverage 2026-02-19 13:28:18 +00:00
provider-usage.fetch.shared.test.ts refactor: dedupe provider usage fetch logic and tests 2026-02-19 12:51:30 +00:00
provider-usage.fetch.shared.ts refactor: dedupe provider usage auth/fetch logic and expand coverage 2026-02-19 13:28:18 +00:00
provider-usage.fetch.ts
provider-usage.fetch.zai.test.ts refactor: dedupe provider usage fetch logic and tests 2026-02-19 12:51:30 +00:00
provider-usage.fetch.zai.ts refactor: dedupe provider usage fetch logic and tests 2026-02-19 12:51:30 +00:00
provider-usage.format.test.ts test: dedupe provider usage tests and expand coverage 2026-02-19 13:08:01 +00:00
provider-usage.format.ts refactor: dedupe provider usage auth/fetch logic and expand coverage 2026-02-19 13:28:18 +00:00
provider-usage.load.ts style: align formatting with oxfmt 0.33 2026-02-18 01:34:35 +00:00
provider-usage.shared.test.ts test: dedupe provider usage tests and expand coverage 2026-02-19 13:08:01 +00:00
provider-usage.shared.ts style: align formatting with oxfmt 0.33 2026-02-18 01:34:35 +00:00
provider-usage.test.ts test: dedupe provider usage tests and expand coverage 2026-02-19 13:08:01 +00:00
provider-usage.ts
provider-usage.types.ts
push-apns.test.ts refactor: dedupe APNs push send flow and add wake default test 2026-02-19 13:45:34 +00:00
push-apns.ts refactor: dedupe APNs push send flow and add wake default test 2026-02-19 13:45:34 +00:00
restart-sentinel.test.ts Agents: add nested subagent orchestration controls and reduce subagent token waste (#14447) 2026-02-14 22:03:45 -08:00
restart-sentinel.ts Agents: add nested subagent orchestration controls and reduce subagent token waste (#14447) 2026-02-14 22:03:45 -08:00
restart.ts fix: harden gateway control-plane restart protections 2026-02-19 14:30:15 +01:00
retry-policy.ts
retry.test.ts
retry.ts
run-node.test.ts test: fix flaky run-node spawn side-effects 2026-02-19 08:24:55 +00:00
runtime-guard.test.ts
runtime-guard.ts
runtime-status.ts refactor(core): dedupe shared config and runtime helpers 2026-02-16 14:59:30 +00:00
scp-host.test.ts fix(security): harden imessage remote scp/ssh handling 2026-02-19 11:08:23 +01:00
scp-host.ts fix(security): harden imessage remote scp/ssh handling 2026-02-19 11:08:23 +01:00
scripts-modules.d.ts chore: Fix types in tests 33/N. 2026-02-17 15:50:07 +09:00
session-cost-usage.test.ts chore: Fix types in tests 25/N. 2026-02-17 14:31:02 +09:00
session-cost-usage.ts style: align formatting with oxfmt 0.33 2026-02-18 01:34:35 +00:00
session-cost-usage.types.ts refactor(infra): extract session cost usage types 2026-02-13 19:08:37 +00:00
session-maintenance-warning.ts style: align formatting with oxfmt 0.33 2026-02-18 01:34:35 +00:00
shell-env.test.ts test(shell-env): dedupe repeated login-shell path lookups 2026-02-19 07:50:10 +00:00
shell-env.ts test: make shell env path cache tests platform deterministic 2026-02-19 07:02:33 +00:00
skills-remote.test.ts Skills: clean up remote node cache on disconnect 2026-02-14 18:02:14 -08:00
skills-remote.ts style: align formatting with oxfmt 0.33 2026-02-18 01:34:35 +00:00
ssh-config.test.ts test: dedupe and optimize test suites 2026-02-19 15:19:38 +00:00
ssh-config.ts
ssh-tunnel.ts fix(security): harden imessage remote scp/ssh handling 2026-02-19 11:08:23 +01:00
state-migrations.fs.ts style: align formatting with oxfmt 0.33 2026-02-18 01:34:35 +00:00
state-migrations.state-dir.test.ts fix: support moltbot legacy state dir 2026-02-14 17:14:21 +00:00
state-migrations.ts style: align formatting with oxfmt 0.33 2026-02-18 01:34:35 +00:00
system-events.test.ts style: align formatting with oxfmt 0.33 2026-02-18 01:34:35 +00:00
system-events.ts fix (heartbeat/cron): preserve cron prompts for tagged interval events 2026-02-14 19:46:31 -08:00
system-presence.test.ts refactor: centralize presence routing and version precedence coverage (#19609) 2026-02-18 00:02:51 -05:00
system-presence.ts refactor: centralize presence routing and version precedence coverage (#19609) 2026-02-18 00:02:51 -05:00
system-presence.version.test.ts refactor: centralize presence routing and version precedence coverage (#19609) 2026-02-18 00:02:51 -05:00
system-run-command.test.ts fix(node-host): enforce system.run rawCommand/argv consistency 2026-02-14 18:53:23 +01:00
system-run-command.ts fix(node-host): enforce system.run rawCommand/argv consistency 2026-02-14 18:53:23 +01:00
tailnet.ts refactor(infra): share isTailnetIPv4 helper 2026-02-15 21:47:51 +00:00
tailscale.test.ts perf(test): optimize heavy suites and stabilize lock timing 2026-02-13 13:29:07 +00:00
tailscale.ts perf(test): optimize heavy suites and stabilize lock timing 2026-02-13 13:29:07 +00:00
tmp-openclaw-dir.test.ts chore: Fix types in tests 33/N. 2026-02-17 15:50:07 +09:00
tmp-openclaw-dir.ts fix(security): harden archive extraction (#16203) 2026-02-14 14:42:08 +01:00
transport-ready.test.ts test: dedupe and optimize test suites 2026-02-19 15:19:38 +00:00
transport-ready.ts style: align formatting with oxfmt 0.33 2026-02-18 01:34:35 +00:00
unhandled-rejections.fatal-detection.test.ts test: collapse duplicate unhandled rejection fatal cases 2026-02-19 09:40:30 +00:00
unhandled-rejections.test.ts test: dedupe non-matching unhandled rejection cases 2026-02-18 22:42:39 +00:00
unhandled-rejections.ts
update-channels.ts refactor(status): share update channel display + one-liner 2026-02-17 00:32:34 +00:00
update-check.test.ts
update-check.ts refactor(status): share git install label formatting 2026-02-15 04:49:56 +00:00
update-global.ts fix(update): silence npm deprecation/funding noise 2026-02-19 18:19:16 +01:00
update-runner.test.ts fix(update): silence npm deprecation/funding noise 2026-02-19 18:19:16 +01:00
update-runner.ts fix(update): prevent gateway crash loop after failed self-update 2026-02-16 23:54:49 +01:00
update-startup.test.ts test: dedupe and optimize test suites 2026-02-19 15:19:38 +00:00
update-startup.ts refactor: unify restart gating and update availability sync 2026-02-19 10:00:41 +01:00
voicewake.ts refactor(infra): extract json file + async lock helpers 2026-02-15 21:46:08 +00:00
warning-filter.test.ts
warning-filter.ts
watch-node.test.ts fix(gateway): remove watch-mode build/start race (#18782) 2026-02-17 11:24:08 +09:00
widearea-dns.test.ts
widearea-dns.ts
ws.ts style: align formatting with oxfmt 0.33 2026-02-18 01:34:35 +00:00
wsl.ts