Windows in-app browser intermittently fails to click “Files changed” immediately after opening a GitHub PR
On Windows, the Codex in-app browser intermittently fails to open a public GitHub PR’s Files changed tab immediately after navigation. The click failed in 6 of 8 fresh-tab trials. The diagnostic found one visible link and reported disabled: false, but the browser stayed on the PR conversation. All six failures returned the same error within 0.58–1.43 seconds of starting a click with a 12-second timeout.
Could not check the click target's shadow root
How to reproduce
Run this in the in-app browser’s cua_repl. Use a fresh tab for each trial. Both pallets/click#3899 and pallets/click#3902 reproduced the failure.
const tab = await cua.createBrowserTab('iab', 'about:blank', { visible: false })
await tab.goto('https://github.com/pallets/click/pull/3899')
const files = tab.playwright.getByRole('link', { name: /Files changed/i })
await files.click({ timeoutMs: 12000 })
For the control, insert this wait immediately before the same click. It waits for GitHub to display the number of changed files in the link’s accessible name.
await tab.playwright.getByRole('link', { name: /Files changed.*\d/i })
.waitFor({ state: 'visible', timeoutMs: 12000 })
| First-click outcome | PR #3899 | PR #3902 |
|---|---|---|
| Click immediately | 3 of 4 failed | 3 of 4 failed |
| Wait for the count, then click | 4 of 4 opened the diff | 4 of 4 opened the diff |
The trials alternated conditions in counterbalanced blocks and reused the same browser profile. After each of the six failures, waiting for the count and retrying in the same tab opened the diff. Each successful navigation was verified by reading a changed-file link on the destination page.
Expected behavior
The click should open the changed-files view. If the target changes before input is dispatched, the browser should re-resolve the locator within the requested timeout or return a diagnostic that explains why it could not proceed.
Environment and related report
Windows x64, build 10.0.26300.0. Codex Windows package 26.1120.6357.0. Bundled browser plugin 26.1120.50957. Tested November 25, 2026.
An earlier Windows report records the same error from an accessibility-index click. This report adds a public reproduction using a role locator and a timing control. Whether both observations share an underlying cause is unknown. Earlier observation in #55794