You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
pro_bind_tenant/ListTenantMemberships have no client-side timeout — a stuck daemon call leaves the add-synced-database dialog undismissable #2556
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`
Activity