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
console: linking a social/OIDC account that is already linked to another user, or that cannot be linked, still brings the signed-in person back with no word #33498
Filing gate: ① a user-visible defect with a named producer. The #33063 os-dev read it on the vendor code, not live (report 6885304558, out_of_scope_findings[0], class a), and it surfaced beside PR #33496.
Reader: domain:ui (ui/apps/console auth pages + @object-ui/i18n). Grade p3, self-graded by the seat under the maintainer's 「定级你可以自己决定」: a refused link says nothing, but no data is wrong and the person can retry.
Dedupe: is:issue is:open account_already_linked_to_different_user and unable_to_link_account find only #33063 (the sibling email_does_not_match code).
better-auth 1.7.12 linkOAuthAccount (oauth2/link-account.mjs) refuses a signed-in link with account_already_linked_to_different_user or unable_to_link_account. It redirects to the same Console login error URL as email_does_not_match.
Claim: PM loop round 1 · 2026-11-15T01:10Z
Session: session_01FEkQ5oG4qX4LXsVnuxP2PZ (card thread, dev) · seat session_01FEkQ5nWoa1Ze1QzjRTSYXD
Account: os-project-manager
Branch: claude/project-thread-0fraah
Worktree: objectstack-issue-33498
Domain: domain:ui
Seat: domain:ui#1
File surface: ui/apps/console/src/pages/auth/ssoCallbackRefusal.ts (SIGNED_IN_LINK_REFUSALS), ui/apps/console/src/components/LinkRefusalNotice.tsx and their tests (incl. App.linkRefusalLanding-33063, LoginPage.linkRefusal-33063), @object-ui/i18n locale packs (one key per produced code, all eleven locales), root .changeset/. ⛔ No server, plugin-auth or packages/spec edit.
Container & model: S, mode:thread, model: default tier, effort: default
Clause-②: yes (widening)
Metadata-protocol: none
Responsibility: a signed-in person whose social/OIDC link is refused as already linked to another user, or as unable to link, is sent back with no word | none (the account is simply not linked) | every signed-in person linking a provider account that better-auth refuses with either code
Thread-read: none
Premise: read on the vendor code by the #33063 os-dev (report 6885304558, out_of_scope_findings[0]); #33063 (PR #33496, a9da5474) added the path this card extends, so the dev measures each code's producer on origin/main first
Serial constraints cleared: no other pm:dispatcheddomain:ui card claims a file in this surface (live label read); no other ui seat holds a Claim: on these files
Scope: the card's one defect, one PR, Fixes #33498. p3; it was held serial behind #33063, which has merged. The declaration lines start at yes (widening) / none; the dev measures them on the diff, and the seat amends this claim if they differ. Order: /mnt/project-files/pm-orders/ui/order-33498.md. Summons: the maintainer's 「开一个 ui 车道,派发 p1 p2 任务」 (this project, 2026-11-14T14:13Z).
os-dev-report
{
"issue": 33498,
"status": "done",
"branch": "claude/project-thread-0fraah",
"pr": "#33585",
"head": "06dc109b",
"session": "session_01FEkQ5oG4qX4LXsVnuxP2PZ",
"premise_still_valid": true,
"summary": "Both codes are produced on the signed-in link path, measured LIVE through the real plugin-auth pipeline (throwaway probe on the implicit-account-linking.test.ts rig, real POST /api/v1/auth/link-social then GET /api/v1/auth/callback/acme-idp): account_already_linked_to_different_user (provider account row owned by another user) and unable_to_link_account (untrusted provider with email_verified false; also accountLinking.enabled false) each 302 to /_console/login?error=CODE with no error_description; email_does_not_match control lands the same. Vendor read agrees (better-auth 1.7.12 oauth2/link-account.mjs linkOAuthAccount, api/routes/callback.mjs redirectOnError to onAPIError.errorURL). Each code joins SIGNED_IN_LINK_REFUSALS in ui/apps/console/src/pages/auth/ssoCallbackRefusal.ts with its own copy (auth.login.errors.linkAlreadyLinkedToOtherUser, auth.login.errors.linkUnableToLink) in all eleven @object-ui/i18n locales (zh-Hant via gen:zh-hant); #33496's hold/notice path is unchanged. Card assignee empty-or-not untouched; no assignees sent on pr_create.",
"tests": "Pins in ui/apps/console/src/tests/App.linkRefusalLanding-33063.test.tsx (#33498 block, two-leg real App): each new code under en and zh-Hans shows its locale row exactly while the URL carries error_description=bob@example.com and the page never shows it; CONTROL email_does_not_match en/zh-Hans keeps its sentence; CONTROL ?error=email_not_found shows nothing and holds nothing; three sentences distinct per language. Run: pnpm exec vitest run (ui) apps/console/src/pages/auth/ + the App test -> 35 files, 339 passed, VERDICT command-exit 0; packages/i18n/ -> 102 files, 1894 passed 13 skipped, VERDICT 0. Ablation: scripts/ablation-replace.mjs --delete, anchor the two new map lines 1 -> 0, blob 071313cfbfc3 -> 21dc9edf96a5, App test 4 failed | 8 passed (12) (exactly the four new-code cases; both email_does_not_match controls and the unknown-code control green), VERDICT command-exit 1; restored blob == HEAD 071313cfbfc3, git diff HEAD empty. Console suite imports src/, no dist in the path.",
"gates": "Local subset on 06dc109: node scripts/pm/dispatch-gates.mjs --commands --repo objectstack-ai/objectstack -> 38 commands, all exit 0 (captured before any pipe; list in /mnt/project-files/pm-orders/ui/33498-gates-ran.txt and the PR body); --ran: 38 derived, 38 run, 0 NOT-MEASURED, 0 UNRUN (exit 0). Also: pnpm --filter @object-ui/console --filter @object-ui/i18n run type-check after building @object-ui/console^... -> both Done (FINAL=0); eslint on the touched console file, App test and en.ts -> exit 0; pnpm --dir ui check:new-line-citations -> 0 new. CI check-runs: in_progress at report time (PR just opened); the seat reads them.",
"line_budget": "14 files, +116/-0 (ssoCallbackRefusal.ts +24, App test +58, 11 locale files +23, changeset +11); no skills/** touched, no ratchet ledger touched",
"files_changed": [
"11+/0- .changeset/33498-link-refusal-other-codes-notice.md",
"58+/0- ui/apps/console/src/tests/App.linkRefusalLanding-33063.test.tsx",
"24+/0- ui/apps/console/src/pages/auth/ssoCallbackRefusal.ts",
"2+/0- ui/packages/i18n/src/locales/ar.ts",
"2+/0- ui/packages/i18n/src/locales/de.ts",
"3+/0- ui/packages/i18n/src/locales/en.ts",
"2+/0- ui/packages/i18n/src/locales/es.ts",
"2+/0- ui/packages/i18n/src/locales/fr.ts",
"2+/0- ui/packages/i18n/src/locales/ja.ts",
"2+/0- ui/packages/i18n/src/locales/ko.ts",
"2+/0- ui/packages/i18n/src/locales/pt-BR.ts",
"2+/0- ui/packages/i18n/src/locales/ru.ts",
"2+/0- ui/packages/i18n/src/locales/zh-Hans.ts",
"2+/0- ui/packages/i18n/src/locales/zh-Hant.ts"
],
"declarations": "Clause-②: yes (widening) measured on the diff: two new keys under auth.login.errors in the shipped @object-ui/i18n locale packs, nothing renamed or removed. Metadata-protocol: none (no metadata key, spec or protocol touched). Both match the claim; changeset @object-ui/console + @object-ui/i18n patch (check-changeset-no-major exit 0).",
"deviations": "(1) The new pins live in the existing App.linkRefusalLanding-33063.test.tsx as a #33498 describe block, reusing its two-leg App harness rather than copying ~150 lines of mocks into a new file. (2) The live probe was a temporary copy of packages/plugins/plugin-auth/src/implicit-account-linking.test.ts with four probe cases appended, run once under the lock and deleted before commit (never committed; archived in the dev's scratchpad); the already-linked state was staged by moving an existing sys_account row to a second user, since the rig's posture refused a second sign-up (403). (3) Standing conflict, named not chosen: os-dev.md rule 2 says pr_create carries assignees; the order and AGENTS.md claim paragraph say none; followed the order (none sent; relay read-back: assignees none, labels none). (4) No labels sent: the order names none and skip-changeset does not apply.",
"dogfood_battery": "n/a — no ! in the PR title and no (narrowing) arm",
"mcp_calls": "2 — mcp__github__issue_read (get #33498, get_comments #33498); reads only",
"api_writes": "2 — relay dispatch pr_create (POST /repos/objectstack-ai/objectstack/dispatches -> fleet-write run 43665290901, PR #33585) and this os-dev-report comment (post-stamped.mjs). Write budget spent: 3 of 3 (git push, pr_create, report comment).",
"open_questions": [],
"security_findings": "none",
"out_of_scope_findings": []
}
Activity
objectstack-fleet commentedon Nov 15, 2026
domain:ui#1 · os-project-manager · session_01FEkQ5nWoa1Ze1QzjRTSYXD
Claim: PM loop round 1 · 2026-11-15T01:10Z
Session:
session_01FEkQ5oG4qX4LXsVnuxP2PZ(card thread, dev) · seatsession_01FEkQ5nWoa1Ze1QzjRTSYXDAccount:
os-project-managerBranch:
claude/project-thread-0fraahWorktree:
objectstack-issue-33498Domain:
domain:uiSeat:
domain:ui#1File surface:
ui/apps/console/src/pages/auth/ssoCallbackRefusal.ts(SIGNED_IN_LINK_REFUSALS),ui/apps/console/src/components/LinkRefusalNotice.tsxand their tests (incl.App.linkRefusalLanding-33063,LoginPage.linkRefusal-33063),@object-ui/i18nlocale packs (one key per produced code, all eleven locales), root.changeset/. ⛔ No server, plugin-auth orpackages/specedit.Container & model: S,
mode:thread,model: default tier,effort: defaultClause-②: yes (widening)
Metadata-protocol: none
Responsibility: a signed-in person whose social/OIDC link is refused as already linked to another user, or as unable to link, is sent back with no word | none (the account is simply not linked) | every signed-in person linking a provider account that better-auth refuses with either code
Thread-read: none
Premise: read on the vendor code by the #33063 os-dev (report 6885304558,
out_of_scope_findings[0]); #33063 (PR #33496,a9da5474) added the path this card extends, so the dev measures each code's producer onorigin/mainfirstSerial constraints cleared: no other
pm:dispatcheddomain:uicard claims a file in this surface (live label read); no other ui seat holds aClaim:on these filesScope: the card's one defect, one PR,
Fixes #33498. p3; it was held serial behind #33063, which has merged. The declaration lines start atyes (widening)/none; the dev measures them on the diff, and the seat amends this claim if they differ. Order:/mnt/project-files/pm-orders/ui/order-33498.md. Summons: the maintainer's 「开一个 ui 车道,派发 p1 p2 任务」 (this project, 2026-11-14T14:13Z).objectstack-fleet commentedon Nov 15, 2026
domain:ui#1 · os-project-manager · session_01FEkQ5oG4qX4LXsVnuxP2PZ
os-dev-report
{
"issue": 33498,
"status": "done",
"branch": "claude/project-thread-0fraah",
"pr": "#33585",
"head": "06dc109b",
"session": "session_01FEkQ5oG4qX4LXsVnuxP2PZ",
"premise_still_valid": true,
"summary": "Both codes are produced on the signed-in link path, measured LIVE through the real plugin-auth pipeline (throwaway probe on the implicit-account-linking.test.ts rig, real POST /api/v1/auth/link-social then GET /api/v1/auth/callback/acme-idp): account_already_linked_to_different_user (provider account row owned by another user) and unable_to_link_account (untrusted provider with email_verified false; also accountLinking.enabled false) each 302 to /_console/login?error=CODE with no error_description; email_does_not_match control lands the same. Vendor read agrees (better-auth 1.7.12 oauth2/link-account.mjs linkOAuthAccount, api/routes/callback.mjs redirectOnError to onAPIError.errorURL). Each code joins SIGNED_IN_LINK_REFUSALS in ui/apps/console/src/pages/auth/ssoCallbackRefusal.ts with its own copy (auth.login.errors.linkAlreadyLinkedToOtherUser, auth.login.errors.linkUnableToLink) in all eleven @object-ui/i18n locales (zh-Hant via gen:zh-hant); #33496's hold/notice path is unchanged. Card assignee empty-or-not untouched; no assignees sent on pr_create.",
"tests": "Pins in ui/apps/console/src/tests/App.linkRefusalLanding-33063.test.tsx (#33498 block, two-leg real App): each new code under en and zh-Hans shows its locale row exactly while the URL carries error_description=bob@example.com and the page never shows it; CONTROL email_does_not_match en/zh-Hans keeps its sentence; CONTROL ?error=email_not_found shows nothing and holds nothing; three sentences distinct per language. Run: pnpm exec vitest run (ui) apps/console/src/pages/auth/ + the App test -> 35 files, 339 passed, VERDICT command-exit 0; packages/i18n/ -> 102 files, 1894 passed 13 skipped, VERDICT 0. Ablation: scripts/ablation-replace.mjs --delete, anchor the two new map lines 1 -> 0, blob 071313cfbfc3 -> 21dc9edf96a5, App test 4 failed | 8 passed (12) (exactly the four new-code cases; both email_does_not_match controls and the unknown-code control green), VERDICT command-exit 1; restored blob == HEAD 071313cfbfc3, git diff HEAD empty. Console suite imports src/, no dist in the path.",
"gates": "Local subset on 06dc109: node scripts/pm/dispatch-gates.mjs --commands --repo objectstack-ai/objectstack -> 38 commands, all exit 0 (captured before any pipe; list in /mnt/project-files/pm-orders/ui/33498-gates-ran.txt and the PR body); --ran: 38 derived, 38 run, 0 NOT-MEASURED, 0 UNRUN (exit 0). Also: pnpm --filter @object-ui/console --filter @object-ui/i18n run type-check after building @object-ui/console^... -> both Done (FINAL=0); eslint on the touched console file, App test and en.ts -> exit 0; pnpm --dir ui check:new-line-citations -> 0 new. CI check-runs: in_progress at report time (PR just opened); the seat reads them.",
"line_budget": "14 files, +116/-0 (ssoCallbackRefusal.ts +24, App test +58, 11 locale files +23, changeset +11); no skills/** touched, no ratchet ledger touched",
"files_changed": [
"11+/0- .changeset/33498-link-refusal-other-codes-notice.md",
"58+/0- ui/apps/console/src/tests/App.linkRefusalLanding-33063.test.tsx",
"24+/0- ui/apps/console/src/pages/auth/ssoCallbackRefusal.ts",
"2+/0- ui/packages/i18n/src/locales/ar.ts",
"2+/0- ui/packages/i18n/src/locales/de.ts",
"3+/0- ui/packages/i18n/src/locales/en.ts",
"2+/0- ui/packages/i18n/src/locales/es.ts",
"2+/0- ui/packages/i18n/src/locales/fr.ts",
"2+/0- ui/packages/i18n/src/locales/ja.ts",
"2+/0- ui/packages/i18n/src/locales/ko.ts",
"2+/0- ui/packages/i18n/src/locales/pt-BR.ts",
"2+/0- ui/packages/i18n/src/locales/ru.ts",
"2+/0- ui/packages/i18n/src/locales/zh-Hans.ts",
"2+/0- ui/packages/i18n/src/locales/zh-Hant.ts"
],
"declarations": "Clause-②: yes (widening) measured on the diff: two new keys under auth.login.errors in the shipped @object-ui/i18n locale packs, nothing renamed or removed. Metadata-protocol: none (no metadata key, spec or protocol touched). Both match the claim; changeset @object-ui/console + @object-ui/i18n patch (check-changeset-no-major exit 0).",
"deviations": "(1) The new pins live in the existing App.linkRefusalLanding-33063.test.tsx as a #33498 describe block, reusing its two-leg App harness rather than copying ~150 lines of mocks into a new file. (2) The live probe was a temporary copy of packages/plugins/plugin-auth/src/implicit-account-linking.test.ts with four probe cases appended, run once under the lock and deleted before commit (never committed; archived in the dev's scratchpad); the already-linked state was staged by moving an existing sys_account row to a second user, since the rig's posture refused a second sign-up (403). (3) Standing conflict, named not chosen: os-dev.md rule 2 says pr_create carries assignees; the order and AGENTS.md claim paragraph say none; followed the order (none sent; relay read-back: assignees none, labels none). (4) No labels sent: the order names none and skip-changeset does not apply.",
"dogfood_battery": "n/a — no ! in the PR title and no (narrowing) arm",
"mcp_calls": "2 — mcp__github__issue_read (get #33498, get_comments #33498); reads only",
"api_writes": "2 — relay dispatch pr_create (POST /repos/objectstack-ai/objectstack/dispatches -> fleet-write run 43665290901, PR #33585) and this os-dev-report comment (post-stamped.mjs). Write budget spent: 3 of 3 (git push, pr_create, report comment).",
"open_questions": [],
"security_findings": "none",
"out_of_scope_findings": []
}
Generated by Claude Code
objectstack-fleet commentedon Nov 15, 2026
domain:ui#1 · os-project-manager · session_01FEkQ5nWoa1Ze1QzjRTSYXD
Seat review: PR #33585 ACCEPT on head
06dc109b(2026-11-15T02:19Z), contract record PASS 6887646324. K = 2, no sync; landing now (auto-merge).objectstack-fleet commentedon Nov 15, 2026
domain:ui#1 · os-project-manager · session_01FEkQ5nWoa1Ze1QzjRTSYXD
Landed · 2026-11-15T04:21Z
64469353onmain(closes this card viaFixes #33498)State:
pm:dispatchedremoved, assignee cleared; card closed by the merge.fix(console): a link refused as already linked to another user, or as…