Repository navigation
fix(desktop): confirm unlinking and don't repeat pending link requests - #1471
Merged
jonathan308 merged 3 commits intoOct 15, 2026
Merged
jonathan308 merged 3 commits into
jonathan308 merged 3 commits into
Conversation
Settings' "Unlink this Mac" sent the unlink action on a single click, unlike Remove model or Turn off Autopilot, which confirm. Add an UnlinkDialog with Keep linked / Unlink this Mac. Home's footer kept "Link account" enabled next to a pending link code and while a link operation ran, so each click started another link request. Hide it once a code exists and disable it while linking or busy, as Settings' button already is. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
jonathan308
had a problem deploying
to
benchmarks
October 14, 2026 01:31 — with
GitHub Actions
Error
This was referenced Oct 15, 2026
This Mac's "Finish linking this Mac" step quoted the code inside a
sentence ("Enter code ABCD-1234 in your browser…"), which was easy to
miss and awkward to read off while typing it on the link page. Show the
code on its own, large and letter-spaced, with a Copy code button, and
keep the sentence for what it's for.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Collaborator
Author
|
Follow-up 23892e8: the pending link code on This Mac's Finish linking this Mac step was only quoted inside a sentence. It's now shown on its own, large and letter-spaced (selectable as one unit), with a Copy code button next to Open link page. |
jonathan308
had a problem deploying
to
benchmarks
October 15, 2026 05:17 — with
GitHub Actions
Error
The large link code on the Finish linking step could wrap at its hyphen in a narrow column. Keep it on one line. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Collaborator
Author
|
Follow-up 8de1288: the large link code on Finish linking this Mac no longer wraps at its hyphen ( |
jonathan308
had a problem deploying
to
benchmarks
October 15, 2026 06:10 — with
GitHub Actions
Error
jonathan308
merged commit Oct 15, 2026
f789904
into
codex/desktop-mac-preview-20261012
20 of 22 checks passed
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Two account-link controls in the desktop app acted too eagerly:
{ action: 'unlink' }on the first click. In the development preview the toast immediately read Mac unlinking · Complete. Other actions that remove something (Remove model, Turn off Autopilot, Pause) all confirm first. Unlinking stops attributing the Mac's earnings to the account.?preview&account=unlinked) kept Link account enabled next to the pending Link code: KXQF-7M2P, and while alinkoperation was running, so every click started another link request. Settings' equivalent button is already disabled while busy.Found during the second desktop UI audit pass. Base:
codex/desktop-mac-preview-20261012(unmerged desktop stack: #1354 plus the signed preview packaging commits). The diff contains only this fix. The Desktop / frontend check on this base also needs #1455.Before / After
flowchart LR subgraph Before["Before"] direction TB B1(["Settings: click Unlink this Mac"]):::user --> B2(["unlink sent immediately"]):::bad B3(["Home: link code shown"]):::user --> B4["Link account still enabled"]:::bad B4 --> B5(["Each click = another link request"]):::bad end subgraph After["After"] direction TB A1(["Settings: click Unlink this Mac"]):::user --> A2["UnlinkDialog: Keep linked / Unlink"]:::fix A2 --> A3(["unlink only after confirming"]):::good A4(["Home: link pending or code shown"]):::user --> A5["Link account disabled / hidden"]:::fix A5 --> A6(["One request; the code is the next step"]):::good end classDef user fill:#1f2937,stroke:#93c5fd,color:#f9fafb classDef bad fill:#7f1d1d,stroke:#fca5a5,color:#fef2f2 classDef fix fill:#065f46,stroke:#6ee7b7,color:#ecfdf5 classDef good fill:#14532d,stroke:#86efac,color:#f0fdf4Legend: blue = user action/state, red = defect, green = changed code / fixed outcome.
Changes
components/account/UnlinkDialog.tsx(new): a confirmation dialog followingRemoveModelDialog's pattern.features/Settings.tsx: Unlink this Mac opens the dialog. Link account is unchanged.features/Home.tsx: Link account is hidden while a link code is shown, and disabled while busy or while alinkoperation runs.tests/accountLinkGuards.test.tsx(new): both behaviors. Both tests fail on the base branch.CHANGELOG.md: Unreleased entry.Validation
Limitations
Fixtures and jsdom only. No real account was linked or unlinked.
🤖 Generated with Claude Code
Need help on this PR? Tag
@codesmith-botwith what you need.