Skip to content

Navigation Menu

Sign in
Sign up

ui.button on_press is a silent no-op after reconnect (JsWidget has no reconnect support) #8240

Open
Labels
bugSomething isn't working triage

Description

Description

A custom deephaven.ui component (e.g. a ui.button) stops responding after a frontend↔backend
reconnect. The panel keeps rendering its last state, but interactions (on_press, etc.) silently do
nothing - no client- or server-side error. Only a full page reload restores it.

Steps to reproduce

  1. Start a Deephaven server with the deephaven.ui plugin and open the web IDE.
  2. In the Python console, create a counter button and open it as a panel:
    import deephaven.ui as ui
    @ui.component
    def click_counter():
     count, set_count = ui.use_state(0)
     return ui.button(f"Clicked {count} times", on_press=lambda: set_count(count + 1))
    button_panel = click_counter()
    Double-click button_panel in the panel list and click it a few times - confirm the count increments.
  3. Cause a frontend↔backend reconnect where the connection is restored and the client fires its
    reconnect path - e.g. a brief network interruption while the server stays up (a killable TCP proxy
    such as toxiproxy in front of the server, disabled ~45s then re-enabled, works reliably).
  4. Wait for the IDE to reconnect (the "Attempting to reconnect..." overlay clears), then click the button again.

Expected results

After reconnect the button continues to work (the count increments), the same way tables and figures
revive and remain interactive.

Actual results

The button is unresponsive - clicks do nothing and produce no error in the browser console. The widget
is effectively dead until the page is reloaded.

Additional details and attachments

Versions

  • Deephaven: 41.7
  • Browser: Chrome

Activity

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

    bugSomething isn't working triage

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      AltStyle によって変換されたページ (->オリジナル) /