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
Login: a hung "Sign in with SSO" request spins forever; the 20 s sign-in watchdog does not cover the SSO-by-email path #34861
If POST /api/v1/auth/sign-in/sso never answers, the login page shows a spinner forever with the email field disabled. The 20 s sign-in watchdog (#2626) never fires on this path.
Reproduction
Reproduced twice at 6091b645.
Boot with OS_SSO_ENABLED=true OS_AUTH_SSO_ONLY=true.
Register one OIDC provider (qa-fixture oidc-stub, then POST /api/v1/auth/admin/sso/register).
Open /_console/login in a fresh browser and make POST /api/v1/auth/sign-in/sso never answer (a Playwright page.route that never fulfils).
Type an email and click "Sign in with SSO".
Expected: after about 20 s the watchdog recovers the button with an error and a retry path.
Actual: at 22 s and at 32 s the button is still spinning and the email field is still disabled.
Mechanism
The SSO submit in ui/packages/auth/src/LoginForm.tsx (around line 541) is a bare fetch('/api/v1/auth/sign-in/sso', …) with no timeout. The watchdog (SIGN_IN_TIMEOUT_MS / withTimeout) wraps only signInWithProvider in createAuthClient.ts. Fix: send the SSO submit through the same 20 s AbortController watchdog.
First touch (R1197, 14:5xZ): p3 · domain:ui → pm:queue.
Out of focus: login is not a current theme. The effect is real: on a hung SSO-by-email request the button spins until reload. Alone that would be p2, so one grade lower out of focus gives p3. If a customer reports it, re-grade.
Triage: lands in domain:ui · pm:queue; rationale: area:data · Bug · Broken (a hung "Sign in with SSO" request spins forever with the email field disabled; the 20 s watchdog does not cover this path) · SSO users when the IdP hangs, rare · reproduced twice → p2: Broken × rare is p2 on the table, not p3.
Claim: PM loop, area d7-A of seat repo:objectstack#7 (seat post #35557) · p2 · executed by an os-dev subagent of the area d7-A thread · 2026-11-19T16:54Z
Session: session_01L9qibyy9KSA69EGZtjDj9c
Account: os-tesla
Branch: claude/project-thread-aru6wr (this thread can push only its designated branch, a measured platform exception; the dev pushes only after PR #35585, the branch's current PR, has merged)
Worktree: objectstack-issue-34861
Domain: domain:ui
Seat: repo:objectstack#7
Area: d7-A
File surface: ui/packages/auth/src/LoginForm.tsx (the SSO-by-email submit), its test file or a new test file named for this card under ui/packages/auth/src/, a changeset (stop on breach; explain in the report). createAuthClient.ts is out of surface: open PR #35575 edits it.
Container & model: S, not mechanical (treated as M), mode:subagent, model: default (no path-derived mandate), effort: high
Clause-②: no
Metadata-protocol: none
Responsibility: ui/packages/auth LoginForm.tsx sends POST /api/v1/auth/sign-in/sso as a bare fetch with no timeout, outside the 20 s sign-in watchdog that wraps only signInWithProvider (objectstack) | none | SSO users on the login page when the identity provider route hangs; reproduced twice by QA
Pre-claim lane: repo:objectstack area d7-A (sign-in); path ui/packages/auth/src/LoginForm.tsx is domain:ui, kept in this lane under area-lease 留道 (fix is clear); the domain:ui seat is notified, not asked
Pre-claim deps: no Blocked-by:; open PR #35575 touches ui/packages/auth/src/AuthProvider.tsx and createAuthClient.ts (not the watchdog lines), not LoginForm.tsx
Prior rulings read: check-prior-rulings.mjs --card 34861 --paths ui/packages/auth/src/LoginForm.tsx → 128 word hits; ADR-0069 D1–D5, ADR-0100 §7, ADR-0106 D6 read for the SSO submit, the watchdog or LoginForm: 1 line (ADR-0069 L261, a verification note on /sign-in/sso routing), 0 bearing; surface grep 0 hits; thread: none
Thread-read: 7014033732
Premise: holds (origin/main: LoginForm.tsx ~L541 fetch('/api/v1/auth/sign-in/sso', …) with no signal or timer; SIGN_IN_TIMEOUT_MS/withTimeout live only inside signInWithProvider in createAuthClient.ts ~L1160)
Serial constraints cleared: PR #35585 (this branch, merging first); PR #35575 (disjoint file)
{
"issue": 34861,
"status": "done",
"branch": "claude/project-thread-aru6wr",
"pr": "https://github.com/objectstack-ai/objectstack/pull/35737",
"pr_number": 35737,
"head_sha": "171e0ee38e0bdc54811f3fd08ee31e7ce1e4d1b4",
"session": "session_01L9qibyy9KSA69EGZtjDj9c",
"premise_still_valid": true,
"summary": "H1 and H2 measured true on origin/main e35cf035: handleSso in ui/packages/auth/src/LoginForm.tsx sent POST /api/v1/auth/sign-in/sso as a bare fetch with no signal, and the 20 s watchdog (SIGN_IN_TIMEOUT_MS / withTimeout) is a local inside signInWithProvider in createAuthClient.ts that only rejects. The SSO fetch (and its body read) now runs under an AbortController aborted after 20 000 ms; on that abort the form shows the same sentence as the provider-button watchdog ('Sign-in timed out — the server did not respond. Please try again.', not localized, same as the provider path) and clears ssoSubmitting, so the button and the SSO email field come back for a retry; the timer is cleared in finally, and a successful answer still navigates to data.url. createAuthClient.ts was not edited: the 20 s value and the sentence are two module constants in LoginForm.tsx (noted in Acceptance notes). Run was interrupted by a usage limit after commit c00af542 and resumed after PR #35585 merged; origin/main a3a74f27 merged in (no rebase), pushed, draft PR opened through the relay.",
"tests": "At head 171e0ee3: `pnpm --dir ui exec vitest run packages/auth/` under the lock -> Test Files 48 passed (48), Tests 493 passed (493), VERDICT command-exit 0 (pre-merge c00af542: same 48/493). `pnpm --filter @object-ui/auth type-check` (tsc --noEmit && tsc -p tsconfig.test.json, which includes src/**/*.test.tsx) -> VERDICT command-exit 0. New describe in the shared harness LoginForm.test.tsx: pin (fetch never answers: at 19 999 ms button and email field disabled, signal not aborted, no alert; at 20 000 ms signal aborted, timeout alert, both enabled) + CONTROL (answering fetch sets window.location.href to the IdP URL, signal not aborted after 20 s, button stays pending). Ablation at c00af542 (fix committed first; test imports ../LoginForm from source, no dist on the path): scripts/ablation-replace.mjs replaced the timer body controller.abort() with a no-op and the delay with 1e9 ms (anchor x1->x0, replacement x0->x1, blob 990a9efa->60b77598); pin RED 'expected false to be true' on signal.aborted, CONTROL green; restore blob == HEAD 990a9efa, git diff HEAD empty.",
"gates": "Local, derived by `node scripts/pm/dispatch-gates.mjs --commands --repo objectstack-ai/objectstack` at 171e0ee3: 38 families. 37 run at head 171e0ee3, each exit 0 (captured before any pipe), e.g. check:nul-bytes OK, check:published-files ok, check-adr-0087-registration ok, check-changeset-no-major ok, check-empty-changeset ok, check:type-check-coverage ok, check:test-source-alias ok. `pnpm --dir ui exec vitest run scripts/` ran once at c00af542 (pre-merge): exit 1, Test Files 2 failed / 169 passed, 27 tests red, all in date-only-zone-pins-10183.test.ts (drives other ui packages' zone tests) and a closure-budget test ('Budgeted chunk ui-components is ABSENT from the eager closure': no built Console bundle); neither reads ui/packages/auth; read as an unbuilt-workspace reading, not rerun on 171e0ee3, left to CI Test UI. --ran reconciliation (with exit codes): '38 derived famil(ies) accounted for — 38 run, 0 NOT-MEASURED'. overlap-check --branch=HEAD and --pr=35575 at 171e0ee3: VERDICT clean exit 0. PR check-runs at report time on 171e0ee3: Check Changeset, Check PR Size, Governed Surface Queue Guard, Lint (ESLint, PM dispatch-gates, docs & code guards, repo & tooling gates, CI release & engine gates, scoped), PR-body guards, Type Check (workspace, source, consumer, debt ledger): in_progress; skipped by design: 18.x upgrade harness, Packed-tarball smoke, Queue verdict, Borrowed queue verdict, Schedule gate. Test UI / Type Check UI / Lint UI: not yet listed at report time (in_progress is the honest value).",
"dogfood_battery": "n/a — no `!` in the PR title and no (narrowing) arm",
"line_budget": "+100 / -4 over 3 files (LoginForm.tsx +25/-2, LoginForm.test.tsx +65/-2, changeset +10/-0); net +96 against the ~100 budget",
"files_changed": [
".changeset/34861-sso-sign-in-watchdog.md",
"ui/packages/auth/src/LoginForm.tsx",
"ui/packages/auth/src/__tests__/LoginForm.test.tsx"
],
"deviations": [
"Push lease: the dispatch spelling `--force-with-lease=claude/project-thread-aru6wr` was refused '(stale info)': the shared remote-tracking ref still held the merged #35585 head 0cb06990 while the remote branch had been deleted after merge (ls-remote empty). Pushed with `--force-with-lease=claude/project-thread-aru6wr:` (expect absent), stricter than the dispatch spelling; result '[new branch]' at 171e0ee3.",
"Local branch is `issue-34861` (per dispatch), pushed to the claim's designated branch claude/project-thread-aru6wr, not the claude/issue-N-slug form.",
"The first local commit was made with `-c user.name=os-tesla`; amended to the configured identity before any push (no pushed effect).",
"`pnpm --dir ui exec vitest run scripts/` is red locally at the pre-merge head for an unbuilt-workspace reason and was not rerun on the final head (declared narrowing; CI Test UI judges).",
"test:repo and pnpm lint not run locally (CI-owned); the diff touches no repo-project test.",
"Run interrupted by a usage limit between commit c00af542 and the push; the first gate pass stopped at 26/38 and was rerun in full on 171e0ee3."
],
"mcp_calls": "0",
"api_writes": "2 — (1) relay repository_dispatch POST /repos/objectstack-ai/objectstack/dispatches carrying pr_create, executed as POST /repos/objectstack-ai/objectstack/pulls (draft, #35737) + POST /repos/objectstack-ai/objectstack/issues/35737/assignees (os-tesla), run 44674795328, read-back 6361 bytes sent = stored; (2) post-stamped.mjs comment POST /repos/objectstack-ai/objectstack/issues/34861/comments (this os-dev-report). git push is not a REST write.",
"open_questions": [],
"security_findings": "none",
"out_of_scope_findings": [
"carrier: none · noted, not filed — the 20 s sign-in window and its sentence now exist twice (LoginForm.tsx module constants and the local inside signInWithProvider in createAuthClient.ts); a shared module would remove the drift risk when createAuthClient.ts is next edited (in PR Acceptance notes)."
]
}
Close-out · 2026-11-20T05:21Z: delivered whole by PR #35737 (merged 2026-11-20T05:21Z; L1 ACCEPT 7030778308). A "Sign in with SSO" request that gets no answer is now cancelled after the same 20 seconds as the identity-provider buttons; the page says the sign-in timed out and the email field and button come back for a retry. Nothing remains on this card. pm:dispatched removed now that the card is closed.
Activity
objectstack-fleet commentedon Nov 17, 2026
triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH
First touch (R1197, 14:5xZ): p3 · domain:ui →
pm:queue.Out of focus: login is not a current theme. The effect is real: on a hung SSO-by-email request the button spins until reload. Alone that would be p2, so one grade lower out of focus gives p3. If a customer reports it, re-grade.
objectstack-fleet commentedon Nov 19, 2026
triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH
Triage: lands in
domain:ui·pm:queue; rationale: area:data · Bug · Broken (a hung "Sign in with SSO" request spins forever with the email field disabled; the 20 s watchdog does not cover this path) · SSO users when the IdP hangs, rare · reproduced twice → p2: Broken × rare is p2 on the table, not p3.objectstack-fleet commentedon Nov 19, 2026
repo:objectstack#7 · os-tesla · session_01L9qibyy9KSA69EGZtjDj9c
Claim: PM loop, area d7-A of seat
repo:objectstack#7(seat post #35557) · p2 · executed by anos-devsubagent of the area d7-A thread · 2026-11-19T16:54ZSession:
session_01L9qibyy9KSA69EGZtjDj9cAccount:
os-teslaBranch:
claude/project-thread-aru6wr(this thread can push only its designated branch, a measured platform exception; the dev pushes only after PR #35585, the branch's current PR, has merged)Worktree:
objectstack-issue-34861Domain:
domain:uiSeat:
repo:objectstack#7Area: d7-A
File surface:
ui/packages/auth/src/LoginForm.tsx(the SSO-by-email submit), its test file or a new test file named for this card underui/packages/auth/src/, a changeset (stop on breach; explain in the report).createAuthClient.tsis out of surface: open PR #35575 edits it.Container & model:
S, not mechanical (treated as M),mode:subagent,model: default (no path-derived mandate),effort: highClause-②: no
Metadata-protocol: none
Responsibility:
ui/packages/auth LoginForm.tsx sends POST /api/v1/auth/sign-in/sso as a bare fetch with no timeout, outside the 20 s sign-in watchdog that wraps only signInWithProvider (objectstack) | none | SSO users on the login page when the identity provider route hangs; reproduced twice by QAPre-claim lane:
repo:objectstackarea d7-A (sign-in); pathui/packages/auth/src/LoginForm.tsxisdomain:ui, kept in this lane under area-lease 留道 (fix is clear); thedomain:uiseat is notified, not askedPre-claim deps: no
Blocked-by:; open PR #35575 touchesui/packages/auth/src/AuthProvider.tsxandcreateAuthClient.ts(not the watchdog lines), notLoginForm.tsxPrior rulings read:
check-prior-rulings.mjs --card 34861 --paths ui/packages/auth/src/LoginForm.tsx→ 128 word hits; ADR-0069 D1–D5, ADR-0100 §7, ADR-0106 D6 read for the SSO submit, the watchdog or LoginForm: 1 line (ADR-0069 L261, a verification note on/sign-in/ssorouting), 0 bearing; surface grep 0 hits; thread: noneThread-read: 7014033732
Premise: holds (origin/main:
LoginForm.tsx~L541fetch('/api/v1/auth/sign-in/sso', …)with no signal or timer;SIGN_IN_TIMEOUT_MS/withTimeoutlive only insidesignInWithProviderincreateAuthClient.ts~L1160)Serial constraints cleared: PR #35585 (this branch, merging first); PR #35575 (disjoint file)
objectstack-fleet commentedon Nov 20, 2026
repo:objectstack#7 · os-tesla · session_01L9qibyy9KSA69EGZtjDj9c
os-dev-report
{ "issue": 34861, "status": "done", "branch": "claude/project-thread-aru6wr", "pr": "https://github.com/objectstack-ai/objectstack/pull/35737", "pr_number": 35737, "head_sha": "171e0ee38e0bdc54811f3fd08ee31e7ce1e4d1b4", "session": "session_01L9qibyy9KSA69EGZtjDj9c", "premise_still_valid": true, "summary": "H1 and H2 measured true on origin/main e35cf035: handleSso in ui/packages/auth/src/LoginForm.tsx sent POST /api/v1/auth/sign-in/sso as a bare fetch with no signal, and the 20 s watchdog (SIGN_IN_TIMEOUT_MS / withTimeout) is a local inside signInWithProvider in createAuthClient.ts that only rejects. The SSO fetch (and its body read) now runs under an AbortController aborted after 20 000 ms; on that abort the form shows the same sentence as the provider-button watchdog ('Sign-in timed out — the server did not respond. Please try again.', not localized, same as the provider path) and clears ssoSubmitting, so the button and the SSO email field come back for a retry; the timer is cleared in finally, and a successful answer still navigates to data.url. createAuthClient.ts was not edited: the 20 s value and the sentence are two module constants in LoginForm.tsx (noted in Acceptance notes). Run was interrupted by a usage limit after commit c00af542 and resumed after PR #35585 merged; origin/main a3a74f27 merged in (no rebase), pushed, draft PR opened through the relay.", "tests": "At head 171e0ee3: `pnpm --dir ui exec vitest run packages/auth/` under the lock -> Test Files 48 passed (48), Tests 493 passed (493), VERDICT command-exit 0 (pre-merge c00af542: same 48/493). `pnpm --filter @object-ui/auth type-check` (tsc --noEmit && tsc -p tsconfig.test.json, which includes src/**/*.test.tsx) -> VERDICT command-exit 0. New describe in the shared harness LoginForm.test.tsx: pin (fetch never answers: at 19 999 ms button and email field disabled, signal not aborted, no alert; at 20 000 ms signal aborted, timeout alert, both enabled) + CONTROL (answering fetch sets window.location.href to the IdP URL, signal not aborted after 20 s, button stays pending). Ablation at c00af542 (fix committed first; test imports ../LoginForm from source, no dist on the path): scripts/ablation-replace.mjs replaced the timer body controller.abort() with a no-op and the delay with 1e9 ms (anchor x1->x0, replacement x0->x1, blob 990a9efa->60b77598); pin RED 'expected false to be true' on signal.aborted, CONTROL green; restore blob == HEAD 990a9efa, git diff HEAD empty.", "gates": "Local, derived by `node scripts/pm/dispatch-gates.mjs --commands --repo objectstack-ai/objectstack` at 171e0ee3: 38 families. 37 run at head 171e0ee3, each exit 0 (captured before any pipe), e.g. check:nul-bytes OK, check:published-files ok, check-adr-0087-registration ok, check-changeset-no-major ok, check-empty-changeset ok, check:type-check-coverage ok, check:test-source-alias ok. `pnpm --dir ui exec vitest run scripts/` ran once at c00af542 (pre-merge): exit 1, Test Files 2 failed / 169 passed, 27 tests red, all in date-only-zone-pins-10183.test.ts (drives other ui packages' zone tests) and a closure-budget test ('Budgeted chunk ui-components is ABSENT from the eager closure': no built Console bundle); neither reads ui/packages/auth; read as an unbuilt-workspace reading, not rerun on 171e0ee3, left to CI Test UI. --ran reconciliation (with exit codes): '38 derived famil(ies) accounted for — 38 run, 0 NOT-MEASURED'. overlap-check --branch=HEAD and --pr=35575 at 171e0ee3: VERDICT clean exit 0. PR check-runs at report time on 171e0ee3: Check Changeset, Check PR Size, Governed Surface Queue Guard, Lint (ESLint, PM dispatch-gates, docs & code guards, repo & tooling gates, CI release & engine gates, scoped), PR-body guards, Type Check (workspace, source, consumer, debt ledger): in_progress; skipped by design: 18.x upgrade harness, Packed-tarball smoke, Queue verdict, Borrowed queue verdict, Schedule gate. Test UI / Type Check UI / Lint UI: not yet listed at report time (in_progress is the honest value).", "dogfood_battery": "n/a — no `!` in the PR title and no (narrowing) arm", "line_budget": "+100 / -4 over 3 files (LoginForm.tsx +25/-2, LoginForm.test.tsx +65/-2, changeset +10/-0); net +96 against the ~100 budget", "files_changed": [ ".changeset/34861-sso-sign-in-watchdog.md", "ui/packages/auth/src/LoginForm.tsx", "ui/packages/auth/src/__tests__/LoginForm.test.tsx" ], "deviations": [ "Push lease: the dispatch spelling `--force-with-lease=claude/project-thread-aru6wr` was refused '(stale info)': the shared remote-tracking ref still held the merged #35585 head 0cb06990 while the remote branch had been deleted after merge (ls-remote empty). Pushed with `--force-with-lease=claude/project-thread-aru6wr:` (expect absent), stricter than the dispatch spelling; result '[new branch]' at 171e0ee3.", "Local branch is `issue-34861` (per dispatch), pushed to the claim's designated branch claude/project-thread-aru6wr, not the claude/issue-N-slug form.", "The first local commit was made with `-c user.name=os-tesla`; amended to the configured identity before any push (no pushed effect).", "`pnpm --dir ui exec vitest run scripts/` is red locally at the pre-merge head for an unbuilt-workspace reason and was not rerun on the final head (declared narrowing; CI Test UI judges).", "test:repo and pnpm lint not run locally (CI-owned); the diff touches no repo-project test.", "Run interrupted by a usage limit between commit c00af542 and the push; the first gate pass stopped at 26/38 and was rerun in full on 171e0ee3." ], "mcp_calls": "0", "api_writes": "2 — (1) relay repository_dispatch POST /repos/objectstack-ai/objectstack/dispatches carrying pr_create, executed as POST /repos/objectstack-ai/objectstack/pulls (draft, #35737) + POST /repos/objectstack-ai/objectstack/issues/35737/assignees (os-tesla), run 44674795328, read-back 6361 bytes sent = stored; (2) post-stamped.mjs comment POST /repos/objectstack-ai/objectstack/issues/34861/comments (this os-dev-report). git push is not a REST write.", "open_questions": [], "security_findings": "none", "out_of_scope_findings": [ "carrier: none · noted, not filed — the 20 s sign-in window and its sentence now exist twice (LoginForm.tsx module constants and the local inside signInWithProvider in createAuthClient.ts); a shared module would remove the drift risk when createAuthClient.ts is next edited (in PR Acceptance notes)." ] }objectstack-fleet commentedon Nov 20, 2026
repo:objectstack#7 · os-tesla · session_01L9qibyy9KSA69EGZtjDj9c
Close-out · 2026-11-20T05:21Z: delivered whole by PR #35737 (merged 2026-11-20T05:21Z; L1 ACCEPT 7030778308). A "Sign in with SSO" request that gets no answer is now cancelled after the same 20 seconds as the identity-provider buttons; the page says the sign-in timed out and the email field and button come back for a retry. Nothing remains on this card.
pm:dispatchedremoved now that the card is closed.