Skip to content

test(browser): keep the demo finish notice out of workspace reorder - #4682

Closed
devswha wants to merge 2 commits into
mainfrom
fix/touch-reorder-demo-turn
Closed

devswha wants to merge 2 commits into
mainfrom
fix/touch-reorder-demo-turn

Conversation

@devswha

@devswha devswha commented Nov 25, 2026

Copy link
Copy Markdown
Owner

What broke

scripts/workspace-touch-reorder-demo-regression.ts sometimes failed at checkPinned with "a long press ... lifted no row" (#4343). The demo's opening turn finishes on its own timer (setTimeout(finishOpeningTurn, 4500)) and raises a finish notification at the top of the phone screen. The test dismissed that notification only if it was already there, then sent a coordinate touch; when the turn finished between the two, the notification took the touch instead of the pinned row.

Reproduction

In the CI runner image, a scratch copy fired the demo's finish callback just after the press probe was armed on the first stroke over a pinned row: the probe reported touchstart button.droplet-card and the same "lifted no row" failure (exit 1). It waited on elementFromPoint hitting the notification, not on a sleep.

Fix (test only)

Both touch contexts hold the demo's opening turn through the existing __ovisDemoHoldTurn fixture hook, so the notification never appears behind the test's back; the racy dismiss is removed. The script leaves the CI browser quarantine list (scripts/ci-browser-quarantine.ts). No product or UI change, no fixed sleep.

Validation

  • Repro script with the fix in the CI image: exit 0.
  • workspace-touch-reorder-demo-regression.ts 8 serial runs in the CI image: 8/8 pass.
  • bun run check fast at this head: generated files, typecheck and build pass; one unrelated case failed (server/remote-entry.test.ts "keeps a live starter's lock ... malformed"), which passed 10/10 in isolation on both main and this branch. This branch touches no server file.
  • No Codex review (test-only change).

Closes #4343

@coderabbitai

coderabbitai Bot commented Nov 25, 2026 •

Copy link
Copy Markdown

Explain Change →

Important

Review skipped

Auto incremental reviews are disabled on this repository.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

Run configuration

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • Trigger review

No actionable comments were generated in the recent review.

Summary

Summary by CodeRabbit

  • Tests
    • Updated touch-reordering regression coverage to check long-press behavior without dismissing the finish notification first.
    • Removed the regression check from the quarantined test list.

The touch-reorder regression script changes how it prepares mobile contexts and arms its long-press probe. The script is removed from CI quarantine, and a changelog note records the change.

Changes: Touch reorder regression

Layer / File(s) Summary
Update touch regression setup
scripts/workspace-touch-reorder-demo-regression.ts, scripts/ci-browser-quarantine.ts, changelog.d/touch-reorder-demo-turn.md
The mobile contexts set __ovisDemoHoldTurn to true. The stroke helper no longer dismisses a visible finish droplet before arming the press probe. The quarantine entry is removed, and the changelog adds a maintenance note.

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

Change: Other · Severity of issue fixed: Low

Suggested reviewers: pt-act

Merge Risk: Minimal · previous review f1402

This change only makes a browser regression test more reliable by holding the demo's opening turn during touch tests, and it takes the test out of CI quarantine. There is no product or UI change, so production impact is negligible and the change is ready to merge.

Pre-merge checks: Passed 4

Check name Status Explanation
Title check Passed The title "test(browser): keep the demo finish notice out of workspace reorder" matches the main change: the test now holds the demo's opening turn so the finish notification cannot intercept the long…
Description check Passed The description covers the problem (flaky checkPinned failure from the finish notification intercepting a touch), the reproduction, the fix (holding the opening turn via __ovisDemoHoldTurn and removin…
Linked Issues check Passed Directly linked issue #4343 has two coding asks. (1) Diagnostics: make the stroke report document.elementFromPoint and any open menu or droplet when the lift wait times out. The reviewed head already …
Out of Scope Changes check Passed All changes relate to #4343 or support its test fix. (a) stroke: the racy droplet dismissal and wait for detach are removed. Arming the press probe stays. This is the change the fix requires. (b) Both…
Full details: Title check

Explanation

The title "test(browser): keep the demo finish notice out of workspace reorder" matches the main change: the test now holds the demo's opening turn so the finish notification cannot intercept the long-press touch in the workspace reorder regression test. It is specific and concise, and it follows a conventional commit style.

Full details: Description check

Explanation

The description covers the problem (flaky checkPinned failure from the finish notification intercepting a touch), the reproduction, the fix (holding the opening turn via __ovisDemoHoldTurn and removing the racy dismissal), and validation with commands and results. It includes a 'Closes #4343' line. The template's 'Change' and 'Validation' sections are both present. It does not link a maintainer-agreed issue for a feature, but this is a test-only fix, so that requirement does not apply. The description also notes an unrelated failing test, which is useful context.

Full details: Linked Issues check

Explanation

Directly linked issue #4343 has two coding asks. (1) Diagnostics: make the stroke report document.elementFromPoint and any open menu or droplet when the lift wait times out. The reviewed head already has this in scripts/workspace-touch-reorder-demo-regression.ts. armPressProbe reads elementFromPoint, overlays (.droplet, .row-menu, [role=menu] and others), lifted rows and events. stroke calls endPressProbe and includes the report in the thrown error. The diff does not change this code, so it is present at the base too. (2) Quarantine: the issue says the script stays in ci-browser-quarantine.ts until fixed. The PR removes the entry and asserts a fix. The mechanism is specific: the demo finish droplet covers the pinned row. The PR reports a reproduction with a scratch copy (exit 1 before the fix, exit 0 after) and 8/8 serial passes in the CI image. The fix holds the opening turn with the __ovisDemoHoldTurn hook in both touch contexts, so the droplet does not appear during the press. The code path matches the reproduced mechanism. The PR does not change product code. Evidence is limited to 8 serial runs against an original rate of about 1 in 20, so the quarantine removal rests on the reported reproduction. I did not confirm the __ovisDemoHoldTurn hook implementation outside this script.

Full details: Out of Scope Changes check

Explanation

All changes relate to #4343 or support its test fix. (a) stroke: the racy droplet dismissal and wait for detach are removed. Arming the press probe stays. This is the change the fix requires. (b) Both touch contexts (checkPinned mobile context and the edge-hold context in checkEdgeHoldGrowth) set __ovisDemoHoldTurn before load. The second context is a broader use of the same hook. It is test-only and uses the same demo finish path, so it is related but not required by #4343. (c) scripts/ci-browser-quarantine.ts: removes the #4343 entry. This follows from the fix claim. (d) changelog.d fragment: documents the test change. No product, UI or server file changes appear in the summary. The unrelated server/remote-entry.test.ts failure is reported in the PR description. It is not a change in this PR.

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 6946dcb and f14029e.

Files selected for processing: 3

  • changelog.d/touch-reorder-demo-turn.md
  • scripts/ci-browser-quarantine.ts
  • scripts/workspace-touch-reorder-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; 2 remain after this review.

@devswha

devswha commented Nov 25, 2026

Copy link
Copy Markdown
Owner Author

Superseded by #4724

@devswha devswha closed this Nov 25, 2026
devswha added a commit that referenced this pull request Nov 25, 2026
…a loaded runner (#4698)

## What broke

main went red on five checks, none of them a product regression: each
one timed or counted its way past the work it checks, and a loaded CI
runner outran it.

- **CI run 45559180115 (Fast checks)**:
`src/components/review-client-p12.test.ts` "RED P12b-F6" and
`src/components/UnconfirmedPcNotices.test.tsx` "writes the invited
record before the card goes". Both press a card's Add and then settle a
fixed 20 timer turns. The press's work (the number Add's `onClick` is
`void`, and the invited Add was voided on purpose behind a held lock)
signs and writes the list through WebCrypto. With 24 copies at once on
this PC, the card still showed "PC is not in your account's list yet.
Try again." (the in-flight placement) when the test asserted. `RED
P12-F9` has the same shape and failed the same way under load.
- **CI run 45558592545 (browser, other 2/3 and 3/3)**:
- `sidebar-context-ring-demo-regression.ts:82` (`boundingBox()` null)
and `reply-comments-demo-regression.ts:214` ("the chat did not move
under the selection", scrollTop 503 -> 564). Both use the demo's `api`
pane, whose opening turn finishes on its own
`setTimeout(finishOpeningTurn, 4500)`. When a slow page load reaches
that timer mid-check, the api agent turns `done`, so its row folds under
`+N resting` and its chat grows by the final answer. #4675 (the family
fold) is not the cause and is unchanged: a resting agent folded before
it too.
- `prompt-card-lifetime-browser-qa.ts` "blocked edge" measured
`Date.now()` around `page.evaluate`, the server read, the 250 ms quick
re-read, the render and Playwright's `waitFor` retry backoff, against
1000 ms. CI got 2034 and 1022 ms, and in the CI runner image with 5 runs
at once 3 of 5 failed (1057 to 1391 ms).

## Fix (tests only)

- The account tests' `press` waits until the card's buttons are enabled
again (the card's `act` clears `busy` when its work is done), with a 10
s bound. The two lock tests wait until the PC is in the list, then until
the Add is done. No fixed sleep.
- The two demo scripts set the existing `__ovisDemoHoldTurn` fixture
hook, the same fix as #4682 and other demo scripts (`agent-groups`,
`sidebar-peek` and more).
- The prompt card check times the gap between the edge's read and the
next one as they arrive at the server. That is still a timing check,
because promptness is the behaviour under test: the quick cadence
(`BLOCKED_PROMPT_READ_MS` 250) must beat the 2 s poll. Page and test
steps are no longer counted. The card must still appear.

No product, UI or contract change.

## Validation

- Account tests, 24 copies at once on the P620 (load ~200 on 128 cores):
before, 2 to 10 of 24 runs failed F6, invited-record, F9 and "stays,
once the account admitted"; after, 48 of 48 runs pass (79 pass, 0 fail
each).
- In the CI runner image (`herdr-ci-runner:local` on old-desktop,
`--cpus 24`), 5 at once each: `sidebar-context-ring` 5/5 and
`reply-comments` 5/5 with the fix (`UI_EVIDENCE_DIR` set, as in CI).
`prompt-card-lifetime`: 2/5 before, 6/6 after (re-read gap 304 to 355
ms).
- `bun run check fast` in the same image at 256572b (this commit
before its rebase onto b0f20e7, which touched none of these files):
generated files, typecheck and build pass; unit tests all pass but
`server/ssh-account-add.test.ts` "a confirmed host key connects...",
which fails the same way when run alone in that container (its sshd
closes the connection) and passes in CI's Fast checks; this PR touches
no server file.
- Not run: `bun run check full`.

Not in this PR: on 6946dcb, `ui-contexts-regression.ts` timed out at
600 s while every one of its steps was passing (its TIMING lines add up
to 597 s; it usually takes 280 to 330 s). That is runner load against
the CI per-script budget, a workflow setting this PR does not touch.
devswha added a commit that referenced this pull request Nov 25, 2026
…nd phone history (#4724)

## Source changes

### [#4682](#4682)

- **Fix:** Test only: hold the demo opening turn and unquarantine the
touch-reorder regression.
- **Reproduction:** On a pinned-row drag, firing the opening-turn finish
between arming the touch probe and pressing put the finish droplet under
the finger; no row lifted.
- **Review:** CodeRabbit reviewed `f14029ee`; it skipped the later
merge-only head because automatic incremental reviews are disabled. No
Codex review for this test-only change.

Closes #4343

### [#4696](#4696)

- **Fix:** Recover a queued workspace drag against the newest proven
order after a PC restart.
- **Reproduction:** A restart roster arrived ahead of the move receipt,
then a later step failed. The next drag stayed parked without a
verification request; other schedules showed the old workspace order.
- **Review:** Codex supplied executable cases on `28b46293` but did not
finish its review. The gate review cleared the follow-up and CodeRabbit
reviewed `11916d42`.

Closes #4336

### [#4705](#4705)

- **Fix:** Prioritize small retries for omitted inbox summaries without
shrinking fresh batches.
- **Reproduction:** A deterministic 24-row batch on main ended with 23
summaries because rows at the tail spent retries before reads began. The
limited-budget browser fixture reproduced missing summaries.
- **Review:** Codex reviewed `67abacb86`, and the gate review cleared
`d1384ffd`. CodeRabbit was rate-limited.

Refs #3817 (fixes its first item; the deferred follow-ups stay open
there)

### [#4695](#4695)

- **Fix:** Cancel a stale question push or queued webhook when a moved
pane is already working; keep tracked or still-blocked questions.
- **Reproduction:** The hub test received a pending question for the new
pane ID after the move had already reported working.
- **Review:** Codex reviewed `0f1e19ac2`; its tracked-agent and webhook
findings were fixed. The gate review identified the pre-existing
event-order issue tracked in #4709. CodeRabbit was rate-limited.

Closes #4239

### [#4708](#4708)

- **Fix:** Keep pane, sheet and Settings history on the entries they
own.
- **Reproduction:** Isolated Chromium cases covered a refused Back whose
return did not land, a silent Back commit that left a later sheet
stranded, and widening Settings over the Devices confirmation.
- **Review:** Codex reviewed `5bde4bd4`; three reproduced findings were
fixed and rechecked. The gate review confirmed no control, copy, styling
or layout change. CodeRabbit was rate-limited.

Refs #4400 (partly: a remaining case is on the issue)
Refs #4393 (partly: a remaining case is on the issue)
Closes #4391

The phone-history change follows the original comparison with [T3 Code’s
separate Devices
route](https://github.com/pingdotgg/t3code/blob/main/apps/web/src/routes/_chat.settings.devices.tsx):
Ovis keeps Settings as an overlay but preserves its separate history
entries.

Supersedes #4682 #4696 #4705 #4695 #4708

## Phone history: before and after

Korean light-mode captures from the original phone-history PR.

| Scenario | Before | After |
| --- | --- | --- |
| Settings, desktop 1280 | <img width="420" alt="Settings resets to
Appearance"
src="https://raw.githubusercontent.com/devswha/ovis/aa9ec2028f15be01c944fd4d06c513398addf318/4391-before/settings-confirmation-1280.png">
| <img width="420" alt="Devices and confirmation stay open"
src="https://raw.githubusercontent.com/devswha/ovis/aa9ec2028f15be01c944fd4d06c513398addf318/4391-after/settings-confirmation-1280.png">
|
| Settings, phone 390 | <img width="230" alt="Settings returns to its
list"
src="https://raw.githubusercontent.com/devswha/ovis/aa9ec2028f15be01c944fd4d06c513398addf318/4391-before/settings-confirmation-390.png">
| <img width="230" alt="Devices and confirmation stay open"
src="https://raw.githubusercontent.com/devswha/ovis/aa9ec2028f15be01c944fd4d06c513398addf318/4391-after/settings-confirmation-390.png">
|
| Back after closing a sheet, desktop 1280 | <img width="420" alt="Back
stays in Ovis"
src="https://raw.githubusercontent.com/devswha/ovis/aa9ec2028f15be01c944fd4d06c513398addf318/4393-before/sheet-back-1280.png">
| <img width="420" alt="Back reaches the previous page"
src="https://raw.githubusercontent.com/devswha/ovis/aa9ec2028f15be01c944fd4d06c513398addf318/4393-after/sheet-back-1280.png">
|
| Back after closing a sheet, phone 390 | <img width="230" alt="Back
stays in Ovis"
src="https://raw.githubusercontent.com/devswha/ovis/aa9ec2028f15be01c944fd4d06c513398addf318/4393-before/sheet-back-390.png">
| <img width="230" alt="Back reaches the previous page"
src="https://raw.githubusercontent.com/devswha/ovis/aa9ec2028f15be01c944fd4d06c513398addf318/4393-after/sheet-back-390.png">
|

## Validation

- Focused suites: workspace order **51**, inbox **127**, moved-pane
alerts **198**, and phone history **143** passed (519 total).
- `bun run typecheck` passed.
- `git diff --check` passed; all ten non-merge commits match their
original stable patch IDs.
- In `herdr-ci-runner:local`, the build and all four demo browser
regressions passed: `workspace-touch-reorder`, `inbox-mode`,
`phone-back`, and `settings-pages`.
- Three additional CI-image browser regressions passed:
`inbox-mode-panes`, `inbox-mode-rail`, and `sheet-outside-tap`.
- `CI=1 UNIT_TEST_WORKERS=6 bun run check fast`: workflow syntax,
generated types/themes, typecheck and build passed; unit tests reported
**27,979 pass, 2 fail, 247 skip**. Both failures
(`server/ssh-account-add.test.ts`: confirmed host key;
`scripts/plugin-tui.test.ts`: fallback `HOME`) reproduce on unchanged
`main` (`b0f20e7bc`) with the same long `TMPDIR`. With a short real
`TMPDIR`, the same two cases pass on both `main` and the bundle (2/2
each). No full rerun with the shorter path.
- `check full`, full integration, and native-device QA were not run.

---------

Co-authored-by: sisyphus-dev-ai <[email protected]>
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.

workspace-touch-reorder checkPinned flakes: a long press on a pinned row sometimes never lifts it

1 participant