Skip to content

fix(ui): keep session Details clear of transcript content - #168494

Merged
steipete merged 3 commits into
mainfrom
fix/ui-details-mobile-clearance
Oct 11, 2026
Merged

steipete merged 3 commits into
mainfrom
fix/ui-details-mobile-clearance

Conversation

@steipete

@steipete steipete commented Oct 10, 2026 •

Copy link
Copy Markdown
Contributor

What Problem This Solves

The Details reservation left an unnecessary 50px gap on wide layouts, while simply removing it let Details overlap the first mobile message and its actions. Moving Details into the existing pane header keeps desktop geometry compact and mobile transcript controls clear. This PR also repairs the follow-on long-diagnostic overflow, split-pane Details click movement, and narrow native-header control overlap, while retaining subagent task progress and its footer constraints.

Evidence

The complete bundled E2E project passed: 659 files / 3,095 tests. The full UI config passed 22,519 tests (six existing skips), and the ten focused files passed 90 tests. P2 review is clean. Types, typed and boundary lint, styles, formatting, and architecture passed. Existing geometry assertions prove that Details intersects neither the first bubble nor its action row: on mobile, Details ends at y=41.59375 and the bubble starts at y=81.3125, leaving 39.71875px clear. All 16 inspected synthetic before/after images remain embedded below.

The coordinator has since armed auto-merge; the earlier unarmed-status sentence below describes the previous handoff. The inherited startup-recovery failure is addressed by integrating main's fixes ceea87b16be4 and 9cf7fc279c26.

Post-integration validation on merge commit 61a319bbb595: new-session-page.cloud-startup.runtime-load.e2e.test.ts passed all 3 cases locally through its current ui-e2e-serial-standalone owner with --maxWorkers=1, in 43.97 seconds. This includes “recovers a saved startup through toast recovery.” The merge was conflict-free, brought in main through c8278d736d8e, and made no additional authored code changes.

Problem and fix

Keep session Details clear of transcript content without restoring the extra desktop gap. Details now lives in the existing pane header; gutter notices retain their own bounded layout. Mobile message bubbles and their actions stay outside the Details button.

The CI follow-up fixes two consequences of that move. The subagent progress test now looks up the owning pane rather than the former conversation-frame ancestor; progress, scrolling, parent navigation, and composer assertions stay intact. A long cloud failure diagnostic had stretched an implicit grid track to 12,394px and placed the diagnostic's right edge at 6,705px in a 1,440px viewport. Restoring minmax(0, 1fr) keeps the complete, escaped, scrollable diagnostic within the pane.

Running the full bundled project also caught two header interaction regressions: revealing an inactive pane's actions moved Details under the pointer, and a narrow native header's controls covered the side-pane Close button. Keep Details at the trailing edge and allow the existing header controls to wrap within narrow panes. All controls and existing assertions remain; no extra bar or timeout changes.

Validation

On Linux through the repository harness:

  • Full ui-e2e-bundled project, no shard or file filter: 659 files / 3,095 tests passed, 868.01s.
  • All six original cluster files plus the four follow-up files: 10 files / 90 tests passed, 88.05s.
  • Full UI config: 1,640 files / 22,519 tests passed, six existing skips, 188.98s.
  • Production UI types and all six UI test-type graphs passed. Type-aware lint, boundary lint, styles, formatting, i18n, the Lit ratchet, and the whole architecture command passed (zero import cycles).
  • Final single-file subagent run with --maxWorkers=1: 2 tests passed, 21.36s. The final edit only applies formatter wrapping and its trailing comma to a screenshot call.

check-changed --base 240fa4ae59b3 reaches the inherited environment inventory failure: 456 variables versus budget 455. That scanner excludes the changed UI paths. All relevant remaining gates ran separately; no inventory or budget was changed.

The unchanged extra header tests pass on the pre-PR production implementation and fail on the initial PR implementation; both pass after this repair. P2 review is clean. Auto-merge remains disabled for coordinator image review.

Inspected synthetic screenshots

These captures contain only repository fixtures. Before images show current main for the original mobile clearance change, and the initial PR for its CI follow-ups. The after images show the final candidate.

View Before After
Desktop Desktop before Desktop after
Mobile transcript Mobile transcript before Mobile transcript after
Mobile message actions Mobile message actions before Mobile message actions after
Subagent pane, 1440px Subagent pane, 1440px before Subagent pane, 1440px after
Subagent pane, 768px Subagent pane, 768px before Subagent pane, 768px after
Cloud diagnostic, 1440px Cloud diagnostic, 1440px before Cloud diagnostic, 1440px after
Native window, 720px Native window, 720px before Native window, 720px after
Inactive split-pane Details Inactive split-pane Details before Inactive split-pane Details after

Move the existing Details control into the pane header so messages and
message actions remain unobstructed without restoring the desktop gap.
Keep one component mount through resize and retain dialog clearance for
Undo notices. Add mobile, compact, and desktop nonintersection checks.
@clawsweeper

clawsweeper Bot commented Oct 10, 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 10, 2026 14:46
@steipete
steipete enabled auto-merge (squash) October 10, 2026 14:46
@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: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. labels Oct 10, 2026
@clawsweeper

clawsweeper Bot commented Oct 10, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs changes before merge.

What this changes

This PR moves Details into the conversation header and constrains notices and narrow header controls.

Example: Open a conversation at a 390px viewport width.

  • Before: Details overlaps the upper edge of the first user message.
  • After: Details sits in the header above the message.

Review scores

Measure Result What it means
Overall readiness 🦐 gold shrimp (3/6) Direct visual evidence supports the useful layout repair, but the confirmed presentation regression still blocks merge.
Proof confidence 🦞 diamond lobster (5/6) ✨ media proof bonus Sufficient (screenshot): Inspected desktop and mobile before/after screenshots of the rendered Control UI with synthetic Gateway data show the relocated Details control clearing the mobile bubble and retaining compact desktop geometry.
Patch quality 🦐 gold shrimp (3/6) 1 actionable review finding remain.

Product

Kind: Bug fix · Worth it: Yes · Fix scope: Complete
User problem: Details can cover the first mobile message and its actions while consuming unnecessary desktop space.
Reason: The inspected captures show a concrete usability defect, and the maintainer-authored direction reuses existing presentation without adding configuration or changing shared state.

Merge readiness

⛔ Needs changes before merge - 1 item remains

Keep this PR open: the layout repair is useful, but the previously reported Details trigger bug remains unfixed.

Priority: P2
Reviewed head: 61a319bbb59546d3a7b6f362479239c32bb243fd

Before merge

  • Hide the Details trigger when its conversation is hidden (P2) - Promote Dashboard to the main panel, then focus it or close its conversation side pane. The shared header remains visible, so this mount renders an enabled Details button while transcriptVisible resolves to false. ChatDetails.toggle immediately returns for presented=false, leaving a control that does nothing; previously the trigger disappeared with its conversation ancestor. This previously reported finding remains unchanged at the reviewed head. Keep the component mounted and bind trigger visibility to the conversation's presentation owner.

Findings

  • [P2] Hide the Details trigger when its conversation is hidden — ui/src/pages/chat/chat-pane-layout-render.ts:188-192

Tests

  • Missing end-to-end proof: Extend the existing layout scenario to assert Details disappears when Dashboard hides the conversation and works again after restoration.
Agent review details

How this fits together

The Control UI combines session metadata and sidebar presentation into the pane header, transcript, composer, and Details dialog.

flowchart TD
  A[Session metadata] --> B[Chat pane]
  C[Sidebar layout] --> B
  B --> D[Pane header]
  B --> E[Conversation and composer]
  D --> F[Details dialog]
Loading

Technical review

Best possible solution:

Keep the header placement and component lifetime while making the Details trigger follow conversation visibility.

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

The mobile before image demonstrates the overlap, and source deterministically exposes the remaining no-op trigger when Dashboard is main and its conversation pane is hidden.

Is this the best way to solve the issue?

Moving the existing component into the header fixes geometry at its owner, but trigger visibility must follow the same presentation binding as the conversation.

Full review comments:

  • [P2] Hide the Details trigger when its conversation is hidden — ui/src/pages/chat/chat-pane-layout-render.ts:188-192
    Promote Dashboard to the main panel, then focus it or close its conversation side pane. The shared header remains visible, so this mount renders an enabled Details button while transcriptVisible resolves to false. ChatDetails.toggle immediately returns for presented=false, leaving a control that does nothing; previously the trigger disappeared with its conversation ancestor. This previously reported finding remains unchanged at the reviewed head. Keep the component mounted and bind trigger visibility to the conversation's presentation owner.
    Confidence: 0.99

Overall correctness: patch is incorrect
Overall confidence: 0.99

AGENTS.md: found and applied where relevant.

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

Provenance checked

  • Details placement and notice gutter changes intended behavior with a stated reason (b883658: Group session context and progress in one manually opened panel while preserving independently reachable notices and actions.)
  • Shared pane header and retained content keeps the original intent (08dacc1: Use shared header layout controls while retaining live content roots through panel rearrangements.)
  • Narrow header action clearance keeps the original intent (47de60d: Keep fixed-size actions reachable while session identity text yields in narrow panes.)

Testing

Proof path: shipped entry point.

Security

None.

Evidence

Acceptance criteria:

  • node scripts/run-vitest.mjs run --config test/vitest/vitest.ui-e2e.config.ts --configLoader runner ui/src/e2e/chat-panel-layout.e2e.test.ts ui/src/e2e/session-details-progress.e2e.test.ts --maxWorkers=1
  • node scripts/run-vitest.mjs run --config test/vitest/vitest.ui-e2e.config.ts --configLoader runner ui/src/e2e/mobile-shell-geometry.e2e.test.ts ui/src/e2e/subagent-task-notice.e2e.test.ts --maxWorkers=1
  • git diff --check

What I checked:

PR surface

Source +38, Tests +67. Total +105 across 11 files. Added test files: 0.

View PR surface stats
Area Files Added Removed Net
Source 7 52 14 +38
Tests 4 69 2 +67
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 11 121 16 +105

Labels

Label changes:

No label changes.

Label justifications:

  • P2: The PR addresses limited Control UI overlap and leaves a recoverable no-op control when the conversation is hidden.
  • rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦞 diamond lobster and patch quality is 🦐 gold shrimp.
  • status: ⏳ waiting on author: ClawSweeper has contributor-facing work open and is waiting for author action.
  • 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 need explicit maintainer commands such as @clawsweeper autofix or @clawsweeper automerge.

History

Review history (4 earlier review cycles)
  • reviewed 2026-10-10T14:53:07.987Z sha ffe5f28 :: needs changes before merge. :: [P2] Hide the Details trigger when its conversation is hidden
  • reviewed 2026-10-10T14:59:41.178Z sha ffe5f28 :: needs changes before merge. :: [P2] Hide the Details trigger when its conversation is hidden | [P2] Retain a constrained column for error notices | [P2] Update sibling geometry queries for the relocated Details panel
  • reviewed 2026-10-10T20:13:56.253Z sha 821743c :: needs changes before merge. :: [P2] Hide the Details trigger when its conversation is hidden
  • reviewed 2026-10-10T21:56:02.619Z sha 821743c :: needs changes before merge. :: [P2] Hide the Details trigger when its conversation is hidden

Reviewed October 10, 2026, 6:24 PM ET / 22:24 UTC (Revision 5).

@clawsweeper clawsweeper Bot added rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. and removed rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. labels Oct 10, 2026
@steipete
steipete disabled auto-merge October 10, 2026 16:37
Keep long diagnostics in a shrinkable grid track and keep Details stable when a split pane activates. Wrap narrow header controls within their pane. Update the subagent fixture to traverse the pane owner while retaining its geometry assertions.

Proof: full bundled UI E2E (659 files, 3095 tests), full UI config (1640 files, 22519 tests), all UI types, lint, styles, formatting, architecture and clean P2. Single-file subagent E2E at one worker: 21.36s. check-changed remains blocked by the inherited 456/455 environment inventory.
@steipete
steipete enabled auto-merge (squash) October 10, 2026 20:13
@clawsweeper clawsweeper Bot added rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. and removed rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. labels Oct 10, 2026
@steipete

Copy link
Copy Markdown
Contributor Author

Landing with the inherited-red admin exception.

The only failing check is checks-fast-baseline-ratchets (plus the ci-gate rollup). It trips the mock-isolation guard on src/model-picker/apply-session-model-selection-placement.test.ts, which this PR does not touch. #168480 reshaped that mock factory, so every pull request failed this job until main fixed it in 00e0953 ("test(model-picker): annotate the placement runtime mock isolation"). The fix landed after this branch's last main merge.

All checks for this change pass: the full bundled UI e2e (659 files / 3,095 tests), the full UI unit config (22,519 tests), types, lint, architecture and P2. The before/after screenshots in the PR body were inspected.

@steipete
steipete merged commit bb7c69d into main Oct 11, 2026
79 of 82 checks passed
@steipete
steipete deleted the fix/ui-details-mobile-clearance branch October 11, 2026 01:40
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 11, 2026
…68494)

Move Details into the existing pane header so it never covers transcript content on narrow layouts, and fix the follow-on cloud diagnostic overflow, split-pane Details placement, and narrow native header overlap. Landed with the inherited-red exception (checks-fast-baseline-ratchets, fixed on main by 45671d6).
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 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: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. size: S status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant