Skip to content

fix(ui): contain session suggestions to composer width - #125225

Merged
vyctorbrzezowski merged 2 commits into
openclaw:mainfrom
vyctorbrzezowski:tmp/transcript-session-suggestions
Aug 18, 2026
Merged

vyctorbrzezowski merged 2 commits into
openclaw:mainfrom
vyctorbrzezowski:tmp/transcript-session-suggestions

Conversation

@vyctorbrzezowski

Copy link
Copy Markdown
Member

Closes #125224

What Problem This Solves

Fixes an issue where users viewing session suggestions would see the suggestion rows extend beyond the narrower chat composer below them. The mismatch affected both actionable suggestions and suggestions in the Dismissed state, and the fixed wrapper padding could also place unnecessary horizontal pressure on narrow viewports.

Why This Change Was Made

The session suggestions wrapper now uses the same responsive width, maximum width, and centered horizontal boundaries as the composer. The change is limited to list containment and alignment; it does not alter suggestion content, row height, controls, behavior, the composer, suggested tasks, sharing semantics, or typing indicators.

User Impact

Session suggestions now align with the composer as one coherent input stack. On narrow viewports, the list uses the available width within the composer boundary without introducing horizontal overflow.

Evidence

  • Compared the current session-suggestions and composer sizing rules in ui/src/styles/chat/layout.css.
  • Confirmed the wrapper now shares the composer's calc(100% - 36px) responsive width, 48rem maximum width, and centered inline margins.
  • Confirmed the diff changes only .session-suggestions; actionable and dismissed rows share this wrapper, while row and interaction styles remain untouched.
  • Local tests, build, checks, lint, formatting, screenshots, review, and CI monitoring were intentionally not run for this publication.

@clawsweeper

clawsweeper Bot commented Aug 17, 2026

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

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

@openclaw-barnacle openclaw-barnacle Bot added app: web-ui App: web-ui size: XS maintainer Maintainer-authored PR labels Aug 17, 2026
@vyctorbrzezowski vyctorbrzezowski self-assigned this Aug 17, 2026
@clawsweeper clawsweeper Bot added P2 Normal backlog priority with limited blast radius. 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 Aug 17, 2026
@clawsweeper

clawsweeper Bot commented Aug 17, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed August 17, 2026, 9:04 PM ET / August 18, 2026, 01:04 UTC.

ClawSweeper review

What this changes

The PR constrains Control UI session-suggestion rows to the chat composer’s centered responsive width on desktop and narrow screens.

Merge readiness

⚠️ Ready for maintainer review - 3 items remain

Keep open for maintainer merge review: the focused CSS repair matches the composer’s desktop and phone width rules, and the contributor supplied direct after-fix visual proof. Exact-head CI is still in progress, and this member-authored, maintainer-labeled PR needs explicit maintainer handling before merge.

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

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A focused owner-local CSS repair with direct visual proof and no correctness finding; required CI remains the normal merge gate.
Proof confidence 🦞 diamond lobster (5/6) ✨ media proof bonus Sufficient (screenshot): Four after-fix screenshots in the PR show composer-aligned suggestion boundaries on desktop and narrow viewports in both themes.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Verified Sufficient (screenshot): Four after-fix screenshots in the PR show composer-aligned suggestion boundaries on desktop and narrow viewports in both themes.
Evidence reviewed 6 items Current-main gap: Current main gives the session-suggestion wrapper only fixed horizontal padding, so it has neither the composer width cap nor centered boundary.
Owner-local repair: The PR head applies the composer’s desktop width and maximum width to the sole suggestion wrapper, then applies the same phone-width calculation in the existing 768px breakpoint.
Both row states share the wrapper: The renderer puts every suggestion in one session-suggestions wrapper; pending rows receive actions while non-pending rows receive a state label, so one wrapper-level rule covers both.
Findings None None.
Security None None.

How this fits together

Control UI renders session suggestions above the chat composer for shared sessions. The shared chat stylesheet determines the wrapper geometry that contains both actionable and dismissed suggestion rows before users act on them.

flowchart LR
  A[Shared session suggestions] --> B[Suggestion list wrapper]
  B --> C[Chat layout stylesheet]
  D[Chat composer] --> C
  C --> E[Desktop and phone width rules]
  E --> F[Aligned visible rows]
Loading

Decision needed

Question Recommendation
Should this member-authored Control UI layout repair merge once the exact-head checks are green? Merge after green CI: Accept the focused wrapper-level sizing repair once required checks pass on the current head.

Why: The patch is focused and proof-backed, but the member association and maintainer label require an explicit human merge decision.

Before merge

  • Resolve merge risk (P1) - Exact-head CI is still in progress; merge only after the required checks complete successfully.
  • Complete next step (P2) - No repair lane is needed because the submitted patch is already focused; await maintainer merge judgment after exact-head CI finishes.
Agent review details

Security

None.

PR surface

Source +8. Total +8 across 1 file.

View PR surface stats
Area Files Added Removed Net
Source 1 9 1 +8
Tests 0 0 0 0
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 1 9 1 +8

Review metrics

Metric Value Why it matters
Production versus test delta production +8 net, tests +0 The additional CSS is the direct responsive width, cap, centering, and phone override required at the wrapper owner; no behavior or test code changes.

Root-cause cluster

Relationship: fixed_by_candidate
Canonical: #125224
Summary: This PR is the linked candidate repair for the canonical session-suggestion containment issue.

Members:

Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything.

Merge-risk options

Maintainer options:

  1. Decide the mitigation before merge
    Land the owner-local wrapper sizing after maintainer approval and green exact-head checks, retaining the existing row behavior and markup.
  2. Pause or close
    Do not merge this PR until maintainers decide whether the risk is worth taking.

Technical review

Best possible solution:

Land the owner-local wrapper sizing after maintainer approval and green exact-head checks, retaining the existing row behavior and markup.

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

Yes, from source: current main’s suggestion wrapper lacks the composer width and centering rules, while the PR adds them at the single shared wrapper. This read-only review did not run a local browser reproduction.

Is this the best way to solve the issue?

Yes. Changing the shared wrapper is the narrowest maintainable repair because it covers actionable and dismissed rows without duplicating layout policy in each row.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning high; reviewed against b1d5e78771f9.

Labels

Label changes:

  • add proof: sufficient: Contributor real behavior proof is sufficient. Four after-fix screenshots in the PR show composer-aligned suggestion boundaries on desktop and narrow viewports in both themes.
  • add proof: 📸 screenshot: Contributor real behavior proof includes screenshot evidence. Four after-fix screenshots in the PR show composer-aligned suggestion boundaries on desktop and narrow viewports in both themes.
  • add rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🦞 diamond lobster and patch quality is 🐚 platinum hermit.
  • remove rating: 🦞 diamond lobster: Current PR rating is rating: 🐚 platinum hermit, so this older rating label is no longer current.

Label justifications:

  • P2: This is a bounded Control UI visual-layout repair with limited blast radius.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🦞 diamond lobster and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Sufficient (screenshot): Four after-fix screenshots in the PR show composer-aligned suggestion boundaries on desktop and narrow viewports in both themes.
  • proof: sufficient: Contributor real behavior proof is sufficient. Four after-fix screenshots in the PR show composer-aligned suggestion boundaries on desktop and narrow viewports in both themes.
  • proof: 📸 screenshot: Contributor real behavior proof includes screenshot evidence. Four after-fix screenshots in the PR show composer-aligned suggestion boundaries on desktop and narrow viewports in both themes.

Evidence

What I checked:

  • Current-main gap: Current main gives the session-suggestion wrapper only fixed horizontal padding, so it has neither the composer width cap nor centered boundary. (ui/src/styles/chat/layout.css:1705, b1d5e78771f9)
  • Owner-local repair: The PR head applies the composer’s desktop width and maximum width to the sole suggestion wrapper, then applies the same phone-width calculation in the existing 768px breakpoint. (ui/src/styles/chat/layout.css:1705, b23ea7b12d75)
  • Both row states share the wrapper: The renderer puts every suggestion in one session-suggestions wrapper; pending rows receive actions while non-pending rows receive a state label, so one wrapper-level rule covers both. (ui/src/pages/chat/components/chat-session-suggestions.ts:43, b23ea7b12d75)
  • Existing layout precedent: The adjacent chat pull-request input-stack surface already uses the same composer-width contract and has an E2E assertion for matching x-position and width. (ui/src/styles/chat/layout.css:2071, b1d5e78771f9)
  • After-fix visual proof: The author’s 2026-08-18 PR comment supplies four after-fix captures covering desktop and narrow widths in both themes, including active and dismissed rows. (b23ea7b12d75)
  • Commit provenance: The current PR head is the focused phone-gutter follow-up commit by the current Control UI contributor. (ui/src/styles/chat/layout.css:5290, b23ea7b12d75)

Likely related people:

  • vyctorbrzezowski: Authored the two focused commits on the current head and is self-assigned; locally available predecessor history is grafted, so broader ownership provenance is limited. (role: recent Control UI contributor; confidence: medium; commits: 25e348bab21e, b23ea7b12d75; files: ui/src/styles/chat/layout.css)

Rating scale

Score Internal tier Crab rank Meaning
6/6 S 🦀 challenger crab Exceptional readiness
5/6 A 🦞 diamond lobster Very strong readiness
4/6 B 🐚 platinum hermit Good normal PR; ordinary maintainer review
3/6 C 🦐 gold shrimp Useful, but confidence is limited
2/6 D 🦪 silver shellfish Proof or implementation needs work
1/6 F 🧂 unranked krab Not merge-ready
N/A NA 🌊 off-meta tidepool Rating does not apply

Overall follows the weaker of proof and patch quality.
Shiny media proof means a screenshot, video, or linked artifact directly shows the changed behavior. Runtime, network, CSP, and security claims still need visible diagnostics.

Workflow

  • ClawSweeper keeps one durable marker-backed review comment per issue or PR.
  • Re-runs edit this comment so the latest verdict, findings, and automation markers stay together instead of adding duplicate bot comments.
  • A fresh review can be triggered by eligible @clawsweeper re-review comments, exact-item GitHub events, scheduled/background review runs, or manual workflow dispatch.
  • PR/issue authors and users with repository write access can comment @clawsweeper re-review or @clawsweeper re-run on an open PR or issue to request a fresh review only.
  • Maintainers can also comment @clawsweeper review to request a fresh review only.
  • Fresh-review commands do not start repair, autofix, rebase, CI repair, or automerge.
  • Maintainer-only repair and merge flows require explicit commands such as @clawsweeper autofix, @clawsweeper automerge, @clawsweeper fix ci, or @clawsweeper address review.
  • Maintainers can comment @clawsweeper explain to ask for more context, or @clawsweeper stop to stop active automation.

History

Review history (2 earlier review cycles)
  • reviewed 2026-08-17T11:18:00.684Z sha 25e348b :: found issues before merge. :: [P2] Match the phone-width composer rule
  • reviewed 2026-08-17T19:26:57.080Z sha b23ea7b :: needs maintainer review before merge. :: none

@clawsweeper clawsweeper Bot added rating: 🦞 diamond lobster Very strong PR readiness with only minor maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. and removed 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 Aug 17, 2026
@vyctorbrzezowski

Copy link
Copy Markdown
Member Author

Visual verification

Desktop

Dark: session suggestion rows, including the dismissed row, share the composer's centered left and right boundaries.

Dark desktop session suggestions aligned with composer

Light: the same centered containment is preserved in the light theme.

Light desktop session suggestions aligned with composer

Narrow viewport

Dark: the long suggestion wraps within the row without horizontal overflow; active and dismissed rows retain the composer's phone-width boundaries.

Dark narrow session suggestions wrapping within composer boundaries

Light: long-text wrapping and the shared active/dismissed containment remain unchanged in the light theme.

Light narrow session suggestions wrapping within composer boundaries

@vyctorbrzezowski
vyctorbrzezowski marked this pull request as ready for review August 18, 2026 00:59
@clawsweeper clawsweeper Bot added proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. and removed rating: 🦞 diamond lobster Very strong PR readiness with only minor maintainer review expected. labels Aug 18, 2026
@vyctorbrzezowski
vyctorbrzezowski merged commit 71eab11 into openclaw:main Aug 18, 2026
148 checks passed
@vyctorbrzezowski

Copy link
Copy Markdown
Member Author

Merged via squash.

@vyctorbrzezowski
vyctorbrzezowski deleted the tmp/transcript-session-suggestions branch August 18, 2026 02:15
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Aug 18, 2026
* fix(ui): align session suggestions with composer

* fix(ui): match suggestion phone gutters
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 maintainer Maintainer-authored PR 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: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. size: XS status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Control UI: contain session suggestions to the composer width

1 participant