Skip to content

Improve offline handling and automatic recovery across restarts and upgrades #3578

Description

@wborn

User Story

As an OpenRemote user, I want the application to remain accessible with a friendly status message when the OpenRemote Manager is unavailable, and automatically recover when it becomes available again, including after application upgrades.

Description

OpenRemote already provides an offline page and automatic reconnection for running applications. However, this functionality should also work when users navigate to or refresh OpenRemote while the Manager is unavailable.

For example, during a restart or upgrade, users should see a friendly offline page instead of a browser connection error or a failed application startup.

Once the Manager becomes available again, the application should automatically reconnect or reload without requiring user interaction.

The solution should also handle application upgrades gracefully, including changes to the offline/reconnection functionality itself. Users should never become stuck with outdated cached resources or need to manually clear their browser cache.

Acceptance Criteria

  • A friendly offline page is displayed when the OpenRemote Manager is unavailable.
  • The offline page remains accessible during restarts, upgrades, or network outages, provided the application has been visited previously.
  • The functionality works when users navigate to or refresh OpenRemote while the Manager is unavailable.
  • Existing offline handling and automatic reconnection continue to work for already-open applications.
  • The application automatically detects when the Manager becomes available again.
  • The application automatically reconnects or reloads without requiring user interaction.
  • The functionality continues to work across OpenRemote upgrades, including changes to the offline/reconnection implementation.
  • Updated application resources are loaded correctly after an upgrade, without serving incompatible or outdated cached resources.
  • Users do not need to manually refresh the page or clear their browser cache to recover.
  • Authentication failures are not incorrectly treated as connectivity problems.
  • Normal application behavior remains unaffected when the Manager is available.

Implementation Suggestions

A service worker could provide a lightweight cached offline page for failed navigations. The existing offline UI (@openremote/or-app), reconnection logic (@openremote/core), and /api/master/info endpoint could potentially be reused.

Special attention should be given to service worker updates and cache invalidation across application upgrades. The exact implementation is left open.

Activity

  1. added theissue type on Nov 16, 2026
  2. Ekhorn commented on Nov 16, 2026

    @Ekhorn
    Contributor

    I would consider blocking this issue until #3565 is merged.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    EnhancementImprovement of an existing feature

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions