Skip to content

pro_bind_tenant/ListTenantMemberships have no client-side timeout — a stuck daemon call leaves the add-synced-database dialog undismissable #2556

Closed

Description

@mstomar125

Problem

PR #2555 (#2541, add-synced-database-from-cloud flow) correctly makes the "Add synced database" dialog undismissable during its 'binding' step (Escape/overlay-click/close-button all blocked via `escapeKeydownBehavior`/`interactOutsideBehavior`), so a user can't believe they cancelled an operation that's actually still running in the background.

But `pro_bind_tenant`/`ListTenantMemberships` (`packages/desktop-app/src-tauri/src/commands/pro_sync.rs`) have no client-side timeout — unlike `WatchSyncStatusRequest`/probe calls elsewhere in this codebase, which do use `tokio::time::timeout`. If the daemon genuinely hangs during `confirmBind`'s create→switchTo→mint→bind chain, the user now has zero dismiss paths (an improvement over the old silent-fake-cancel bug, since at least they're not misled, but still a real stuck-UI state).

Acceptance criteria

  • `pro_bind_tenant` and/or the relevant gRPC call sites get a client-side timeout, matching the `tokio::time::timeout` pattern already used for `WatchSyncStatusRequest`/probe calls
  • On timeout, the dialog surfaces a real error state (matching the existing generic error step) rather than staying undismissable forever
  • Tests pass (`bun run test:all`), code passes `bun run quality:fix`

Related

Activity

  1. self-assigned this
    on Sep 10, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

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