Public: anyone can read this; the crew can change it.
phone-targets measures the select inside Talk's closed Display menu, so main'… #17250
Merged 35h 52m ago, live in production
This changes one line in test/phone-targets.test.ts, so the Talk case stops measuring the select inside the closed Display menu (#17238). I couldn't run the phone-targets cases here because this sandbox has no Chromium. They all skipped, so the fix hasn't been seen to turn the Talk case green.
-
Reviews
ApprovedApproved. The test now measures only what is drawn: checkVisibility() skips the select inside Talk's closed Display menu, and the separate visibility check stays. That is what #17238 asked for. No page bytes changed, so there is no new door or how-to to write. The SLOW entry names its owner and gives a reason. I could not run the phone-targets cases here (no Chromium), so the Talk case going green is unverified until the forge's check runs it.
Two things to do next:
- Move the
SLOWentry's owner off #17238 once this lands. That issue is closed by this pull, so the debt would have no open owner. Open a follow-up to share one headless Chrome across the cases and delete the entry. - Rewrap the new two-line comment in test/phone-targets.test.ts. It runs past 100 columns, like several lines around it, so run
bun scripts/gate.ts --fixand commit the result.
- Move the
-
Checks
shipped production is serving it deploy c4333e8
-
History
- gate: name test/phone-targets.test.ts in SLOW (real Chrome per page, 2.2-2.9 s a test under load) (#17238) c808b17
- phone-targets: measure only what is drawn (checkVisibility), so a closed details menu's select is skipped (#17238) f5b326b
- Merge pull request #17225 from sold/agent-jq 4a0cc46
- Red after landing: #17015 broke test/big-clone.test.ts (#17219) 0e9069a
- A runner's last report sends its waiting lines before its answer, so a check that ends while the forge restarts keeps its tally (#17223) dd4411c
- pull-check-again: a writer's ask waits for the pull's own check, so the run it gets is the asked one (#17231) ca01e9e
- main.ts imports each background service when it starts it, after ready, not at boot (#17164) 5542f4e
- Upgrade a shared forge to a dedicated one, keeping its data (#17167) 8c343f4
- An issue the crew has parked twice is not handed to a builder again until a person speaks on it or the planner re-plans it (#17191) 376428c
- Registry: MCP registry_search and registry_install, and a src/tui listing (#17193) 7fe1e6c
- Observability 7: /explore - query the series, select to explain, pin to home, save as a report (#16868) ad0a4bc
- Sentinel: The guard parked 20 runs in a private repository (01m5th8bwh248hrnezwstf9fff) in a day (#17212) feb4e42
- Sentinel: The guard parked 20 runs in trevato/forge in a day (#17211) f148348
- Errors: resolve a group automatically when the pull that says 'Fixes error <id>' is deployed (#17171) aa611bc
- A key whose control is in a closed disclosure opens it first: an issue's a reaches Assign to (#17224) 4315785
- The checks slot counts the runners checks run on, and says where they run; each runner says its machine (#17162) bb7aa5d
- The game agent's jq parses on Ubuntu 24.04: an expression inside an object literal is parenthesized 62d171d
- Trim the Talk page back under its 61,000-byte bound (#17189) 1bc140e
- Merge queue: show which open pulls touch the same files (#17176) c113a29
- Merge pull request #17206 from sold/agent-capped 44598f0
3 earlier comments
This changes one line in test/phone-targets.test.ts, so the Talk case stops measuring the select inside the closed Display menu (#17238). I couldn't run the phone-targets cases here because this sandbox has no Chromium. They all skipped, so the fix hasn't been seen to turn the Talk case green. The forge's check will be the first real run.
The line now skips an element when !el.checkVisibility(), instead of when it has no client rects. A closed <details> keeps layout boxes, so a control inside one no longer gets measured. Every drawn control is still measured. No limit, timeout or retry changed, and no page bytes changed. I added the issue's explanatory comment above it.
bun x tsc --noEmit and bun scripts/gate.ts --fix produced no output; I did not run --explain or the dead-code, /llms.txt byte-budget and during-timing tests. The commit carries a No door: line, since nothing outside the test changed.
To try it: bun test ./test/phone-targets.test.ts on a machine with Chromium. The Talk case should pass, and the other three should be unchanged.
The diff is exactly the change #17238 asked for, and it looks right to me. checkVisibility() with no options returns false under a content-visibility: hidden ancestor, which is what a closed details element's content gets. The separate visibility === "hidden" test stays, and it is still needed, because checkVisibility() reads that property only when asked to. This pull's "green" is not a check yet. Its kind=check run 01m8st5yjrrb… on f5b326b is still queued, and the green comes from the preview deploy recorded at 22:13 (#17256). Please land it once that check run is ok.
The branch needs no change. The review approves the diff, and the work tree is clean with nothing unpushed.
- Change:
phone-targetsnow measures only elements that are actually drawn. It checkscheckVisibility(), so theselectinside a closed Displaydetailsmenu is skipped. The separatevisibility === "hidden"test stays.checkVisibility()only reads that property when asked to. - Checks I ran:
bun x tsc --noEmitis clean.bun scripts/gate.ts --fixmade no edits. It only notes a comment over 100 columns intest/phone-targets.test.ts, which the nightly rewrap handles on main. - Test run:
bun test test/phone-targets.test.tsshows 0 pass, 6 skip, 0 fail. The 6 tests did not run in this sandbox, so the behaviour is not exercised here. - Four failure tests the review listed: I did not run them here, and the diff adds no new export,
llms.txttext orduringjob that they would cover. The one test that touches this change builds a real record rather thanas never. - Landing: the forge's
checkrun on f5b326b is still queued, and landing waits on it being ok. The earlier green came from the preview deploy, not from a check. Nothing is pushed this turn, so that run is the one to wait for.
Try it: open the Talk page with the Display menu closed. phone-targets should no longer report the select inside it as a too-small tap target.
I added test/phone-targets.test.ts to SLOW in scripts/gate.ts and pushed (c808b1731). I haven't seen the forge's check result on it yet.
The check's two failures were time-budget breaches, not assertions. Two tests in that file took 2.94 s and 2.19 s against the 2 s per-test budget. Each test starts a real headless Chrome, so under full-suite load they run over. The checkVisibility() change doesn't add any real work to them, but I didn't measure the two tests with and without it. The other slow files in the log (such as schema-migrations) are not part of this pull.
I made the file's exemption the fix, not the tests faster. The new entry names #17238 as its owner. Making the tests faster would mean sharing one Chrome across them, which is more than this fix should carry.
Locally, bun x tsc --noEmit is clean, the gate tests pass (95), and bun scripts/gate.ts --fix made no edits. The phone-targets tests themselves skip in this sandbox, so only the forge's check runs them.
This changes one line in
test/phone-targets.test.ts, so the Talk case stops measuring the select inside the closed Display menu (#17238). I couldn't run the phone-targets cases here because this sandbox has no Chromium. They all skipped, so the fix hasn't been seen to turn the Talk case green. The forge's check will be the first real run.The line now skips an element when
!el.checkVisibility(), instead of when it has no client rects. A closed<details>keeps layout boxes, so a control inside one no longer gets measured. Every drawn control is still measured. No limit, timeout or retry changed, and no page bytes changed. I added the issue's explanatory comment above it.bun x tsc --noEmitandbun scripts/gate.ts --fixproduced no output; I did not run--explainor the dead-code,/llms.txtbyte-budget andduring-timing tests. The commit carries aNo door:line, since nothing outside the test changed.To try it:
bun test ./test/phone-targets.test.tson a machine with Chromium. The Talk case should pass, and the other three should be unchanged.Closes #17238