Skip to content

fix(desktop): wait for catalog close before snapshot import - #6411

Open
wolfyy970 wants to merge 1 commit into
block:mainfrom
wolfyy970:fix/desktop-catalog-snapshot-import
Open

fix(desktop): wait for catalog close before snapshot import#6411
wolfyy970 wants to merge 1 commit into
block:mainfrom
wolfyy970:fix/desktop-catalog-snapshot-import

Conversation

@wolfyy970

@wolfyy970 wolfyy970 commented Aug 20, 2026

Copy link
Copy Markdown

Summary

Add Agent → Import showed a preview, then Import, Cancel, and Escape did nothing. The catalog dialog was torn down in the same turn the preview opened, so the new dialog painted but did not receive clicks.

Related: #5458 looks like the same failure.

Fixes #6076

Testing

  • Catalog-path e2e: pick a file, click Import, assert confirm_agent_snapshot_import once.
  • Unit test: the handoff does not run in the same turn as catalog close.
  • Desktop suite not run on this laptop. CI will.

Add Agent → Import painted a preview whose Import button did nothing,
because the catalog dialog unmounted in the same turn the preview opened.

Signed-off-by: KC <79471844+wolfyy970@users.noreply.github.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
@wolfyy970
wolfyy970 requested a review from a team as a code owner August 20, 2026 16:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Agent snapshot import: preview dialog's Import/Cancel/Escape unresponsive (0.5.14, macOS)

1 participant