Skip to content

refactor(ui): simplify native session menu presentation - #173230

Merged
steipete merged 4 commits into
mainfrom
solid2/w-polish-session-menu-details
Oct 15, 2026
Merged

steipete merged 4 commits into
mainfrom
solid2/w-polish-session-menu-details

Conversation

@steipete

@steipete steipete commented Oct 15, 2026 •

Copy link
Copy Markdown
Contributor

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 main 644ce068bc2ddbf098723ef013f42f5c123003e0 after 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.

Check Result
Current UI types pnpm tsgo:ui passed on this integrated candidate tree
Current independent Codex review through P2 Scoped-clean, zero actionable findings; final source-integrity verification passed. Review scope was the six-file patch; unchanged caller contracts were not included in its isolated bundle
Focused local tests Retained unchanged-input proof: icon picker 2/2 and session menu 61/61, each run once with one worker; these were not rerun on the refreshed head
Formatting and scoped oxlint Passed on the byte-identical authored patch at the earlier head; current staged diff check passed
Production Knip Final-head pnpm deadcode:knip passed cleanly in 6 minutes 51 seconds; no new ignores
Current full CI Run 38808900538, attempt 1, completed successfully on this exact head: all 64 jobs terminal, 38 successful and 26 skipped. All three UI unit shards, all nine browser shards, both real-Gateway shards and performance passed; ci:full remained selected
Current paired build/performance Passed in job 116677369644: startup JS 350,765 B gzip, eight requests; CSS 45,894 B gzip, one request, paired CSS delta 0 B. Same-runner comparison of checkout 744f6a317f0f with base 7d33a3cdbc62: Chat boot −138 B, New Session boot −42 B, request counts unchanged. No standalone paired initial-entry JS base integer or delta was printed
LOC Before After Delta
Production, four files 1,260 1,245 −15
Coupled tests, two files 1,137 1,136 −1

The 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 was Control UI update run E2E > resumes the same update after restart and keeps its successful report visible, timing out after 30,000 ms at update-run.e2e.test.ts:225:68 on its success headline; the aggregate gate also failed. Scheduled main 38794323475, head d0d0f86547285fee3eb8d861510d1878b9740deb, 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, and src/cron/store/run-receipt-drain.ts. One clean exact-base 64c293e5bef584 run 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 by 8958e91f5e04c022fb7f4b92f69e6c098031b61f. Subsequent runs passed the named cases. Both published repairs are included here; their historical failed runs are not relabeled green.

@steipete steipete added the ci:full Keep ordinary native-locale CI selection on the next PR run. label Oct 15, 2026
@clawsweeper

clawsweeper Bot commented Oct 15, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

ClawSweeper review complete

ClawSweeper finished reviewing this revision. The review result is being finalized.

View the workflow run.

@steipete
steipete marked this pull request as ready for review October 15, 2026 15:23
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 15, 2026 •

Copy link
Copy Markdown
Contributor

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-15T21:21:16.904706Z 705240c New commits
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@clawsweeper clawsweeper Bot added P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. labels Oct 15, 2026
@clawsweeper

clawsweeper Bot commented Oct 15, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: stale review; fresh review needed.

Summary
The latest durable ClawSweeper review was for head 0537660bd0d3951425a285db173f47ff271811e1, but the PR head is now 705240c6301e5d24912b422f022c250fe9dd75ef. Its old verdict and PR readiness labels are no longer current.

Next step
Run or wait for a fresh ClawSweeper review on the current PR head.

Review history (1 earlier review cycle)
  • reviewed 2026-10-15T15:48:12.936Z sha 0537660 :: needs maintainer review before merge. :: none

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.
@clawsweeper clawsweeper Bot removed rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. labels Oct 15, 2026
@steipete
steipete merged commit b3010e6 into main Oct 15, 2026
117 checks passed
@steipete
steipete deleted the solid2/w-polish-session-menu-details branch October 15, 2026 21:59
@steipete

Copy link
Copy Markdown
Contributor Author

Merged via squash.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

app: web-ui App: web-ui ci:full Keep ordinary native-locale CI selection on the next PR run. P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. size: S

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant