Skip to content

🤖 tests: PauseAtBudgetPhone frame fits the test-runner window - #7550

Merged
ThomasK33 merged 2 commits into
mainfrom
fix/transcript-reveal-phone-story
Oct 26, 2026
Merged

ThomasK33 merged 2 commits into
mainfrom
fix/transcript-reveal-phone-story

Conversation

@ThomasK33

Copy link
Copy Markdown
Member

Fixes #7517

Summary

App/TranscriptReveal › PauseAtBudgetPhone now draws the app in a phone frame no taller than the test-runner window (min(844px, 100vh)). The story no longer fails with expected 40.296875 to be less than or equal to 1 on slow merge-queue runners. The 1 px read-row assertion, its pre-click baseline and the play steps do not change.

Background

Cause analysis: #7517 (comment). Perf owner agreement: #7517 (comment).

  1. The old 390 x 844 px frame overflowed the 720 px test-runner window, so the page's outer containers could scroll by up to 124 px.
  2. On a slow runner they were still scrolled when the play measured the read row. The "Load older messages" click focused the button, and the outer containers scrolled back during the reveal.
  3. The read row moved 40.3 px on screen with no transcript change. The load-older pin compares screen positions, so it could not undo the move.
  4. The desktop story has no frame and always passed.

Validation

I ran Storybook test-runner on this story file, using Chromium CPU throttling (a local-only CDP Emulation.setCPUThrottlingRate hook, not committed):

Build Unthrottled Throttled 4x / 6x / 8x
main de3349c 2 of 2 pass 5 of 5 fail, each expected 40.296875 to be less than or equal to 1
this PR pass 5 of 5 pass (4x, 8x, 4x, 8x, 6x)
this PR + load-older pin turned off (scratch edit in ChatPane.tsx) PauseAtBudget and PauseAtBudgetPhone fail, 39.7 px both fail at 4x, 39.7 px

The last row is the mutation check: a real read-row jump still fails both stories, so the reveal-budget guard from #5031 still holds.

Out of scope (tracked)

Risks

Low. The change is test-only: one story's decorator. Pixel snapshots are off for this story. TailFirstSwitchPhone keeps the 844 px frame and its Pixel snapshots.


Generated with xum • Model: anthropic:claude-opus-5-5 • Thinking: high • Cost: $288.59

@ThomasK33

Copy link
Copy Markdown
Member Author

@codex review

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 26, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-26T10:36:17.027547Z 1ed7d2f Manual request
🔒 Security Review ✅ Completed 2026-10-26T10:36:33.933045Z 1ed7d2f Manual request
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@ThomasK33

Copy link
Copy Markdown
Member Author

Perf owner: cleared at head b75ae51ea7. Story file only (App.transcriptReveal.stories.tsx +23/-1): PauseAtBudgetPhone uses a frame min(844px, 100vh) tall, as agreed in #7517 (issuecomment-6413694883). The 1 px assertion, its baseline and the play steps are unchanged, and the PR body has the mutation proof (pin off still fails at 39.7 px), so the #5031 guard holds. Follow-ups are filed: #7549 (pin measures screen positions) and #7548 (DetachedPastCap timeouts). No production code.


Generated with xum • Model: anthropic:claude-opus-5-5 • Thinking: high

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Keep it up!

Reviewed commit: b75ae51ea7

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@chatgpt-codex-connector

Copy link
Copy Markdown

🛡️ Codex Security Review · Automatically triggered

Security review completed. No security issues were found in this pull request.

Reviewed commit: b75ae51ea7

View security finding report

Only the user who started this review can view the report in Codex.

ℹ️ About Codex security reviews in GitHub

This is an experimental Codex feature. Security reviews are triggered when:

  • You comment "@codex security review"
  • A regular code review gets triggered (for example, "@codex review" or when a PR is opened), and you’re opted in so security review runs alongside code review

Once complete, Codex will leave suggestions, or a comment if no findings are found.

@ThomasK33

Copy link
Copy Markdown
Member Author

@codex review

Comment-only change after an independent check: the decorator comment now says the frame also gets shorter and cites the #7517 trace (1ed7d2f).

@ThomasK33

Copy link
Copy Markdown
Member Author

Perf owner (8e18f4aada): please re-clear at head 1ed7d2f9f1b20113e0fc638f80a9477f9280da3e. git diff b75ae51ea7 1ed7d2f9f1 changes only the doc comment above IPhone16eWindowDecorator (+6/-5). An independent check found that the old comment overclaimed: it said the frame "drops only the harness scroll", but the frame also gets shorter. The new comment says that and cites the #7517 trace. No code changed.

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Can't wait for the next one!

Reviewed commit: 1ed7d2f9f1

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@chatgpt-codex-connector

Copy link
Copy Markdown

🛡️ Codex Security Review · Automatically triggered

Security review completed. No security issues were found in this pull request.

Reviewed commit: 1ed7d2f9f1

View security finding report

Only the user who started this review can view the report in Codex.

ℹ️ About Codex security reviews in GitHub

This is an experimental Codex feature. Security reviews are triggered when:

  • You comment "@codex security review"
  • A regular code review gets triggered (for example, "@codex review" or when a PR is opened), and you’re opted in so security review runs alongside code review

Once complete, Codex will leave suggestions, or a comment if no findings are found.

@github-actions

Copy link
Copy Markdown
Contributor

🟢 e2e stories (Haiku): 14 passed

27 agent steps · 12 replayed from cache · 15 model calls · 45.9k tokens (26% cached)
Spend: $0.09 of the $1.00 cap (proxy ledger)

All 14 tests in 9 files
Test Agent Time
🟢 chatRestart.e2e.ts · 1 passed 2 steps · 1 call 7.1s
🟢 a chat survives a restart of the server 2 steps · 1 call 7.1s
🟢 compaction.e2e.ts · 1 passed 3 steps · 1 call 9.4s
🟢 /compact replaces the old chat with a summary 3 steps · 1 call 9.4s
🟢 pluginTrustRestart.e2e.ts · 1 passed 4 steps · 2 calls 9.4s
🟢 a trusted plugin hook stays trusted after the server restarts 4 steps · 2 calls 9.4s
🟢 settingsRoundTrip.e2e.ts · 1 passed 3 steps · 1 call 11.6s
🟢 a chat survives trips through Settings 3 steps · 1 call 11.6s
🟢 sidebarPerWorkspace.e2e.ts · 1 passed 4 steps · 1 call 3.8s
🟢 a new workspace starts with its right sidebar collapsed while another keeps it open 4 steps · 1 call 3.8s
🟢 smoke.e2e.ts · 1 passed 2 steps · 1 call 6.8s
🟢 the agent opens the playground workspace 2 steps · 1 call 6.8s
🟢 streamErrors.e2e.ts · 1 passed 1 step · 1 call 6.8s
🟢 stream errors show in the chat, and the chat recovers 1 step · 1 call 6.8s
🟢 todoNudge.e2e.ts · 1 passed 2 steps · 1 call 5.4s
🟢 the agent finishes open TODO items after the turn-end nudge 2 steps · 1 call 5.4s
🟢 touchAlignment.e2e.ts · 6 passed 6 steps · 6 calls 26.7s
🟢 the Settings close button is level with the title on a touch screen 390px wide 1 step · 1 call 3.7s
🟢 the Settings close button is level with the title on a touch screen 768px wide 1 step · 1 call 5.1s
🟢 Backup settings checkboxes are small and level with their labels on a touch phone 1 step · 1 call 8.9s
🟢 the heartbeat checkbox is small and level with its label on a touch phone 1 step · 1 call 3.3s
🟢 a reply's model and time stay on one line on a touch phone 1 step · 1 call 2.9s
🟢 the workspace actions menu stays on the title row on a touch phone 1 step · 1 call 2.8s

e2e 0.20.0 · 1m 30s · web · run artifacts

🟢 e2e Electron stories (Haiku): 3 passed

3 agent steps · 3 model calls · 7.9k tokens (32% cached)
Spend: $0.01 of the $1.00 cap (proxy ledger)

All 3 tests in 3 files
Test Agent Time
🟢 electron/deepLink.e2e.ts · 1 passed 1 step · 1 call 7.5s
🟢 a deep link of a second launch starts a chat in the running app 1 step · 1 call 7.5s
🟢 electron/menuBar.e2e.ts · 1 passed 1 step · 1 call 5.7s
🟢 the workspace menu bar is the desktop title bar 1 step · 1 call 5.7s
🟢 electron/smoke.e2e.ts · 1 passed 1 step · 1 call 5.0s
🟢 Xum Electron opens the playground workspace 1 step · 1 call 5.0s

e2e 0.20.0 · 20.2s · electron · run artifacts

🟢 e2e agent repros (Haiku): no tests selected

Spend: $0.00 of the $1.00 cap (proxy ledger)

e2e 0.20.0 · 5.3s · 2 targets (web, phone) · run artifacts

@ThomasK33

Copy link
Copy Markdown
Member Author

Perf owner: clearance carried forward to head 1ed7d2f9f1. git diff b75ae51ea7 1ed7d2f9f1 changes only the doc comment of the story decorator in App.transcriptReveal.stories.tsx. No code change.


Generated with xum • Model: anthropic:claude-opus-5-5 • Thinking: high

@ThomasK33
ThomasK33 added this pull request to the merge queue Oct 26, 2026
Merged via the queue into main with commit 7d2498b Oct 26, 2026
33 of 34 checks passed
@ThomasK33
ThomasK33 deleted the fix/transcript-reveal-phone-story branch October 26, 2026 11:09
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.

🤖 tests: App.transcriptReveal PauseAtBudgetPhone story flakes in the merge queue

1 participant