Skip to content

feat(replay): Paginate replay segment downloads#910

Merged
betegon merged 2 commits intomainfrom
codex/replay-segment-pagination
May 4, 2026
Merged

feat(replay): Paginate replay segment downloads#910
betegon merged 2 commits intomainfrom
codex/replay-segment-pagination

Conversation

@dcramer
Copy link
Copy Markdown
Member

@dcramer dcramer commented May 4, 2026

Paginate replay recording segment downloads so long replays are fully available to replay view and future replay inspection commands. The API caps recording segment pages at 100 segments, so the helper now follows Link cursors and stops when the replay metadata count is satisfied.

Replay API Compatibility

Remove ota_updates from the replay list field set because the live replay index endpoint rejects it as invalid. The replay schemas still tolerate ota_updates when a payload includes it.

Local Smoke Testing

Add bun run cli as a lightweight runner for live CLI checks without regenerating docs and SDK first.

Validated with focused replay and explore tests, typecheck, lint, and a live read-only smoke test on a 471-segment replay that fetched five segment pages: 100, 100, 100, 100, 71.

Refs GH-907

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented May 4, 2026

PR Preview Action v1.8.1

QR code for preview link

🚀 View preview at
https://cli.sentry.dev/_preview/pr-910/

Built to branch gh-pages at 2026-05-04 17:20 UTC.
Preview will be ready when the GitHub Pages deployment is complete.

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented May 4, 2026

Codecov Results 📊

6662 passed | Total: 6662 | Pass Rate: 100% | Execution Time: 0ms

📊 Comparison with Base Branch

Metric Change
Total Tests 📈 +2
Passed Tests 📈 +2
Failed Tests
Skipped Tests

All tests are passing successfully.

✅ Patch coverage is 85.00%. Project has 13625 uncovered lines.
❌ Project coverage is 76.48%. Comparing base (base) to head (head).

Files with missing lines (1)
File Patch % Lines
src/lib/api/replays.ts 84.21% ⚠️ 6 Missing
Coverage diff
@@            Coverage Diff             @@
##          main       #PR       +/-##
==========================================
- Coverage    76.63%    76.48%    -0.15%
==========================================
  Files          303       303         —
  Lines        57782     57929      +147
  Branches         0         0         —
==========================================
+ Hits         44276     44304       +28
- Misses       13506     13625      +119
- Partials         0         0         —

Generated by Codecov Action

@dcramer dcramer force-pushed the codex/replay-segment-pagination branch from 987cb8d to c1443ef Compare May 4, 2026 16:24
Fetch recording segments with per_page=100 and follow link cursors so long replays are fully available to replay view and later inspection commands.

Drop the stale ota_updates replay list field after the live API rejected it, and add a lightweight bun run cli script for local smoke tests.

Refs GH-907

Co-Authored-By: OpenAI Codex <noreply@openai.com>
@dcramer dcramer force-pushed the codex/replay-segment-pagination branch from c1443ef to 12d6b93 Compare May 4, 2026 16:33
@dcramer dcramer marked this pull request as ready for review May 4, 2026 16:59
@betegon betegon merged commit ea6c53a into main May 4, 2026
26 checks passed
@betegon betegon deleted the codex/replay-segment-pagination branch May 4, 2026 17:25
@BYK BYK changed the title [codex] Paginate replay segment downloads feat(replay): Paginate replay segment downloads May 4, 2026
betegon added a commit that referenced this pull request May 4, 2026
Paginate replay recording segment downloads so long replays are fully
available to replay view and future replay inspection commands. The API
caps recording segment pages at 100 segments, so the helper now follows
Link cursors and stops when the replay metadata count is satisfied.

**Replay API Compatibility**

Remove `ota_updates` from the replay list field set because the live
replay index endpoint rejects it as invalid. The replay schemas still
tolerate `ota_updates` when a payload includes it.

**Local Smoke Testing**

Add `bun run cli` as a lightweight runner for live CLI checks without
regenerating docs and SDK first.

Validated with focused replay and explore tests, typecheck, lint, and a
live read-only smoke test on a 471-segment replay that fetched five
segment pages: 100, 100, 100, 100, 71.

Refs GH-907

---------

Co-authored-by: OpenAI Codex <noreply@openai.com>
Co-authored-by: Miguel Betegón <miguelbetegongarcia@gmail.com>
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.

2 participants