GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
GeezerVison is showing github.com — fix(web): clicking a label in an inline HTML render no longer jumps the chat by juliusmarminge · Pull Request #36497 · pingdotgg/t3code Conversation
|
| Before: e5835c993a | After: cb2a186cb5 | |
|---|---|---|
| Before click | ||
| After click | ||
| Observed | scrollTop 1139 → 0 | scrollTop 1139 → 1139; B checked |
| Recording | Before interaction | After interaction |
No new local runs this round. On the PR, all 8 required checks passed on cb2a186. From the earlier round: the BrowserDocumentFrame browser tests (4 passed), the packages/shared htmlRender tests (16 passed), and vp run check:changed (all passed).
Run by the t3code factory in T3 Code.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
…in place Fails on main: the label focuses an off-screen radio inside the sandboxed render frame and Chromium scrolls the parent's scroll container to it. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…he chat Co-Authored-By: Claude Opus 5.5 <[email protected]>
ApprovabilityVerdict: Approved at Macroscope's review found this PR approvable — Label clicks in rendered HTML now focus their associated control without scrolling the chat. The change is limited to focus behavior and leaves existing frame isolation and external interactions unchanged. You can add or adjust custom eligibility rules. Learn more. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
Thread transfer impact✅ Thread transfer remains within every enforced ceiling.
Other scenariosAll 64 scenario measurements match All 64 scenario measurements
Baseline: Scenario and decoded snapshot size10 historical turns, 5 command tools per turn, 878.9 KiB retained MCP result per historical turn, and a 1.05 MiB retained result in the measured turn.
Updated in place by a trusted workflow. PR artifacts are strictly validated and never executed. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
|
No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|
| Check name | Status | Explanation |
|---|---|---|
| Title check | The title "fix(web): clicking a label in an inline HTML render no longer jumps the chat" matches the main change. The PR adds a capture-phase click handler in BOOTSTRAP_SCRIPT that focuses a label's c… | |
| Linked Issues check | [#36493] The issue requires that clicking a visible label for an off-screen hidden input switch the toggle without moving the chat. The diff adds a capture-phase document click listener in BOOTSTRAP_S… |
|
| Out of Scope Changes check | The whole-PR diff against the merge base e5835c9 changes two files. packages/shared/src/htmlRender.ts gains one capture-phase click listener in BOOTSTRAP_SCRIPT. The existing link, image, and keybo… | |
| Description check | The description states the change is a capture-phase click listener in BOOTSTRAP_SCRIPT that focuses a clicked label's control with preventScroll so the chat timeline does not jump. It links the issue… |
Explanation
The title "fix(web): clicking a label in an inline HTML render no longer jumps the chat" matches the main change. The PR adds a capture-phase click handler in BOOTSTRAP_SCRIPT that focuses a label's control with preventScroll so label clicks in html_render output no longer scroll the parent chat timeline. The title follows conventional commit format and names the affected component and symptom.
Explanation
[#36493] The issue requires that clicking a visible label for an off-screen hidden input switch the toggle without moving the chat. The diff adds a capture-phase document click listener in BOOTSTRAP_SCRIPT (packages/shared/src/htmlRender.ts). For a trusted click, the listener finds the target's closest 'label,a[href],button,input,select,textarea'. If that match is a LABEL with a control that is not already the active element, it calls c.focus({preventScroll:true}). Native label activation then runs unchanged, so the input toggles and change events still fire. Focus no longer scrolls the control into view, so the parent timeline does not jump. Clicks on nested inputs, buttons, links, and selects match those elements first and are skipped. The diff also adds a browser test in BrowserDocumentFrame.browser.test.tsx that clicks the distant label B and asserts the container scrollTop is unchanged. The pass result is based on code reading. The author reports the test failed before the fix and passed after it. I did not run the tests. The issue's suggested preventDefault()/click() approach is not used. The PR description states this choice, and the issue's core requirement is still met. Page-script programmatic focus is explicitly not covered by the issue or the PR, so it is not a requirement here.
Explanation
The whole-PR diff against the merge base e5835c9 changes two files. packages/shared/src/htmlRender.ts gains one capture-phase click listener in BOOTSTRAP_SCRIPT. The existing link, image, and keyboard handlers are unchanged. apps/web/src/components/files/BrowserDocumentFrame.browser.test.tsx gains a regression test for the same label-click scroll behavior. Both changes connect directly to issue #36493. No unrelated change was found in the reviewed summary or in the htmlRender.ts diff.
Explanation
The description states the change is a capture-phase click listener in BOOTSTRAP_SCRIPT that focuses a clicked label's control with preventScroll so the chat timeline does not jump. It links the issue (#36493) and includes a reproduction on main, before/after evidence with screenshots and recordings, and test results. It also lists a scope limit. However, the description is mostly a status report about a prior review round ('No changes were needed in this round', CI and review status) rather than the template's Problem/Change/Scope/Verification structure. The template's 'Problem' and 'Change' sections are not labeled, and the Scope section does not explain why this is a bug fix. The Verification section is strong. The model and harness are listed, as the template requests. Overall the required information is present, so the check passes.
329a01dc-b654-4890-b64b-9bdb441df10fapps/web/src/components/files/BrowserDocumentFrame.browser.test.tsxpackages/shared/src/htmlRender.tsIncluded review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 5 remain after this review.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Merges `pingdotgg/t3code` `37714a8de5` (231 commits from `bedc8658c3`) into the fork. Tracker entry: `docs/fork/upstream-merge-log.md` § 2026-11-14. ## Merge - Landed 854 files against 853 in the upstream range (the extra is `docs/fork/inventory.json`). Fork delta 772 files. - 5 conflicts, each resolved by its preflight verdict: `AGENTS.md` (decide: fork shape plus upstream's provider list), `agentContextBudget.json` (upstream + the fork's 108 bytes = 49914), `ThreadTerminalDrawer.tsx` (upstream's `resolveTerminalLinkTarget` kept behind the `FEATURES.openInEditor` return), `vite.config.ts` (upstream's `configuredAppVersion` inside the fork's `defineConfig`), `FilePreviewPanel.browser.test.tsx` (upstream's variable plus the fork's `onRetargetFile`). - Lockfile re-derived from upstream's copy. - `duplicate-adds`, `resolution-check`, `inventory-check` and `tripwires` are clean. `apps/mobile/src/state/use-terminal-session.ts` joined the `terminal-metadata-state` entry. - Union: ADD `pullRequests.subscribeLinkedThreadRefreshes` applied; no DROP. - Upstream's new provider-row edge-click test (pingdotgg#32537) needed `FEATURES.providerConfiguration` turned on, because it clicks an unconfigured row the fork hides. ## Verification Format, lint, types, build, lockfile and every merge check pass. Tests: the provider-opencode and t3 failures are the sandbox gaps already in `docs/fork/gaps.md` (`/tmp` sticky bit, git `insteadOf`, OpenCode process groups, Node 24), plus the server-browser and Antigravity installation tests. The only one of those files in the fork delta is `GitVcsDriverCore.test.ts`, and it fails on `insteadOf`. Web was run against a fetched Chromium 1248, because the image ships 1254: 620 of 624 files passed, three passed when run alone, and the fourth is fixed here. ## Upstream features ### Usable as-is - Client fixes across chat, composer, terminal links, file preview, settings and accessibility (e.g. pingdotgg#36497, pingdotgg#34964, pingdotgg#36466, pingdotgg#36435, pingdotgg#36174, pingdotgg#36380, pingdotgg#36363, pingdotgg#36437). - Theme CSS editor in Settings → Appearance (pingdotgg#35247), on the client side. It shows only where the server reports `environmentThemes`. ### Unsupported in Moatless / needs implementation - `pullRequests.subscribeLinkedThreadRefreshes` and the `linkedThreadRefreshes` capability (pingdotgg#35865). Without them the client polls `pullRequests.linkedThreads` every 10s. Now refused through `UnsupportedMethodError`. Recorded in gaps under methods not dispatched and capabilities. - T3 Connect device approval (pingdotgg#36419). This is a decided-out surface. - Agent theme MCP tools (pingdotgg#35247), which write `css` into environment themes. ### Backend behavior to consider reproducing in Moatless - `ServerConfig.serverTime` so live timers count against the host clock (pingdotgg#36420). - A thread list that builds metadata only for its page (pingdotgg#36434), and a thread visit that stores only read state (pingdotgg#36233). - An auto-settle sweep that stops rereading idle branches (pingdotgg#36371). - `frame-ancestors`: other sites can no longer frame the web app (pingdotgg#36395). - A send to an unrecoverable worktree fails instead of reporting started (pingdotgg#36251), and turns recreate a lost worktree checkout (pingdotgg#34894). - Scheduled deliveries follow the thread's current model (pingdotgg#34149). - Delegated children wait for awaited background work and subagents (pingdotgg#36411, pingdotgg#34958). - Fetched upstream commits are no longer shown as agent changes (pingdotgg#36332), and turn diffs follow branch switches (pingdotgg#36343). All are listed under "Runtime fixes upstream made to its own server" in `docs/fork/gaps.md`. ## After merging - `moat gh workflow disable issue-vouch.yml -R soaplabs/t3code` (new upstream workflow that arrives enabled). 🤖 Generated with [Claude Code](https://claude.com/claude-code) --- Moatless task: https://moatless.soaplabstest.com/tasks/c89558cd-26c7-4a4c-a68f-04675720d7b7
…he chat (pingdotgg#36497) (cherry picked from commit 4c76857)
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
[Bug]: Clicking a <label> inside an inline html_render page jumps the chat when its input is off-screen
There was an error while loading. Please reload this page.