Skip to content

fix(ui): preserve sidebar title space without child disclosure - #172999

Closed
steipete wants to merge 4 commits into
mainfrom
fix/sidebar-child-reveal-e2e
Closed

steipete wants to merge 4 commits into
mainfrom
fix/sidebar-child-reveal-e2e

Conversation

@steipete

@steipete steipete commented Oct 15, 2026 •

Copy link
Copy Markdown
Contributor

What Problem This Solves

Keep short session titles readable in the agent roster after child disclosures moved to the trailing edge. Childless rows still allocated an empty disclosure track and its grid gap, leaving “Project next steps” one pixel short on touch layouts. Allocate that track only when the row has a child disclosure. Preserve the trailing disclosure, the 136px touch action reserve, and all three 44px action buttons.

The geometry fixture uses the complete short titles and measures indicators against the actual link edge. Its existing collapsedLinkBounds assertion stays unchanged, and child disclosures are opened only if currently collapsed so automatic reveal remains valid.

Current candidate: 806f935cb040126f54ca40baad2768a4baaf32c9, after an ordinary merge of 8b74d5e0dcfb0840976b58cb26f74ef4b77a94bf. The two remaining files are byte-identical to the reviewed 6ffb40c8a31c209f137b4b3820802ee883f06b5d candidate. The video-selector conflict resolves to exact current-main content and is no longer part of this PR.

Two files; 696 → 714 lines (+18 net; +30/−12). Production CSS: 334 → 344 lines. Geometry fixture: 362 → 370 lines. The added CSS selects the existing desktop, mobile, and coarse-pointer layouts without introducing a new component or state owner.

Evidence

Check Result
Retained formatting Passed
Stylelint, touched stylesheet Passed
pnpm tsgo:ui Passed
Current git diff --check Passed
Two nests spawned sessions cases, personal pin off/on Passed
Four recursive-indicator/title geometry cases: light 258px, light 334px, dark 286px, touch 334px Passed, including the full short titles
Native-pointer promotion case Local setup gap, described below
Targeted E2E run 6 passed, 1 setup failure, 9 unselected; 463.41s; one harness-owned UI build
Independent P0–P2 autoreview Scoped clean; no actionable findings; both final files are identical to the reviewed candidate
Integration review Final CSS, complete geometry suite, unchanged file hashes, and retained screenshots inspected
Current exact-head full CI Run 38770116488, attempt 1: all jobs passed except Control UI E2E 7/9 and its aggregate CI gate. All 95 files / 454 assertions in that shard passed; one shared-fixture unhandled rejection is qualified below.

The local proof and screenshots are retained from the reviewed candidate, not reruns on the integrated head. The selected cases ran once with pnpm test:ui:e2e --maxWorkers=1 and the pattern nests spawned sessions|keeps the drag source still|keeps recursive indicators. The normal harness built the updated bundle; there was no extra manual head build or local full suite. The integration changes no remaining PR file, so these results are reused without another build or test run.

The retained local proof used the committed toolchain: Vitest 5.0.3, Vite 8.3.3, TypeScript 7.1.0-dev.20260928.1, Solid/web/compiler 2.0.0-rc.14, and the Solid Vite plugin 3.0.0-next.49.

The native-pointer promotion case did not reach the changed disclosure setup locally. Both the baseline (897a824e7ed5c966582d8124d1549f7dea77b334) and candidate (based on 29fded63cd05d087b9daa81ba3ef09f4e8132e8a) failed the initial-roster wait during page.goto. The candidate diagnostic had booted=true and gatewayPhase=connected, but routeReady=false, rosterReady=false, and the chat route still loading; no page errors were reported. This remains an investigated local bootstrap gap, not passing native-drag proof. Source-server mode, readiness gates, timeouts, native pointer actions, and Gateway patch assertions are unchanged.

Current full CI failed only on route.fulfill: Route is already handled! in control-ui-e2e-suite.test-support.ts:140, associated with chat-native-turn-activity.e2e.test.ts → “keeps roster activity until terminal delivery while chat foreground activity resumes on tools and retries.” All 95 test files and 454 assertions in that shard passed. The exact CI checkout was d0c0c02c1849c7b71b62e1c38aae336557e7bb7e, merging this PR into 34d3a8e82190678ae08a5c88b3cdafd60b4bd31f. The held-route helper and associated test are unchanged by this PR. The helper removes interception before all held callbacks have finished, allowing a callback to fulfill an already-handled request. This specific fixture defect has independent failing/passing regression evidence and a reviewed fix in #171784 at fed1eda6a25b6a25e6d066d514ead15c423793b0; its full CI run 38769076371 is green. It is not a sidebar layout or disclosure assertion failure. Native admin admission is requested for this qualified pre-existing shared-fixture defect; no CI success is claimed for the failed shard. All other current-head jobs, including all UI unit, browser-extension, and real-Gateway jobs, passed.

Earlier-head CI (18b8586acb5021956c9512182dbdbe0ea1514c97, run 38734486030) had Talk and UI-unit failures. Those do not recur on the current head and are not used for admission.

Temporary diagnostic code was removed before review. Screenshots use synthetic sessions, were inspected in full, and were rechecked for this unchanged CSS.

Screenshots

Touch, 334px sidebar: full short titles fit, with all pin/archive/menu actions visible.

Before After
Touch sidebar before Touch sidebar after

Pointer, 258px sidebar: short titles and trailing child indicators remain aligned.

Before After
Pointer sidebar before Pointer sidebar after

Reserve the trailing disclosure track only for rows with children, while preserving the three 44px coarse-pointer actions. Align sidebar nesting and promotion fixtures with intentional child auto-reveal, retaining the geometry and drag assertions.
@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.

@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-15T16:37:17.712034Z 806f935 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 P2 Normal backlog priority with limited blast radius. proof: sufficient ClawSweeper judged the real behavior proof convincing. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. rating: 🦞 diamond lobster Very strong PR readiness with only minor maintainer review expected. labels Oct 15, 2026
@clawsweeper

clawsweeper Bot commented Oct 15, 2026

Copy link
Copy Markdown
Contributor

Codex review: blocked before merge.

What this changes

This PR removes unused disclosure spacing from childless sidebar rows and aligns existing browser fixtures with automatic child reveal.

Example: A touch device displays the agent roster at a 334px sidebar width.

  • Before: “Project next steps” lacks enough title space because its childless row reserves an empty disclosure gap.
  • After: The full title fits while parent disclosures and the three 44px touch actions retain their space.

Review scores

Measure Result What it means
Overall readiness 🦞 diamond lobster (5/6) Focused root-cause repair with directly inspected visual evidence, meaningful existing browser coverage, and no actionable findings.
Proof confidence 🦞 diamond lobster (5/6) ✨ media proof bonus Sufficient (screenshot): Inspected before/after screenshots show the production Control UI roster with synthetic sessions at 334px touch and 258px pointer widths; leaf titles regain space while trailing disclosures and visible touch actions remain intact.
Patch quality 🦞 diamond lobster (5/6) No actionable review findings were identified.

Product

Kind: Bug fix · Worth it: Yes · Fix scope: Complete
User problem: Short session titles are clipped by unused disclosure spacing in the agent roster.
Reason: A focused CSS repair restores useful text space while preserving the established controls, and the feature owner's authored direction requires no additional product approval.

Regression provenance

Possible regression — suspected (reviewed change). No predecessor PR is attributed.

Merge readiness

⛔ Blocked before merge - 1 item remains

Keep open: this PR fixes a current sidebar readability regression, has inspected visual evidence, and introduces no actionable defect; overlapping work needs one landing path.

Priority: P2
Reviewed head: 6ffb40c8a31c209f137b4b3820802ee883f06b5d
Owner decision: Required. See Decision needed.

Decision needed

  • Question: Should this PR own the combined sidebar repair, or should the already-open layout and fixture PRs remain the landing paths?
  • Recommendation: Use this combined repair: Keep this PR as the landing path and reconcile the overlapping layout and fixture work in the earlier PRs.
  • Why: Verified overlapping patches exist in two same-author open PRs, and no recorded maintainer choice selects a canonical landing path.

Before merge

  • Resolve maintainer decision - Resolve the maintainer decision shown above before merge.

Findings

None.

Tests

  • Missing end-to-end proof: The native-pointer promotion case did not complete locally because baseline and candidate bootstrap failed before the changed setup; exact-head browser CI remains pending.
Agent review details

How this fits together

The Control UI projects Gateway sessions into sidebar rows; the row renderer emits optional child disclosures, and roster CSS allocates space for titles, indicators, and actions.

flowchart LR
  A[Gateway sessions] --> B[Sidebar projection]
  B --> C[Session row renderer]
  C --> D[Optional child disclosure]
  C --> E[Roster grid styles]
  D --> E
  E --> F[Visible titles and actions]
Loading

Technical review

Best possible solution:

Land one coordinated layout repair that restores leaf-title space while preserving trailing disclosures, touch actions, and the existing browser assertions.

Do we have a high-confidence way to reproduce the issue?

Current-main grid allocation and conditional disclosure rendering establish the unused-gap path, corroborated by inspected screenshots and the earlier repair's reported touch overflow; no target code was executed during this review.

Is this the best way to solve the issue?

The patch fixes the layout owner directly and strengthens existing browser coverage without introducing another component, state owner, or configuration option.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning medium; reviewed against 04296fd25a0a.

Provenance checked

  • Trailing disclosure and touch action columns keeps the original intent (12ec309: Keep persistent child disclosures visible and give touch actions separate space.)
  • Short-title geometry fixtures changes intended behavior with a stated reason (13d8c76: Shorten label-fit cases after touch actions gained reserved space and measure collapsed indicators against the actual link edge.)
  • Indicator corner clearance keeps the original intent (5b22b55: Keep status marks clear of the painted rounded corner without reducing unmarked title space.)
  • Child-expansion fixture setup keeps the original intent (12ec309: Newly discovered persistent children automatically reveal their parent while ordinary updates preserve manual collapse.)

Testing

Proof path: shipped entry point.

Security

None.

Evidence

What I checked:

  • Pinned introduced change: The introduction diff changes only roster grid allocation and three existing browser fixtures; it preserves disclosure rendering, action sizes, native drag assertions, and the collapsed link-edge assertion. (ui/src/styles/sidebar-agent-roster.css:217, 6ffb40c8a31c)
  • Current-main failure path: Current main reserves a disclosure column even when the renderer emits no disclosure; the PR conditionally allocates that column and anchors touch actions to the last explicit track. (ui/src/styles/sidebar-agent-roster.css:219, 04296fd25a0a)
  • Conditional disclosure owner: The production renderer emits a direct-child disclosure button only when childSessionKeys is nonempty, matching the new CSS selector. (ui/src/components/app-sidebar-session-row-render.tsx:263, 6ffb40c8a31c)
  • Inspected visual evidence: Inspected all four prepared screenshots directly: before/after touch at 334px and pointer at 258px show recovered leaf-title space with parent disclosures and touch actions retained. (6ffb40c8a31c)
  • Original layout and fixture intent: The child-reveal change intentionally kept trailing disclosures and separate touch action space; the later geometry adjustment shortened labels and corrected collapsed alignment. This PR preserves those controls and alignment while restoring the original readable labels. (ui/src/e2e/sidebar-agent-first.e2e.test.ts:38, 13d8c76e6c11)
  • Overlapping open work: Read the bodies and patches of the earlier touch-title repair and native-consumer fixture repair; their overlapping hunks establish shared work rather than title similarity.

PR surface

Source +10, Tests +13. Total +23 across 4 files. Added test files: 0.

View PR surface stats
Area Files Added Removed Net
Source 1 15 5 +10
Tests 3 21 8 +13
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 4 36 13 +23

Labels

Label changes:

  • add P2: Short sidebar titles lose readable space, but navigation and session actions remain available.
  • add proof: sufficient: Contributor real behavior proof is sufficient.
  • add proof: 📸 screenshot: Contributor real behavior proof includes screenshot evidence.
  • add rating: 🦞 diamond lobster: Overall readiness is 🦞 diamond lobster; proof is 🦞 diamond lobster and patch quality is 🦞 diamond lobster.

Label justifications:

  • P2: Short sidebar titles lose readable space, but navigation and session actions remain available.
  • rating: 🦞 diamond lobster: Overall readiness is 🦞 diamond lobster; proof is 🦞 diamond lobster and patch quality is 🦞 diamond lobster.
  • proof: sufficient: Contributor real behavior proof is sufficient.
  • proof: 📸 screenshot: Contributor real behavior proof includes screenshot evidence.

Rating scale

6/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.

Workflow

ClawSweeper edits this one comment on every review. Comment @clawsweeper re-review for a fresh review only. Repair and merge execution lanes are retired.

Reviewed October 15, 2026, 5:55 AM ET / 09:55 UTC.

@steipete steipete changed the title fix(ui): preserve sidebar title space with trailing disclosures fix(ui): preserve sidebar title space without child disclosure Oct 15, 2026
@steipete

Copy link
Copy Markdown
Contributor Author

The demonstrated touch-title clipping is fixed on main by #172930 (e95851fa65d3a91db17b4825cf832b12a4ef07a1), including the full-title regression fixtures.

I compared the landed source with this PR. The remaining changes extend the empty-column removal to desktop/mobile layouts and adjust geometry/disclosure setup. There is no remaining reproduced failure that requires those changes, so this PR is superseded and will not be merged.

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. P2 Normal backlog priority with limited blast radius. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🦞 diamond lobster Very strong PR readiness with only minor maintainer review expected. size: XS

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant