Pro: restore the Session Pro gate, off by default - #797
Open
mpretty-cyro wants to merge 1 commit into
Open
mpretty-cyro wants to merge 1 commit into
mpretty-cyro wants to merge 1 commit into
Conversation
This was referenced Sep 28, 2026
Brings back the sessionProEnabled feature (identifier and launch env var "sessionPro", default off) removed in 97bdb22. Off, this account can neither use nor buy Pro and nothing is restricted for lacking it; other people's Pro (badges, message features) is still honoured. One commit so it reverts cleanly. - With Pro off SessionProManager starts only work about other users: polling the revocation list and re-rendering their badges when proofs lapse. The mock observer always runs, so mocks and switching Pro on apply at runtime. None of our own Pro tasks start, and our own proof is never cleared. - The remaining gates sit on entry points reachable from outside the manager: projecting config into state, refreshProState, the access accessor (and its proof mock) and the CTA, which returns a new ProCTAOutcome.suppressedProDisabled. - The composer upsell badge and both pin gates now read state that is false when Pro is off, so they need the flag explicitly. - Settings drops the Pro row when off, matching Android and Desktop.
mpretty-cyro
force-pushed
the
feature/restore-pro-gate
branch
from
September 28, 2026 21:02
f1d4288 to
b482697
Compare
mpretty-cyro
marked this pull request as ready for review
September 28, 2026 23:28
Bilb
approved these changes
Sep 30, 2026
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.
Restores the Session Pro master gate removed in 97bdb22 (#729), off by default while the Pro release is delayed.
Toggle: Developer Settings → Session Pro → Enable Session Pro, or the launch environment variable
sessionPro=true(what the Appium suite sets).What the gate does when off (the default)
Same rule on iOS, Android and Desktop. One commit per client so each reverts cleanly when Pro ships.
Implementation notes
SessionProManagerwith Pro off starts only work about other users — polling the revocation list and re-rendering badges when their proofs lapse. None of this account's Pro tasks start (StoreKit, proof renewal, status fetches, user-expiry wakes), and clearing our own proof on revocation is gated. Gates remain only on entry points reachable from outside the manager:updateWithLatestFromUserConfig,refreshProState,currentUserHasProAccess(also covers the proof mock) andshowSessionProCTAIfNeeded.showSessionProCTAIfNeededreturns a newProCTAOutcome.suppressedProDisabled, so callers take their non-upsell path.falsewhen Pro is off, so they check the flag explicitly — otherwise the badge would show and the pin limit would be enforced.canProfileAnimatereturnstrue.Testing
SessionProGateSpec(12 cases, each flag-off case has a flag-on control): access, character limit, own vs other user's profile features, animation, CTA outcome, expiring-CTA info completing initialisation.xcodebuild test -scheme Session(serial) on the currentdevbase: 2249 passed, 0 failed.Appium results (2026-09-29, overnight)
Method: every failure was re-run on a pre-gate build (this branch's parent, built separately). Each build was probed for a literal only the gate adds, alongside a control literal present in both. "Gate-caused" means it fails with the gate, passes without it, and holds under an alternating tie-break on fresh devices.
Tested
f1d42889fdagainst pre-gate95bca7836a:devand out of scope here.Verdict: no gate-caused regression.
Since those runs: the revocation list is now also fetched while Pro is off (architect-approved), with clearing our own revoked proof still gated. Unit tests pass on the current head; a targeted Appium re-check of the revocation fetch and the badge is running.
Companion PRs
Same gate and rule on each client: #797 · session-foundation/session-android#2226 · session-foundation/session-desktop#2018