Skip to content

fix(session): allow max safe event revisions - #773

Open
nightcityblade wants to merge 1 commit into
modem-dev:mainfrom
nightcityblade:fix/issue-762
Open

fix(session): allow max safe event revisions#773
nightcityblade wants to merge 1 commit into
modem-dev:mainfrom
nightcityblade:fix/issue-762

Conversation

@nightcityblade

Copy link
Copy Markdown

What Problem This Solves

Review event IDs rejected valid 16-digit state revisions, including Number.MAX_SAFE_INTEGER, even though publication addresses accept all non-negative safe integers.

Why This Change Was Made

The event ID grammar now accepts up to 16 digits and continues to use Number.isSafeInteger as the authoritative numeric bound.

User Impact

SSE review event IDs now round-trip across the full supported revision range while unsafe and oversized revisions remain rejected.

Evidence

  • bun test src/session/reviewEventProtocol.test.ts (21 passed)
  • bunx oxfmt --check src/session/reviewEventProtocol.ts src/session/reviewEventProtocol.test.ts
  • bunx oxlint src/session/reviewEventProtocol.ts src/session/reviewEventProtocol.test.ts --deny-warnings
  • bun run typecheck

Fixes #762

@greptile-apps

greptile-apps Bot commented Aug 16, 2026

Copy link
Copy Markdown
Contributor

PR author is not in the allowed authors list.

@vercel

vercel Bot commented Aug 16, 2026

Copy link
Copy Markdown

Someone is attempting to deploy a commit to the Modem Team on Vercel.

A member of the Team first needs to authorize it.

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.

Allow every safe publication revision in review event IDs

1 participant