You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
test(prompt): name what covers the card when prompt-dock's top check fails - #3766
scripts/prompt-dock-demo-regression.ts:325 ("long label at 390x500 at 24px: nothing of the transcript is painted over the card") failed four times today:
It passed 6/6 locally (load 49-67), so the cause could not be reproduced here.
The check takes document.elementFromPoint 4 px under the card's top and asserts that the element is inside the card. It only recorded a boolean, so the failures say something covered the card but not what.
No actionable comments were generated in the recent review.
Summary
Summary by CodeRabbit
Tests
Updated a layout regression check to report whether content overlaps the card’s top edge, with the expected result now being no overlap.
The regression script replaces the cardTop boolean with an overCard diagnostic. The diagnostic identifies the element at the card’s top-center point, and the placement assertion now requires that value to be null.
Changes: Prompt dock regression check
Layer / File(s)
Summary
Covering-element diagnostic and assertion scripts/prompt-dock-demo-regression.ts
Layout now stores overCard as a string or null. layoutOf reports the covering element at the card’s top-center point. The placement assertion requires overCard to be null and includes the reported element in its failure message.
This change only improves failure diagnostics in a test script. It has no production impact and no remaining merge-blocking risk.
Pre-merge checks: 4
Check name
Status
Explanation
Title check
The title names the main change: the prompt-dock card-top check failure diagnostics now identify what covers the card. It matches the raw summary, which says the boolean is replaced by a diagnostic va…
Description check
The description follows the template. It has a Change section that explains the problem (four intermittent failures, not reproducible locally), the resulting behavior (overCard diagnostic in the asser…
Linked Issues check
Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check
Check skipped because no linked issues were found for this pull request.
Full details: Title check
Explanation
The title names the main change: the prompt-dock card-top check failure diagnostics now identify what covers the card. It matches the raw summary, which says the boolean is replaced by a diagnostic value naming the covering element. The title is specific and concise, and it is a single sentence.
Full details: Description check
Explanation
The description follows the template. It has a Change section that explains the problem (four intermittent failures, not reproducible locally), the resulting behavior (overCard diagnostic in the assertion message), and the scope (test file only). It has a Validation section listing the commands run and their results. It does not list skipped checks, and the template's reference to contract-test coverage for HTTP/WS changes does not apply to this test-only change. It also does not link an issue, which is optional here because this is a test diagnostic change. The changelog note is present and matches the template's reference to changelog.d/.
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.
Reviewing files that changed from the base of the PR and between 39a97dc and caaefe0.
Files selected for processing: 1
scripts/prompt-dock-demo-regression.ts
Included review availability: This review used your included allowance. Your plan provides up to 8 included reviews per hour; 5 remain after this review.
Merged head caaefe0a4826 as 93b526d534f0 on GitHub's checks, with no unresolved review threads.
Reviewer
Verdict
Note
codex
CLEAR
One reviewer: test-only PR (scripts/prompt-dock-demo-regression.ts).
Test-only PR (scripts/prompt-dock-demo-regression.ts), so one reviewer: Codex Terra, CLEAR with no findings.
prompt-dock-demo-regression.ts:325 failed four times under load today and passes when run alone. The assertion is unchanged; when it fails it now names what is drawn over the card instead of printing false, so the next red run says what to fix.
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
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
scripts/prompt-dock-demo-regression.ts:325("long label at 390x500 at 24px: nothing of the transcript is painted over the card") failed four times today:It passed 6/6 locally (load 49-67), so the cause could not be reproduced here.
The check takes
document.elementFromPoint4 px under the card's top and asserts that the element is inside the card. It only recorded a boolean, so the failures say something covered the card but not what.Change (diagnostic only, test file)
Layout.cardTop: booleanbecomesLayout.overCard: string | null:nullwhen the card is on top, so the assertion is unchanged.The next failure in CI names what covered the card, and the fix can follow from that.
Validation
TMPDIR=~/.cache/ovis-tmp/ci-loop bun scripts/prompt-dock-demo-regression.ts: pass (load 33).bun run check fast: pass (typecheck, build, unit tests, actionlint).No changelog fragment: this changes a test only.