mirror of
https://github.com/openclaw/openclaw.git
synced 2026-06-01 15:48:59 +00:00
Improves gateway/device-auth/session discovery latency by caching unchanged device-auth reads, deduping session root realpaths, cleaning temp dirs in parallel, and bulk-loading APNs registrations for iOS exec approval delivery. The maintainer fixup replaces per-device APNs registration reads with a single canonical store snapshot, preserving empty-target skip behavior and requested target ordering while avoiding delayed read failures from the bounded queue path. Verification: - node scripts/run-vitest.mjs src/gateway/exec-approval-ios-push.test.ts src/infra/push-apns.store.test.ts src/infra/device-auth-store.test.ts src/config/sessions/targets.test.ts src/test-utils/tracked-temp-dirs.test.ts src/utils/run-with-concurrency.test.ts - env -u OPENCLAW_TESTBOX pnpm check:changed - env -u OPENCLAW_TESTBOX pnpm test:changed - pnpm exec oxfmt --check --threads=1 on touched files - autoreview clean: no accepted/actionable findings - before/after 500-device APNs discovery benchmark: p50 189.89 ms -> 2.03 ms - GitHub Actions CI 26588266247 green after rerun; Real behavior proof 26588276271 green Co-authored-by: Nachiket Torwekar <nachiket.torwekar@gmail.com>