Skip to content

fix(desktop): make continue-in-browser and bring-back reliable for every browser - #10721

Merged
waleedlatif1 merged 3 commits into
stagingfrom
fix/desktop-sign-in-bring-back
Dec 3, 2026
Merged

waleedlatif1 merged 3 commits into
stagingfrom
fix/desktop-sign-in-bring-back

Conversation

@waleedlatif1

Copy link
Copy Markdown
Collaborator

Summary

  • Arc and Dia open the handed-off page with a plain open -b instead of open -n, which launched a second app instance. They don't honor --profile-directory, so the panel offers one choice per browser and bring-back reads every profile of that browser, taking the one that changed the site's cookies last (one Keychain read for all)
  • Bring-back imports what the browser has for the site right away and reloads the page, so the page itself shows whether the sign-in took. It only waits (every 3s, up to 30s, starting after the Keychain prompt) when the browser has nothing for the site yet, since Chromium commits cookies to disk lazily
  • The handoff stays pending after a bring-back (broughtBack) so a sign-in saved later can be brought back again; nothing is written once a cancel, newer continue, or sign-out retires it (retired), and a chat id migration mid-import still reopens the page in the right chat
  • Panel: busy state lives in shared mutation state so it survives remounts; results and errors show in the notice instead of toasts; Cancel stays available while checking; "Try again" / "Bring back again" / "Done" labels; clearer copy; passkey hint lets you pick a browser and no longer shows on the AWS access portal; the notice is a live region
  • Bridge changes are optional fields only (opensChosenProfile, broughtBack, retired); older shells keep today's behavior

Type of Change

  • Bug fix

Testing

  • apps/desktop: browser-import + ipc suites (205 tests), including real-SQLite cookie schema 17/18 reads, multi-profile selection, partial and total profile failures, retire during Keychain prompt / read / wait, window starting after the Keychain prompt, chat id migration; each new guard reverted and its test watched go red. Desktop tsc --noEmit clean
  • apps/sim: browser-session + browser-import hook tests (54), including busy state surviving remount and a late-settling check never surfacing under a new handoff
  • check:desktop-bridge (backward compatible), biome

Checklist

  • Code follows project style guidelines
  • Self-reviewed my changes
  • Tests added/updated and passing (new tests pass the test-audit authoring gate)
  • No new warnings introduced
  • I confirm that I have read and agree to the terms outlined in the Contributor License Agreement (CLA)

…ery browser

- Open Arc and Dia with a plain open instead of open -n, which started a second app instance; they open in their front profile, so the panel offers one choice per browser and bring-back reads every profile, taking the one that changed the site last
- Bring-back imports what the browser has for the site right away and reloads the page; it waits (up to 30s, cancellable, after the Keychain prompt) only when the browser has nothing for the site yet
- Keep the handoff pending after a bring-back so it can be brought back again; never write cookies once a cancel, newer continue, or sign-out retires it
- Panel: busy state survives remounts, results and errors show inline, Cancel stays available while checking, clearer copy, passkey hint picks a browser and skips the AWS access portal, notices are announced
@vercel

vercel Bot commented Dec 3, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

1 Skipped Deployment
Project Deployment Actions Updated
docs Skipped Skipped Dec 3, 2026 5:52pm UTC

Request Review

@cubic-dev-ai cubic-dev-ai Bot left a comment •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All reported issues were addressed across 21 files

Reply with feedback, questions, or to request a fix.

Turn on auto-fix | Re-trigger cubic

@waleedlatif1

Copy link
Copy Markdown
Collaborator Author

@greptile

@waleedlatif1

Copy link
Copy Markdown
Collaborator Author

@cubic-dev-ai review this PR

@cubic-dev-ai

cubic-dev-ai Bot commented Dec 3, 2026

Copy link
Copy Markdown
Contributor

@cubic-dev-ai review this PR

@waleedlatif1 I have started the AI code review. It will take a few minutes to complete.

@cubic-dev-ai cubic-dev-ai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No issues found across 21 files

Confidence score: 5/5

  • Automated review surfaced no issues in the provided summaries.
  • No files require special attention.

Turn on auto-fix | Re-trigger cubic

@waleedlatif1
waleedlatif1 merged commit 1e67cdc into staging Dec 3, 2026
84 checks passed
@waleedlatif1
waleedlatif1 deleted the fix/desktop-sign-in-bring-back branch December 3, 2026 17:58

This branch was previously deployed

1 inactive deployment
Preview — c0b7e6e0 Deployed Dec 3, 2026 by vercel[bot]
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.

1 participant