Repository navigation
Thread browser harnesses: reach Delete through the More menu, and attack Copy in the dismissal probe - #12827
Merged
Conversation
…ack Copy in the dismissal probe #12735 moved Delete off the assistant action bar into the More menu. Three browser harnesses still asked for a "Delete message" button: - playwright_heavy_thread.py could not run its delete action, which reports HARNESS-BROKEN and fails Frontend build + bundle sanity now that the steps before it pass. It now opens More and selects Delete, with the menu opened before the clock starts so the number is still what Delete costs. - playwright_thread_weight.py, a measurement harness CI does not run, the same. - probe_dismiss_guard.py, the next step in that job, attacked the Delete button and would error on every case. Delete is now inside the menu, where a dismissal cannot reach it, so the probe attacks the reply's Copy button and counts clicks reaching it on window in the bubble phase, which the guard's capture-phase swallow stops. Each case first clicks Copy directly and needs that counted, and needs the press point uncovered by the open menu. test_thread_harness_controls_exist.py requires every control the three ask for to be rendered by the assistant action bar in thread.tsx.
Member
Author
|
@codex review |
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
Codex Review: Didn't find any major issues. You're on a roll. Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
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". |
This was referenced Oct 6, 2026
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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
Frontend build + bundle sanitynow fails on main in itsBrowser smoke for heavy-thread interaction coststep (for example #12810's own run):It was hidden until the earlier steps in that job went green (#12781, #12810). The next step,
Browser check for non-modal menu dismissal, would fail right after it for the same reason.Which side is wrong
The harnesses. #12735 deliberately took Delete off the assistant action bar and made it the last item of the More menu. Three browser harnesses still asked for a
Delete messagebutton on the bar:playwright_heavy_thread.pyHARNESS-BROKENprobe_dismiss_guard.pyno Delete buttonplaywright_thread_weight.pyChange
DELETE_JSopens More (pointerdown, like themenuaction), finds theDeleteitem and clicks it. The menu is opened and the item found before the clock starts, so the number is still what selecting Delete costs; opening the menu is already themenuaction's number. A menu it opened but could not use is closed with Escape.windowin the bubble phase. The guard (lib/menu-dismiss.ts) swallows ondocumentin the capture phase withstopPropagation, so a swallowed click never arrives there and one that slips past always does, however React re-renders the button. Two checks keep a pass from being vacuous:tests/studio/test_thread_harness_controls_exist.py: every bar button (actionButton("X")) and More-menu item the three harnesses ask for must be rendered by the assistant action bar inthread.tsx, so the next move of a control fails there with its name instead of in a browser job.Verification
SMOKE_HEAVY_CHARS=25000 python tests/studio/playwright_heavy_thread.py: main's script reportsdelete ran Falseandcould not run the delete action at all; this branch reportsdelete ran True, 284ms, 20 messages before.node_modules, the same on main and absent in CI.python tests/studio/probe_dismiss_guard.py --engine chromium:PASS. All 21 cases ran with no errors and every positive control counted one click.swallowClickdisabled, it failsquick,held,touchanddismiss_then_spacewithdismissing the menu also clicked the control underneath.test_thread_harness_controls_exist.py: passes; with main's three harnesses it fails, namingDelete messagein each.