Skip to content

test(browser): wait for the reader to leave the bottom and hold the demo turn over the prompt card - #4178

Merged
devswha merged 1 commit into
mainfrom
fix/q1218-group-dg
Nov 18, 2026
Merged

devswha merged 1 commit into
mainfrom
fix/q1218-group-dg

Conversation

@devswha

@devswha devswha commented Nov 18, 2026

Copy link
Copy Markdown
Owner

Summary

Browser scripts quarantined until 2026-12-18 that failed their first attempt in CI on transcript position and prompt
card readiness. Test-only.

  • chat-history-browser-qa (entry removed): appended messages before the reader had left the bottom. It now waits for
    the app to show Jump to latest before appending, then requires New messages.
  • prompt-dock-demo-regression (entry removed): the unrelated demo turn's notification could cover the prompt card.
    The script holds that demo turn, and releases the mock answer only after the focus and busy assertions.
  • file-viewer-regression (entry kept): link activation now waits for the link in the selected transcript, and the
    focus case focuses and activates it in one task. A separate CI timeout on heading 3121 in the progressive renderer is
    still unexplained, so its entry stays for now.

chat-virtual-browser-qa from the same group stays quarantined: CI shows a likely product cause (the chat counting the
virtual list's late move as the reader's own scroll), raised with the maintainer.

Validation

  • CI runner image (herdr-ci-runner:local, BROWSER_RETRY=0), 10 passes: chat-history, prompt-dock and file-viewer
    all 10/10.
  • bun run check fast: green.
  • Not run: the other browser scripts (CI runs them on this PR).

chat-history-browser-qa: Six recovered attempts rendered the appended
fallback line but timed out on .chat-new-messages (for example, job
134772907301). Writing scrollTop and dispatching scroll could race the
fallback's initial follow and left no proof that the app classified the
move as reader input. Start at the end, wheel up, and wait for Jump to
latest before appending. Require the actual New messages button.

chat-virtual-browser-qa: All seven failures recorded a 61 px gap and
the away indicator. ChatView.tsx:2089-2123 can classify the virtual list's
late move to its shorter end as the reader leaving. The regression
checks that it never does that; leave its assertion and quarantine intact.

file-viewer-regression: The historical :53/:56 timeouts waited for the
end-of-chat presentation marker. Opening a file only needs the link in
the selected transcript. Wait for that target and preserve focus on it
where focus return is under test. Job 133640837600 separately timed out
on heading 3121 of long.md. The log does not explain why progressive
Markdown stopped short or was too slow; leave that check and quarantine.

prompt-dock-demo-regression: CI found droplet-title above the short
phone's card (job 132633123101). Hold the demo's unrelated opening turn
at startup so its timed completion cannot cover the card. The busy check
also failed (job 134790748149) after its 600 ms delay elapsed during
focus; hold the fixture answer until the focus and busy checks finish.

Both requested local checks passed. Browser validation is caller-owned.

Co-authored-by: sisyphus-dev-ai <[email protected]>
@coderabbitai

coderabbitai Bot commented Nov 18, 2026 •

Copy link
Copy Markdown

Explain Change →

No actionable comments were generated in the recent review.

Summary

Summary by CodeRabbit

  • Tests
    • Updated browser checks to verify scrolling, transcript-link activation, and delayed-answer focus behavior through realistic interactions.
    • Removed expired quarantine entries for two browser regression checks.

Three browser regression scripts change how tests trigger scrolling, activate transcript links, and control delayed answers. The CI quarantine registry removes entries for the chat-history and prompt-dock scripts.

Changes: Browser regression checks

Layer / File(s) Summary
Chat-history scroll regression
scripts/chat-history-browser-qa.ts, scripts/ci-browser-quarantine.ts
The scroll test uses hover and mouse-wheel input to reach “Jump to latest.” The quarantine registry removes entries for the chat-history and prompt-dock scripts.
Transcript link activation
scripts/file-viewer-regression.ts
File-viewer checks scope links to the current transcript and activate them without waiting for the chat frame to settle.
Prompt-dock delayed answer control
scripts/prompt-dock-demo-regression.ts
The mock transport can hold an answer on a promise gate. The test releases it after checking pending state and focus movement.

Estimated code review effort: 2 (Simple) | ~12 minutes

Change: Other

Possibly related issues

  • Issue 4026 reports flaky and failed CI attempts for these browser regression scripts. This PR changes the chat-history, file-viewer, and prompt-dock scripts, but does not cover every script listed in the issue.

Suggested reviewers: jpcarranza94

Merge Risk: Minimal · up to 55207

This PR changes only browser regression test scripts and removes two quarantine entries. It has no production behavior impact and no known merge-blocking risk.

Pre-merge checks: Passed 4

Check name Status Explanation
Title check Passed The title names the test-only browser-test change and the two main pieces of it: waiting for the reader to leave the bottom and holding the demo turn over the prompt card. It is specific and matches t…
Description check Passed The description follows the template's Change and Validation sections. The Change section explains the problem (scripts failing their first CI attempt on transcript position and prompt card readiness)…
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Full details: Title check

Explanation

The title names the test-only browser-test change and the two main pieces of it: waiting for the reader to leave the bottom and holding the demo turn over the prompt card. It is specific and matches the changeset, which covers chat-history, prompt-dock, and file-viewer browser scripts plus the quarantine registry update. It is long (98 characters) and does not mention the quarantine removal, but it is still accurate.

Full details: Description check

Explanation

The description follows the template's Change and Validation sections. The Change section explains the problem (scripts failing their first CI attempt on transcript position and prompt card readiness), the behavior change for each script, and the quarantine entries removed or kept. The Validation section lists the CI runner image, the 10-pass results, and the green fast check, and notes which browser scripts were not run. It does not link an issue, but the template asks for an issue link only for features, and this is a test-only change.

Finishing Touches

Generate unit tests (beta)

  • Commit to this branch
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

Recent review info

Run configuration

Commits

Reviewing files that changed from the base of the PR and between 9e2945e and 552072a.

Files selected for processing: 4

  • scripts/chat-history-browser-qa.ts
  • scripts/ci-browser-quarantine.ts
  • scripts/file-viewer-regression.ts
  • scripts/prompt-dock-demo-regression.ts
Files with no reviewable changes: 1

  • scripts/ci-browser-quarantine.ts

Included review availability: This review used your included allowance. Your plan provides up to 8 included reviews per hour; 0 remain after this review.

@devswha
devswha merged commit a95897a into main Nov 18, 2026
16 checks passed
@devswha

devswha commented Nov 18, 2026

Copy link
Copy Markdown
Owner Author

Merged through pr-merge at head 552072a23. Seen before the merge was asked for: required checks green, no unresolved thread, no conflict, no hold, main not red, no release in progress. CodeRabbit reviewed this head.

Test-only: chat-history waits for Jump to latest before appending and prompt-dock holds the unrelated demo turn over the prompt card (both entries removed); file-viewer's link activation waits for the selected transcript's link (entry kept). Reviews: dori review CLEAR at 552072a; CodeRabbit on this PR. Merged by the lane on the lead's standing word (t10k). Evidence: chat-history, prompt-dock and file-viewer 10/10 in the CI runner image, check fast green.

@devswha
devswha deleted the fix/q1218-group-dg branch November 18, 2026 20:00
devswha added a commit that referenced this pull request Nov 18, 2026
…at their causes (#4186)

Points two browser quarantine entries at issues holding their causes, on
the lead's word (t10k), instead of the umbrella #4026:

- `gjc-status-browser-regression` -> #4184 (the browser sometimes never
draws a DONE pane idle in CI; the timeout diagnostic from #4154 names
the state on the next failure).
- `file-viewer-regression` -> #4185 (heading 3121 times out in the
progressive renderer in CI; its link-activation race was fixed in
#4178).

The end date stays 2026-12-18: QUARANTINE_MAX_DAYS is 30. Test-only.

## Validation

- `bun test scripts/ci-browser-parallel.test.ts -t quarantine`: 4/4.
- `bun run check fast`: green.
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