Repository navigation
fix(ui): keep expanded table links interactive - #136433
Conversation
Keep the expanded modal under the transcript that owns file and session navigation. Reuse the shared modal and Markdown block lifecycle, removing duplicate observer, focus and host bookkeeping across Chat and Custodian. Validation: two fail-before browser scenarios; eight passing browser cases; 27 UI unit cases; type, lint, style and format gates; P2 review.
|
Codex review: blocked before merge. Reviewed September 3, 2026, 12:59 AM ET / 04:59 UTC. ClawSweeper reviewWhat this changesThe branch keeps expanded Markdown-table links within their originating Control UI owner, consolidates Markdown enhancement lifecycle handling, and removes repeated route metadata/path scans. Merge readiness⛔ Blocked before merge - 2 items remain Keep open for normal maintainer handling: this maintainer-authored, Priority: P1 Review scores
Verification
How this fits togetherControl UI renders interactive Markdown in chat transcripts, sidebars, and Ask OpenClaw; expanded tables must retain the owning surface's file and session navigation handlers. The route layer maps browser paths and saved native routes to the active Control UI page. flowchart LR
Markdown[Markdown transcript] --> Lifecycle[Markdown lifecycle owner]
Lifecycle --> Tables[Table controls]
Tables --> Modal[Expanded table modal]
Modal --> Navigation[File and session navigation]
Browser[Browser path or saved route] --> RouteIndex[Prepared route index]
RouteIndex --> ControlUI[Active Control UI page]
Before merge
Agent review detailsSecurityNone. PR surfaceSource -96, Tests +548, Docs +11. Total +463 across 18 files. View PR surface stats
Review metrics
Root-cause clusterRelationship: Members:
Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything. Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Keep one shared Markdown lifecycle owner, with expanded-table modals retained beneath the surface that owns their navigation handlers, and complete the normal exact-head merge gates. Do we have a high-confidence way to reproduce the issue? Yes, source establishes the shipped failure path: the base modal was appended outside its navigation owner, and the branch includes focused production-bundle browser coverage. The supplied browser tests were not run in this read-only review. Is this the best way to solve the issue? Yes. Retaining the modal under the existing transcript owner reuses the canonical delegated navigation boundary; duplicating file/session handlers inside a body-level modal would create a second policy path. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 19e4c043d01f. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (12 earlier review cycles; latest 8 shown)
|
|
@clawsweeper re-review Please review final head |
|
🦞🧹 I asked ClawSweeper to review this item again. |
|
🦞👀 Re-review progress:
|
|
@clawsweeper re-review Head bc223a5 also consolidates static route metadata and path lookups, rejects inherited native-route IDs, and covers ordinary-browser middle-click dismissal as well as intercepted navigation. The full 18-file gate and 314 focused tests pass; a fresh cumulative Codex review through P2 has no actionable findings. The PR body preserves the native proof limits, including the existing Usage-to-Chat restoration follow-up and the unverified web-popup destination. Hosted CI on this head is still pending. |
|
🦞🧹 I asked ClawSweeper to review this item again. |
|
Merged via squash.
|
* fix(ui): preserve actions in expanded Markdown tables Keep the expanded modal under the transcript that owns file and session navigation. Reuse the shared modal and Markdown block lifecycle, removing duplicate observer, focus and host bookkeeping across Chat and Custodian. Validation: two fail-before browser scenarios; eight passing browser cases; 27 UI unit cases; type, lint, style and format gates; P2 review. * fix(ui): preserve expanded table focus navigation * test(ui): exercise expanded tables through the production bundle * test(worker): control durable response loss explicitly * test(ui): preserve filtered assistant palette fixtures * fix(ui): preserve expanded table lifecycle and routed link dismissal
Closes #136414
What problem this solves
Expanding a Markdown table moved its file and session links outside the Chat transcript's navigation owner. Inline actions worked, but the same expanded actions could silently do nothing. Tables also duplicated the shared modal's dialog and focus lifecycle.
Repair and scope
Keep expanded tables under their transcript and use the shared modal. One Markdown block directive owns table, code-block and diagram enhancement and teardown across Chat, sidebars and Ask OpenClaw. This removes duplicate scans, references and bespoke dialog/focus bookkeeping while preserving copying, overflow, rendering and existing navigation policy.
The table owner reserves expansion before the lazy modal import, preventing duplicate dialogs and abandoned requests from reopening after disconnection. Reconnection reacquires viewport observation independently of one-time enhancement. Routed and browser-default middle-click activation use the same delayed dismissal handler. Right-click menus and file references without destinations preserve the table.
Retained Chat panes need explicit retirement even while their DOM remains connected. Browser Back could hide the pane that owned an expanded table while leaving its native modal open and blocking the active pane. The existing transcript-session retirement boundary now releases that pane's table owner, including open and pending modals. Both pane DOM instances remain retained, and each can reopen its table when presented again.
Chat retains file previews and session navigation by click, Enter and Space. Ask OpenClaw retains copying, scrolling, expansion, web links and session click/Enter navigation. Its session Space activation and workspace-file preview were already unavailable and remain outside this repair. The Control UI documentation describes that boundary.
The startup cleanup consolidates each route's icon, title and subtitle into one exhaustive presentation table and prepares the static path/alias index once. It removes duplicate route registries, repeated scans and a redundant forwarding layer while preserving all 48 routes, alias identity, casing, mount inference, dynamic-route precedence and translation on each call. The same route owner now rejects inherited property names such as
constructoras route IDs; previously, valid-shaped corrupt native route memory could restore them as destinations.Validation
The original expanded-link failure was reproduced in real Chromium after successful inline controls. Preserved production bundles also reproduce duplicate lazy activation, lost observation after an injected detach/reconnect, and accepted middle-click opening the browser panel behind the still-open table. After repair, native input opens one dialog, routed middle-click dismisses it, right-click preserves it, Escape restores focus, and the retained owner regains overflow observation. Synthetic browser-transport replies prove routing and panel visibility, not a remote page load.
The pane-retirement unit and browser-history regression both fail before the cleanup. After repair, native Back/Forward proof keeps both pane instances in the same document, leaves no modal on the hidden pane, and allows the active pane to open exactly one table. The final candidate passed 314 tests across 13 files: 271 regular UI cases, 18 isolated cases and 25 production-bundle browser cases. That includes all 8 table browser cases with capture disabled and normal animations, sidebar settings, session hovercards, Markdown rendering, native route memory and retained transcript behavior. The full 18-path changed gate is green on the same source tree.
The route cleanup preserves 2,737 before/after path/base results across all 48 routes and their aliases. The native route-memory regression has three inherited-key failures before the producer fix and all ten cases passing after. A separate production-bundle Chromium probe with synthetic native-host flags passes two of three contracts: the inherited
constructorentry is discarded and Chat remains usable; an explicit Chat deep link remains selected. The valid remembered-Usage control still fails before and after, as described below. The final build contains the same four compiled native route owners; this is retained browser evidence, not a new replay or an all-green suite.The canonical
pnpm ui:buildpasses at 349,347 bytes of startup JavaScript gzip, with eight requests and no performance violations. This uses main's baseline from #136817. The previous published head and untouched main both exceeded the earlier threshold; #136817 supplied the upstream correction. This PR changes neither the baseline nor its caps or allowances.The final review exposed a regular-browser middle-click path that the intercepted-browser test missed. The expanded owner now recognizes the native auxiliary-link activation contract. Extending the existing test across both routing modes produces one failure before repair and passes afterward. Identical real Chromium input confirms all four modal outcomes: web/session middle-click closes and restores Expand focus; right-click and an href-less file reference retain the dialog. The session popup has the expected URL. The raw broader probe remains 3/4 because its web popup ends at a browser error page and fails the extra destination-URL check; page loading is not claimed.
The earlier hosted CI failure came from an assistant-panel backdrop coordinate derived while Web Awesome's opening scale animation was moving the dialog. Two local attempts with the old coordinate passed; no local failure is claimed. The corrected test clicks the stable viewport margin, where native event evidence confirms the dialog backdrop is targeted during the animation. It retains dismissal and focus assertions without adding sleep, retries or animation suppression.
Retained test-only CI repairs make the assistant fixture respect session search and make request-loss fixtures close their socket after recording receipt, avoiding a heartbeat race. The durable-operation cases still require three identical requests, three connections and three ready admissions; portal operations still must not replay. These fixtures do not change production behavior.
Independent review and hosted CI: fresh cumulative Codex review through P2 is clean with no actionable findings. The full 18-path changed gate is green. Hosted run 33715875522 completed successfully for published head
bc223a5fec50: 141 passed, 42 skipped, including both previously failing UI startup lanes. The build log identifies checkout45580e771c4d(this PR merged into main529070704174) and 348,153 bytes of startup gzip under the 350,141-byte limit. That hosted merge build is distinct from the local 349,347-byte build above; no performance gain is inferred from the difference.Against the integrated main base, the 18-path diff is production +322/−418, net −96; tests/support +743/−195, net +548; docs +11. Of the production reduction, route presentation removes 66 lines and prepared route lookup removes 27. Pure moves count on both sides without extra deletion credit.
Before, the expanded file link leaves the preview closed:
After, the same action opens the file preview:
Review disposition and remaining limits
The latest ClawSweeper review, refreshed at 04:59 UTC, covers
bc223a5fec50and reports no actionable code/security findings. Its Rank-up request to complete exact-head hosted checks is satisfied by the green run above. Its remaining confidence gap was a DNS failure retrieving current-main blobs and proof media; the root review directly inspected current source and retained synthetic captures.Main
111ffb9e51aacombines cleanly with this head and preserves all ten reviewed production files. The directly inspected upstream changes concern GitHub hovercard identity/error rendering, forwarding an existing embed option, mock user-list responses, documentation and test inventory/scripts. They do not change the repaired table-event, pane-retirement or route owners. This later-main comparison is source evidence; those newer upstream changes were not executed in the recorded hosted checkout45580e771c4d.The table lifecycle findings and rank-up requests are addressed through lazy-expansion reservation, observation reacquisition, retained-pane retirement and the existing routed-link dismissal owner. The request to remove Ask OpenClaw session click/Enter support is not applied: the existing session-link titler supplies the anchor destination. A twelve-case preserved-bundle matrix confirms eight click/Enter navigations and four unchanged Space non-actions across inline and expanded views. No new Ask navigation capability is introduced.
Named follow-up: Native remembered-Usage restoration is overwritten by default-Chat canonicalization. A valid remembered Usage destination is briefly selected and then replaced by Chat in the same document, both before and after this change. It remains unresolved here. Existing code-block ResizeObserver warnings, standalone diagnostic serialization, and possible palette selection races with genuinely matching late results also remain follow-ups.
Local native-input proof uses macOS Chromium and synthetic task-owned data; it does not prove a real native app or live provider. Hosted Linux CI is recorded separately above. An earlier unchanged-head state-lease CI attempt timed out before its test callback; one bounded retry passed, with that startup delay still unexplained.