Skip to content

Reconnection UX: App stuck on 'Connecting to Ankurah' if server starts after app #3

Description

@dnorman

Problem

When the app launches before the server is available, it shows "Connecting to Ankurah..." but doesn't automatically update the UI when the connection succeeds.

The websocket client does retry and eventually connects, but the nodeReady state in App.tsx is set once during initAnkurah() and doesn't reflect actual connection status changes.

Current behavior

  1. Start app (server not running) → Shows "Connecting to Ankurah..."
  2. Start server → Websocket connects in background
  3. UI still shows "Connecting to Ankurah..." (stuck)
  4. User must reload app to see connected state

Expected behavior

UI should reactively update when connection status changes - either showing "Connected" when websocket connects, or providing a retry button.

Technical notes

  • nodeReady in App.tsx is a one-time initialization flag, not reactive to connection state
  • The websocket client in Rust does retry automatically
  • Need to expose connection status as a signal/observable that React can subscribe to

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions