Skip to content

Stabilize device online status - #709

Open
rahulsiiitm wants to merge 1 commit into
commaai:masterfrom
rahulsiiitm:agent/stabilize-device-presence
Open

Stabilize device online status#709
rahulsiiitm wants to merge 1 commit into
commaai:masterfrom
rahulsiiitm:agent/stabilize-device-presence

Conversation

@rahulsiiitm

Copy link
Copy Markdown

Stop auxiliary Athena RPCs from overwriting device presence.

Device API refreshes already provide the authoritative last_athena_ping. Network-status and upload RPCs were also setting it to either the current time or zero, so out-of-order responses could make a reachable device flicker online and offline.

Keep the upload and network-state updates unchanged, but remove their presence writes. fetchDeviceOnline() remains the sole action-level writer and continues to use Devices.fetchDevice().

Also fix the network probe's expected-error condition: timeout and unregistered-device errors are ignored, while unexpected errors are still reported.

Tested:

  • New success and timeout presence-race tests
  • 29 non-network Jest tests
  • oxlint src
  • Production Vite build

The existing live geocoding integration test depends on an external service and timed out locally.

Fixes #687

@github-actions

github-actions Bot commented Aug 7, 2026

Copy link
Copy Markdown

Welcome to connect! Make sure to:

  • read the contributing guidelines
  • mark your PR as a draft until it's ready to review
  • post the preview on Discord; feedback from users will speedup the PR review

deployed preview: https://709.connect-d5y.pages.dev
gallery report: https://709.connect-d5y.pages.dev/connect-gallery

@rahulsiiitm
rahulsiiitm marked this pull request as ready for review August 7, 2026 07:15
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.

Fix device online status flickering

1 participant