Skip to content

test: pin the sign-out redirect in logout.ts - #388

Merged
neuromechanist merged 2 commits into
stagingfrom
fix/logout-redirect-guard
Sep 30, 2026
Merged

neuromechanist merged 2 commits into
stagingfrom
fix/logout-redirect-guard

Conversation

@neuromechanist

Copy link
Copy Markdown
Contributor

What

Two follow-ups from the prod-safety review of the 0.2.24 promotion (a Sonnet review of main...staging, verdict GO):

  • test/logout-redirect.test.ts: a source guard that both HTML branches of logout.ts redirect to SIGNED_OUT_PATH and none to /. host.test.ts only pinned the constant, so reverting either Location to "/" passed every test. Checked by mutation: reverting the production branch fails both assertions.
  • CHANGELOG: the Sign out to /login, not a cross-host hop #385 entry now says the Chrome cause is inferred from its documented form-action behavior and was not reproduced in a signed-in browser, as the PR itself stated.

Review findings not changed

  • parseCatalogTimestamp would throw on a non-string latest_version_at: intentional. The API schema types it string | null, the helper is typed the same way, and the neighboring formatters make the same assumption.
  • The nm000279 fixture's time of day differs from live by seconds; the calendar date is the same.
  • The stale git push hint in prepare-release.yml and the missing rollback section: filed as Release docs: stale push hint and no rollback section #387.

Tested

  • bun run test test/logout-redirect.test.ts passes; the mutation fails both tests.
  • bun run lint passes.

@cloudflare-workers-and-pages

Copy link
Copy Markdown

Deploying nemar-website with  Cloudflare Pages  Cloudflare Pages

Latest commit: e5c5456
Status: ✅  Deploy successful!
Preview URL: https://3af62e96.nemar-website.pages.dev
Branch Preview URL: https://fix-logout-redirect-guard.nemar-website.pages.dev

View logs

@neuromechanist
neuromechanist merged commit a7adb87 into staging Sep 30, 2026
5 checks passed
@neuromechanist
neuromechanist deleted the fix/logout-redirect-guard branch September 30, 2026 19:23
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