Repository navigation
fix(control-ui): open owner submenus immediately on click - #174292
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
|
Codex review: needs maintainer review before merge. What this changesMake clicked submenus open immediately while preserving delayed hover opening. Example: Click Assign to… while its hover delay is pending.
Review scores
ProductKind: Bug fix · Worth it: Yes · Fix scope: Complete Merge readiness✅ Ready for maintainer review Keep this PR open under its explicit experimental hold; the focused fix addresses a source-confirmed click failure, and no introduced correctness or security defect was found. Priority: P2 Before mergeNone. FindingsNone. Tests
Agent review detailsHow this fits togetherThe shared Control UI menu binding translates pointer and keyboard input into Zag commands, while the existing overlay lifecycle owns popup admission, visibility, dismissal, and focus. flowchart LR
A[Submenu click] --> B[Shared menu binding]
B --> C[Zag OPEN command]
C --> D[Overlay lifecycle]
D --> E[Native popup]
E --> F[Owner choices and focus]
Technical reviewBest possible solution: Retain the focused shared-menu repair as a draft until the campaign lead evaluates the planned comparison and decides whether to promote it. Do we have a high-confidence way to reproduce the issue? The current-main click binding and pinned Zag state machine establish the pending-hover failure directly; the PR reports a failing-before/passing-after regression, but no execution was performed during this review. Is this the best way to solve the issue? Using the existing OPEN command fixes the ignored input at the shared binding without adding a visibility owner or changing hover preparation. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 67b7402dc5e5. Provenance checked
TestingProof path: in-process harness. SecurityNone. EvidenceWhat I checked:
Likely related people:
PR surfaceSource +5, Tests +14, Docs +3. Total +22 across 3 files. Added test files: 0. View PR surface stats
LabelsLabel changes:
Label justifications:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
Rating scale6/6 🦀 challenger crab · 5/6 🦞 diamond lobster · 4/6 🐚 platinum hermit · 3/6 🦐 gold shrimp · 2/6 🦪 silver shellfish · 1/6 🧂 unranked krab. Overall follows the weaker of proof and patch quality; ✨ marks media proof (a screenshot, video, or linked artifact) that directly shows the changed behavior. WorkflowClawSweeper edits this one comment on every review. Comment Reviewed October 16, 2026, 10:26 AM ET / 14:26 UTC. |
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. |
* commit 'a4c73619a5c': (29 commits) test: align model and Discord fixtures with runtime owners perf(sessions): reuse startup deletion discovery (#174408) fix(gateway): attribute ephemeral connections in normal logs (#174406) test(telegram): consolidate duplicate coverage (batch d117) (#173112) perf(doctor): avoid redundant backup and transcript reads (#174416) fix(update): avoid redundant reads for closed SQLite generations (#174426) fix(ui): Activity page tabs collapse to a few pixels on desktop (#173856) fix(decisions): skip prefilter for empty tool surfaces (#174269) perf(sqlite): retain unchanged database proofs across schema updates (#174409) refactor(test): remove duplicate export collision checks (#174391) fix: clear unused MCP and identity helper exports (#174421) fix(test): supply SQLite reliability fixture catalog refactor(mattermost): use the guarded transport directly (#174419) refactor(agents): trust prepared provider facts (#174388) fix(control-ui): open submenus immediately on click (#174292) test(anthropic): synchronize the late-send fixture with initialization refactor(ui): scope Plugins page state to Solid owners (#174281) perf(chat): pace board history refreshes and reuse cursors (#174407) perf(sqlite): bound session receipt scope publication (#174395) refactor(openrouter): share key budget test fixtures (#174340) ...
…157433 * commit '2e8bfec53fc1cf06c9e438f42b027a82e04ace9a': (29 commits) test: align model and Discord fixtures with runtime owners perf(sessions): reuse startup deletion discovery (#174408) fix(gateway): attribute ephemeral connections in normal logs (#174406) test(telegram): consolidate duplicate coverage (batch d117) (#173112) perf(doctor): avoid redundant backup and transcript reads (#174416) fix(update): avoid redundant reads for closed SQLite generations (#174426) fix(ui): Activity page tabs collapse to a few pixels on desktop (#173856) fix(decisions): skip prefilter for empty tool surfaces (#174269) perf(sqlite): retain unchanged database proofs across schema updates (#174409) refactor(test): remove duplicate export collision checks (#174391) fix: clear unused MCP and identity helper exports (#174421) fix(test): supply SQLite reliability fixture catalog refactor(mattermost): use the guarded transport directly (#174419) refactor(agents): trust prepared provider facts (#174388) fix(control-ui): open submenus immediately on click (#174292) test(anthropic): synchronize the late-send fixture with initialization refactor(ui): scope Plugins page state to Solid owners (#174281) perf(chat): pace board history refreshes and reuse cursors (#174407) perf(sqlite): bound session receipt scope publication (#174395) refactor(openrouter): share key budget test fixtures (#174340) ...
…/decision-onnx-v2-proof-20261016 * commit '2e8bfec53fc1cf06c9e438f42b027a82e04ace9a': (29 commits) test: align model and Discord fixtures with runtime owners perf(sessions): reuse startup deletion discovery (#174408) fix(gateway): attribute ephemeral connections in normal logs (#174406) test(telegram): consolidate duplicate coverage (batch d117) (#173112) perf(doctor): avoid redundant backup and transcript reads (#174416) fix(update): avoid redundant reads for closed SQLite generations (#174426) fix(ui): Activity page tabs collapse to a few pixels on desktop (#173856) fix(decisions): skip prefilter for empty tool surfaces (#174269) perf(sqlite): retain unchanged database proofs across schema updates (#174409) refactor(test): remove duplicate export collision checks (#174391) fix: clear unused MCP and identity helper exports (#174421) fix(test): supply SQLite reliability fixture catalog refactor(mattermost): use the guarded transport directly (#174419) refactor(agents): trust prepared provider facts (#174388) fix(control-ui): open submenus immediately on click (#174292) test(anthropic): synchronize the late-send fixture with initialization refactor(ui): scope Plugins page state to Solid owners (#174281) perf(chat): pace board history refreshes and reuse cursors (#174407) perf(sqlite): bound session receipt scope publication (#174395) refactor(openrouter): share key budget test fixtures (#174340) ...
…ision-accounting-native * commit '2e8bfec53fc1cf06c9e438f42b027a82e04ace9a': (29 commits) test: align model and Discord fixtures with runtime owners perf(sessions): reuse startup deletion discovery (#174408) fix(gateway): attribute ephemeral connections in normal logs (#174406) test(telegram): consolidate duplicate coverage (batch d117) (#173112) perf(doctor): avoid redundant backup and transcript reads (#174416) fix(update): avoid redundant reads for closed SQLite generations (#174426) fix(ui): Activity page tabs collapse to a few pixels on desktop (#173856) fix(decisions): skip prefilter for empty tool surfaces (#174269) perf(sqlite): retain unchanged database proofs across schema updates (#174409) refactor(test): remove duplicate export collision checks (#174391) fix: clear unused MCP and identity helper exports (#174421) fix(test): supply SQLite reliability fixture catalog refactor(mattermost): use the guarded transport directly (#174419) refactor(agents): trust prepared provider facts (#174388) fix(control-ui): open submenus immediately on click (#174292) test(anthropic): synchronize the late-send fixture with initialization refactor(ui): scope Plugins page state to Solid owners (#174281) perf(chat): pace board history refreshes and reuse cursors (#174407) perf(sqlite): bound session receipt scope publication (#174395) refactor(openrouter): share key budget test fixtures (#174340) ...
…158510 * commit '26cbd409b9753a9318a6dc09f97b2f0b4b776a09': (29 commits) test: align model and Discord fixtures with runtime owners perf(sessions): reuse startup deletion discovery (#174408) fix(gateway): attribute ephemeral connections in normal logs (#174406) test(telegram): consolidate duplicate coverage (batch d117) (#173112) perf(doctor): avoid redundant backup and transcript reads (#174416) fix(update): avoid redundant reads for closed SQLite generations (#174426) fix(ui): Activity page tabs collapse to a few pixels on desktop (#173856) fix(decisions): skip prefilter for empty tool surfaces (#174269) perf(sqlite): retain unchanged database proofs across schema updates (#174409) refactor(test): remove duplicate export collision checks (#174391) fix: clear unused MCP and identity helper exports (#174421) fix(test): supply SQLite reliability fixture catalog refactor(mattermost): use the guarded transport directly (#174419) refactor(agents): trust prepared provider facts (#174388) fix(control-ui): open submenus immediately on click (#174292) test(anthropic): synchronize the late-send fixture with initialization refactor(ui): scope Plugins page state to Solid owners (#174281) perf(chat): pace board history refreshes and reuse cursors (#174407) perf(sqlite): bound session receipt scope publication (#174395) refactor(openrouter): share key budget test fixtures (#174340) ...
…esafe-decision-native * commit '26cbd409b9753a9318a6dc09f97b2f0b4b776a09': (29 commits) test: align model and Discord fixtures with runtime owners perf(sessions): reuse startup deletion discovery (#174408) fix(gateway): attribute ephemeral connections in normal logs (#174406) test(telegram): consolidate duplicate coverage (batch d117) (#173112) perf(doctor): avoid redundant backup and transcript reads (#174416) fix(update): avoid redundant reads for closed SQLite generations (#174426) fix(ui): Activity page tabs collapse to a few pixels on desktop (#173856) fix(decisions): skip prefilter for empty tool surfaces (#174269) perf(sqlite): retain unchanged database proofs across schema updates (#174409) refactor(test): remove duplicate export collision checks (#174391) fix: clear unused MCP and identity helper exports (#174421) fix(test): supply SQLite reliability fixture catalog refactor(mattermost): use the guarded transport directly (#174419) refactor(agents): trust prepared provider facts (#174388) fix(control-ui): open submenus immediately on click (#174292) test(anthropic): synchronize the late-send fixture with initialization refactor(ui): scope Plugins page state to Solid owners (#174281) perf(chat): pace board history refreshes and reuse cursors (#174407) perf(sqlite): bound session receipt scope publication (#174395) refactor(openrouter): share key budget test fixtures (#174340) ...
…/decision-tool-v2-proof-20261016 * commit '26cbd409b9753a9318a6dc09f97b2f0b4b776a09': (29 commits) test: align model and Discord fixtures with runtime owners perf(sessions): reuse startup deletion discovery (#174408) fix(gateway): attribute ephemeral connections in normal logs (#174406) test(telegram): consolidate duplicate coverage (batch d117) (#173112) perf(doctor): avoid redundant backup and transcript reads (#174416) fix(update): avoid redundant reads for closed SQLite generations (#174426) fix(ui): Activity page tabs collapse to a few pixels on desktop (#173856) fix(decisions): skip prefilter for empty tool surfaces (#174269) perf(sqlite): retain unchanged database proofs across schema updates (#174409) refactor(test): remove duplicate export collision checks (#174391) fix: clear unused MCP and identity helper exports (#174421) fix(test): supply SQLite reliability fixture catalog refactor(mattermost): use the guarded transport directly (#174419) refactor(agents): trust prepared provider facts (#174388) fix(control-ui): open submenus immediately on click (#174292) test(anthropic): synchronize the late-send fixture with initialization refactor(ui): scope Plugins page state to Solid owners (#174281) perf(chat): pace board history refreshes and reuse cursors (#174407) perf(sqlite): bound session receipt scope publication (#174395) refactor(openrouter): share key budget test fixtures (#174340) ...
Zag's menu machine ignores TRIGGER_CLICK on a submenu trigger while its 200 ms hover-open delay is pending, so clicking into a submenu (e.g. the chat header's assign-owner menu) always waited ~200 ms regardless of render cost. Submenu trigger clicks now open the submenu directly unless the event was prevented; keyboard navigation, hover behaviour and idle preparation (openclaw#173867) are unchanged. Seven interleaved AWS pairs per size, pointerdown to rendering opportunity: 30 owners first open 214 -> 19 ms, second 216 -> 16 ms; 126 owners first 224 -> 34 ms, second 221 -> 28 ms; zero long frames across 56 opens. Runtime +5 LOC. Native menu tests 118/118, owner-assignment e2e 12/12; full UI e2e passes apart from a Crabline lease-permission failure reproduced on main. Exact-head CI green.
Related: #173867
What Problem This Solves
Clicking Assign to… while moving into the submenu waits for the hover delay instead of opening immediately. The cold-load campaign still measured 297–314 ms owner-menu opens after idle roster preparation.
User Impact
A 126-owner menu now has its body ready in 16.9 ms and reaches its first rendering opportunity in 33.7 ms. All owners, avatars, search, keyboard navigation, and the existing opening animation remain available. No configuration or migration is needed.
Why This Change Was Made
Zag's pending-hover state ignores
TRIGGER_CLICKbut acceptsOPEN. The shared menu adapter now routes accepted submenu clicks through its existing open command. The native overlay still owns visibility, focus, cancellation, and sibling dismissal. Hover keeps its existing delay; root-menu clicks keep their toggle behavior. Idle roster preparation is unchanged.Runtime delta: +5 lines (6 added, 1 removed). This replaces the ignored submenu click-forwarding path; the small branch preserves root-toggle versus submenu-open semantics. No virtualizer, new state, dependency, or server change. The requested diff-stat glob also counts the TSX regression test: +19 lines including that test, excluding docs.
Evidence
One quiet AWS c7a.4xlarge lease,
cbx_a0d28533c6b5(16 CPUs, 30 GiB RAM), repository Playwright Chromium 156, Team-scale production-bundle bench and campaign LoAF/mutation/RPC probes. Seven interleaved pairs per size: 28 untraced reloads, 56 measured opens. Separate traced opens supply CPU/layout attribution. Baseline reverses only this production patch in the same pinned checkout; both bundles use headd60183716333047497cb94c12d5a57466ebaeb2fas build identity.Milliseconds: median (IQR width, inclusive quartiles), baseline → candidate.
The rendering-opportunity metric is a task posted after the first ready animation frame, an upper bound rather than a compositor presentation timestamp. Every roster was fully prepared before pointerdown; every open retained exactly 30 or 126 owner rows. No measured open produced a long animation frame. The fixed ~200 ms admission wait, not roster construction, dominates the baseline. Timings were not measured on the shared Mac.
Opening attribution
The dominant delay is the pending-hover state, which ignores click activation. For 126 owners, pointerdown →
overlay-showfalls from 191.5 ms (IQR 0.30) to 1.6 ms (IQR 0.10), across the seven untraced pairs.Separate 126-owner first-open CPU/trace captures, restricted to pointerdown through animation completion:
CPU rows are diagnostic single captures, not the seven-pair timing comparison, and are not additive. Profiling inflates absolute work. All eligible bundle frames mapped successfully (zero unmapped). Roster construction/sort/filter and avatar construction had no opening-interval samples; this standard fixture uses initial avatars and makes no owner-avatar image requests during opening. Existing assignment E2E also covers actual avatar images, search and 1,000-person directories.
extensions/qa-lab/src/control-ui-automation-management.real-gateway.e2e.test.ts, case “configured owners and admin chat manage a Telegram-created job while a non-owner cannot.” Crabline rejects the AWS lease’s group-writable artifact ancestry withPrivate mutation boundary is writable by another POSIX principal.It fails during transport setup, before this case starts its Gateway or browser. The same case reproduces with the identical stack on current main ec90dc1ef23d, in a separate checkout with its own frozen-lockfile install on the same lease. No permissions, tests, or guards were weakened.d60183716333047497cb94c12d5a57466ebaeb2f. The campaign lead owns review and landing; no automatic merge is requested.Full-suite and main-comparison commands
The main comparison selects only the failing case: it failed identically; its sibling was filtered out. Results and complete logs are retained locally with the campaign evidence.
Harness setup attempts are excluded from the sample set: the stock fixture omitted the assignment capability; the final fixture advertises the real method, uses native pointer input, and verifies enabled state and complete rosters. No application guard was bypassed.
The inspected screenshots contain only synthetic fixture data. They show the unchanged full menu after opening.