perf: reveal stable transcripts sooner - #46
Merged
wolfiesch merged 3 commits intoJul 18, 2026
Conversation
There was a problem hiding this comment.
Pull request overview
Reduces the cold-mount “warm overlay” reveal latency for the transcript timeline by tightening the stability contract from 8 to 4 consecutive ready frames, while preserving the existing readiness gates (geometry stability, tail alignment, and rows-in-view). It also expands UI benchmark phase reporting to include tail-alignment boundaries and updates documentation/tests to codify the new contract.
Changes:
- Reduce
REVEAL_STABILITY_FRAMESfrom 8 → 4 inTranscriptTimelinewhile keeping the same readiness criteria. - Add tail-alignment benchmark phases and corresponding Playwright/E2E phase instrumentation.
- Update performance documentation and interaction/motion contract test to reflect the four-frame reveal contract.
Reviewed changes
Copilot reviewed 5 out of 5 changed files in this pull request and generated 1 comment.
Show a summary per file
| File | Description |
|---|---|
| scripts/perf/ui.mjs | Adds new phase sample buckets and report metrics for tail alignment timing boundaries. |
| e2e/remote-app.spec.ts | Instruments tail alignment timing in the cold-mount benchmark scenario and writes new phase outputs. |
| docs/PERFORMANCE.md | Documents tail-alignment phase and the four-consecutive-ready-frames reveal contract. |
| apps/web/test/interaction-motion.test.ts | Updates the contract test to assert the four-frame reveal stability constant. |
| apps/web/src/features/transcript/TranscriptTimeline.tsx | Changes reveal stability frame requirement from 8 to 4 with updated rationale comments. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
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.
Summary
Matched VPS A/B
Ten repetitions per side on the same Node 24 VPS and 10k-history fixture:
Verification
pnpm checkBroad-suite boundary: web/client packages passed. Untouched desktop suites remain environment-blocked locally by an incomplete Electron install and on the VPS by non-hermetic OMP discovery tests that encounter its real
/usr/local/bin/omp.