Skip to content

[codex] fix endpoint refresh retry after MQTT outage#1279

Merged
copystring merged 3 commits into
mainfrom
codex/fix-endpoint-refresh-mqtt-throttle
May 20, 2026
Merged

[codex] fix endpoint refresh retry after MQTT outage#1279
copystring merged 3 commits into
mainfrom
codex/fix-endpoint-refresh-mqtt-throttle

Conversation

@copystring
Copy link
Copy Markdown
Owner

Summary

  • clear the endpoint refresh rate-limit marker when a refresh exits early because MQTT is unavailable
  • add a regression test that retries immediately once MQTT connectivity returns

Root cause

efreshEndpoint() recorded the per-device throttle timestamp before
efreshEndpointInternal() checked MQTT availability. If MQTT was temporarily unavailable, the refresh returned early but still blocked the next retry for 60 seconds.

Validation

  • repo diff review
  • targeted unit test added in src/lib/localApi.test.ts
  • runtime execution not performed here because
    ode_modules is absent in the Codex worktree, so local
    pm test execution was not available

@copystring copystring force-pushed the codex/fix-endpoint-refresh-mqtt-throttle branch from a7fb7af to 81b0eb2 Compare May 20, 2026 15:39
@copystring copystring marked this pull request as ready for review May 20, 2026 15:46
@copystring copystring merged commit bb7441f into main May 20, 2026
7 checks passed
@copystring copystring deleted the codex/fix-endpoint-refresh-mqtt-throttle branch May 20, 2026 15:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant