Repository navigation
refactor(ui): simplify native session menu presentation - #173230
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 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: stale review; fresh review needed. Summary Next step Review history (1 earlier review cycle)
|
Merge published main after GitHub mergeability remained UNKNOWN. Preserve the reviewed six-file menu cleanup unchanged.
Merge published main after the native Security Review publisher-source freshness guard refused the previous head. The authored six-file menu patch remains byte-identical; current-tree UI types and fresh independent scoped review pass.
|
Merged via squash.
|
Related: #171204
What Problem This Solves
Session menu presentation retains unused dropdown-slot plumbing and repeated renderer work after the native menu cutover. Every appearance-picker caller already renders inline. Remove that unused option and its caller arguments, memoize the icon grid’s tab-stop search, inline a one-use avatar wrapper, and simplify snooze rendering while keeping archive eligibility independent.
Menu entries, disabled actions, keyboard/focus behavior, the plugin appearance API, host tags, CSS classes, and lazy loading stay unchanged. Domain state and action authority remain with their existing owners. The compact-menu test now checks native menu roles instead of obsolete Web Awesome slot attributes; its cases and appearance-choice coverage remain intact.
Evidence
Current head:
705240c6301e5d24912b422f022c250fe9dd75ef. This head normally merges published main644ce068bc2ddbf098723ef013f42f5c123003e0after native admission correctly refused the preceding Security Review publisher’s stale workflow source. It requests a fresh CI/security evaluation without synthetic approval events or CI reruns. The authored change remains byte-identical to the reviewed six-file patch: 48 additions / 64 deletions. No main commits were replayed.pnpm tsgo:uipassed on this integrated candidate treepnpm deadcode:knippassed cleanly in 6 minutes 51 seconds; no new ignoresci:fullremained selected744f6a317f0fwith base7d33a3cdbc62: Chat boot −138 B, New Session boot −42 B, request counts unchanged. No standalone paired initial-entry JS base integer or delta was printedThe existing menu tests cover directory refresh/cancellation, scoped identity, permissions, compact navigation, keyboard/focus, appearance edits, and snooze behavior. Rendered markup and CSS are unchanged, so no screenshots, local application build, local E2E, or parity runs were taken under the polish budget. Broad proof and paired build/performance belong to PR CI.
Historical proof at the preceding head
At
dcab441c57695919f09e7f4a8a90b64cea564178, CI run 38797578511, attempt 1, completed failed: all 64 jobs terminal, 36 successful, 26 skipped, two failed. All three UI unit shards, both real-Gateway shards, and eight browser shards passed. Browser shard 5’s sole failed case wasControl UI update run E2E > resumes the same update after restart and keeps its successful report visible, timing out after 30,000 ms atupdate-run.e2e.test.ts:225:68on its success headline; the aggregate gate also failed. Scheduled main 38794323475, headd0d0f86547285fee3eb8d861510d1878b9740deb, had the same test, headline locator, timeout, and location. The job-name-only classifier was supplemented by raw test-signature comparison. The exact tested merge and 23 unchanged determining source objects were verified. This remains historical failed evidence; it does not qualify a different head or claim a repair.That head’s strict same-runner paired performance passed: startup JS 350,446 B gzip, eight requests; CSS 45,894 B gzip, one request, paired CSS delta 0 B. Chat boot decreased 163 B and New Session boot decreased 51 B with request counts unchanged. No standalone paired initial-entry JS base integer was printed. These are historical measurements, not measurements of the refreshed head.
That head’s production Knip failed on four unused core files:
src/agents/workspace-bootstrap-seed-verify.ts,src/claws/provenance-record.ts,src/claws/provenance-write.worker-contract.ts, andsrc/cron/store/run-receipt-drain.ts. One clean exact-base64c293e5bef584run failed with precisely the same four findings and no others in 443.84 seconds. Both failed results remain retained; no ignores were added.Earlier CI exposed the compact agent-label CSS issue repaired on main by
93f2e4248e6e924c56cbc8d5850b3265f21da183, and the obsolete cron dismissal click repaired by8958e91f5e04c022fb7f4b92f69e6c098031b61f. Subsequent runs passed the named cases. Both published repairs are included here; their historical failed runs are not relabeled green.