Skip to content

fix(replay): deterministic reconstruction baseline (no wall-clock leak)#4

Merged
gitfeber merged 1 commit into
mainfrom
fix/replay-deterministic-session-start
Jun 7, 2026
Merged

fix(replay): deterministic reconstruction baseline (no wall-clock leak)#4
gitfeber merged 1 commit into
mainfrom
fix/replay-deterministic-session-start

Conversation

@gitfeber
Copy link
Copy Markdown
Owner

@gitfeber gitfeber commented Jun 7, 2026

reconstruct used createEmptyTelemetryState() (Date.now()) as the full-telemetry replacement baseline, so two rebuilds of the same log could differ by 1ms in stats.sessionStartedAt. Use a stable 0 baseline so reconstruction is byte-identical. Fixes flaky reconstruct.test.ts and the red CI/node on main.

reconstruct used createEmptyTelemetryState() (Date.now()) as the full-telemetry
replacement baseline, so two rebuilds of the same log could differ by 1ms in
stats.sessionStartedAt. Use a stable 0 baseline so reconstruction is byte-identical.
Fixes flaky reconstruct.test.ts and the red CI/node on main.
@gitfeber gitfeber merged commit 3977fc1 into main Jun 7, 2026
2 checks passed
gitfeber added a commit that referenced this pull request Jun 8, 2026
…start

fix(replay): deterministic reconstruction baseline (no wall-clock leak)
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.

1 participant