Skip to content

Mark remote state as stale when peer states cannot be read - #3

Merged
daschmidt1994 merged 1 commit into
mainfrom
fix/stale-remote-state
Nov 25, 2026
Merged

daschmidt1994 merged 1 commit into
mainfrom
fix/stale-remote-state

Conversation

@daschmidt1994

Copy link
Copy Markdown
Owner

If the peer-state stream fails, carried-over remotes are now marked stale (stateAsOfMs, fetchError) instead of being shown as current "verbunden · Kontakt vor 3 Tagen". Stale remotes never count as connected and do not trigger the disconnected alert. Version 0.6.1 (9).

When the peer-state stream failed (timeout, no answer), the refresh
silently reused the remotes of the cached snapshot. The app then kept
showing "verbunden · Kontakt vor 3 Tagen" as if it were current, with no
hint that the value was days old.

Carried-over remotes now get stateAsOfMs (the fetch time of the copy,
kept across repeated failures) and fetchError. A stale entry never
counts as connected, the plan card shows "Status nicht abrufbar (...)
· Stand <date>", the widget shows "Status unbekannt", and the
disconnected alert ignores it because an old copy says nothing about
the remote itself. Both fields survive the snapshot cache.
@daschmidt1994
daschmidt1994 merged commit e543af0 into main Nov 25, 2026
1 check passed
@daschmidt1994
daschmidt1994 deleted the fix/stale-remote-state branch November 25, 2026 05:23
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