Skip to content

feat: SMS verification probing throttle, org slug rename logout fix - #883

Merged
fclairamb merged 14 commits into
feat/todos-2026-11-14from
feat/todos-2026-11-15
Nov 15, 2026
Merged

fclairamb merged 14 commits into
feat/todos-2026-11-14from
feat/todos-2026-11-15

Conversation

@fclairamb

Copy link
Copy Markdown
Owner

Stacked on #879: merge it first.

Closes fclairamb/solidping-business#79
Closes fclairamb/solidping-business#81

Still pending

  • specs/todos/2026-11-15-01-sms-verification-destination-probing-throttle.md
  • specs/todos/2026-11-15-02-org-slug-rename-logs-user-out.md

🤖 Generated with Claude Code

@fclairamb fclairamb added autopilot frozen Batch PR under review: takes only its own fixes, new work goes to the next batch labels Nov 15, 2026
fclairamb and others added 12 commits November 15, 2026 10:22
A burst of SP_SMS_ALLOWED_COUNTRIES refusals (3 within 10 minutes) from one
organization flags it for an hour: one sms.destination_probing operator notice
(subscribable, localized), an aggregate ERROR log, and a flag the verification
flow uses to block sends. Individual refusals drop to WARN and log
destinationPrefix instead of the misleading countryCode attribute.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…lagged orgs

VerifyContact now refuses, with the usual rate-limited error, a new
destination past 5 distinct ones per organization per hour (2 when the
requesting account is younger than 24 h), and every send of an organization
flagged for destination probing for one hour. Re-sending to a counted
destination does not use a slot.

Closes fclairamb/solidping-business#79

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…f destinations: no cross-contact throttle, no ops alert on repeated allow-list refusals

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Right after a slug rename the owner's tab still shows the old slug while it
adopts the re-minted session, and OrgLayout's guard asked to switch to it.
switch-org answered 401 (org not found), the client's refresh-and-retry got a
second 401 and handleResponse sent the owner to login?session_expired=true.

Refs fclairamb/solidping-business#81

Co-Authored-By: Claude Opus 5.5 <[email protected]>
adoptRenamedOrgSession now counts as an org switch in flight until the
navigation to the new slug is done, so OrgLayout no longer POSTs switch-org
for the old slug from the URL it is leaving. It cancels the old slug's
queries before the swap, renames the switcher entry in place and drops the
old slug's cache after navigating.

A session epoch (bumped whenever the refresh token is replaced or cleared)
lets a refresh that spent the previous refresh token drop its result instead
of overwriting the new session or escalating its 401, and handleResponse no
longer clears the session on a 401 for a request sent with a token that is
no longer the stored one (SESSION_CHANGED).

Refs fclairamb/solidping-business#81

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…light

Reproduced on the pre-fix build: two POST /auth/switch-org 401s for the old
slug, then login?session_expired=true on the new slug, as in the report.

Refs fclairamb/solidping-business#81

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@fclairamb
fclairamb merged commit c05d744 into feat/todos-2026-11-14 Nov 15, 2026
3 checks passed
@fclairamb
fclairamb deleted the feat/todos-2026-11-15 branch November 15, 2026 10:16
fclairamb added a commit that referenced this pull request Nov 15, 2026
…ate order and E2E races (#885)

Batch-gate fixes found after #883 (SMS destination probing throttle, org
slug rename session) had already been merged to main through #879. Both
specs are on main; these commits are not.

## What changed
- **Check worker:** a runner wakes the fetcher the first time it becomes
available, so a job freed by a worker restart is claimed at once instead
of after the one-minute fallback poll (fixes the flaky
`TestRestartedWorkerReclaimsItsOwnLeases`).
- **Check detail:** the Disable toggle stays disabled until the
open-incident count has loaded; before, a quick click disabled the check
with no dialog and left its incident open. New E2E in
`check-disable-resolve-incidents.spec.ts`.
- **ui-state:** writes to one key now run in call order, so the GitHub
star prompt's "shown" write can no longer erase "dismissed" (the prompt
came back on other devices). New unit test.
- **Organization profile:** after "Use an external URL instead", a late
`/auth/me` refresh no longer switches the logo field back to "Uploaded
file". New unit test.
- **E2E races fixed** (assertions unchanged): availability-strip tooltip
hover (page scrolled under the hover and Radix closed the tooltip),
chart-dot clicks before the header settled, the rename test's forced 401
now on `GET /auth/me` only.

## Gate
`make lint-back test` exit 0 (284 packages, 0 lint issues); dash0
`typecheck:e2e`, `lint:e2e`, `test:unit` (2925) exit 0; full Playwright
suite 1037/0/15, 0 flaky.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

---------

Co-authored-by: Claude Sonnet 5.5 <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

automerge autopilot frozen Batch PR under review: takes only its own fixes, new work goes to the next batch

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant