Repository navigation
feat: SMS verification probing throttle, org slug rename logout fix - #883
Merged
Merged
Conversation
…robing Covers fclairamb/solidping-business#79. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Covers fclairamb/solidping-business#81. Co-Authored-By: Claude Opus 5.5 <[email protected]>
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]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
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]>
…the owner out Closes fclairamb/solidping-business#81 Co-Authored-By: Claude Opus 5.5 <[email protected]>
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]>
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.
Stacked on #879: merge it first.
Closes fclairamb/solidping-business#79
Closes fclairamb/solidping-business#81
Still pending
🤖 Generated with Claude Code