Skip to content

improve(ui): redesign suggested task cards - #125231

Merged
vyctorbrzezowski merged 18 commits into
openclaw:mainfrom
vyctorbrzezowski:transcript-suggested-tasks
Aug 18, 2026
Merged

vyctorbrzezowski merged 18 commits into
openclaw:mainfrom
vyctorbrzezowski:transcript-suggested-tasks

Conversation

@vyctorbrzezowski

@vyctorbrzezowski vyctorbrzezowski commented Aug 17, 2026 •

Copy link
Copy Markdown
Member

Closes #125226

What Problem This Solves

Suggested tasks currently appear as dense cards with fragmented instruction and action surfaces. Multiple suggestions occupy a full vertical list, which makes the transcript harder to scan and can crowd the composer.

Why This Change Was Made

This redesign treats suggested tasks as one focused surface across the single collapsed, single expanded, and multiple-task states. It widens the desktop card modestly, adds breathing room and restrained elevation, turns instructions into an inline disclosure with an underlapping workspace-path/instruction compound, and combines the worktree action and mode menu into one neutral split button. Multiple tasks now use one active card with grouped navigation, position, dismissal, a back-card blade, and short directional swaps that become immediate under reduced motion.

The change is limited to suggested-task presentation and local card navigation. Existing worktree, local, cloud, source-session, copy-prompt, busy, permission, and per-task dismissal semantics remain unchanged. Session suggestions, the composer, and task lifecycle behavior are intentionally out of scope.

User Impact

Suggested follow-ups are easier to scan and act on, especially when several are available. Users see one stable card at a time, can reveal workspace context without disconnected chips, and interact with a clearer primary split action without losing any existing start or dismissal choices.

Evidence

  • Added focused unit coverage for one-at-a-time navigation, direction state, position, and dismissal of the active task.
  • Updated the existing browser-flow contract to assert a joined split button and stacked multi-suggestion navigation while retaining composer visibility.
  • Manually inspected the complete scoped diff and existing acceptance/dismissal call paths.
  • Per explicit implementation constraints, no local tests, build, checks, lint, formatting, install, screenshots, autoreview, or CI watch were run. Visual proof remains a known draft-PR gap.
  • The complete written state contract and the read-only dirty lab prototype were used as source material.

@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: M maintainer Maintainer-authored PR labels Aug 17, 2026
@vyctorbrzezowski vyctorbrzezowski self-assigned this Aug 17, 2026
@clawsweeper clawsweeper Bot added merge-risk: 🚨 other 🚨 Merging this PR has meaningful risk outside the owned taxonomy. P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. 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: found issues before merge. Reviewed August 17, 2026, 9:39 PM ET / August 18, 2026, 01:39 UTC.

ClawSweeper review

What this changes

This PR redesigns Control UI suggested-task cards into a one-card-at-a-time interface with inline instructions, grouped navigation, and a joined split start action.

Regression provenance

Possible regression — probable (reviewed change; failure trace). No predecessor PR is attributed.

Merge readiness

⚠️ Needs maintainer review before merge - 3 items remain

This member-authored, maintainer-labeled UI redesign remains necessary, but the prior responsive-layout blocker is still present: an expanded task card can exceed its clipped conversation container on short viewports. The submitted screenshots provide useful normal-state visual proof; repair the tray bound and validate the expanded short-viewport path before merge.

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

Review scores

Measure Result What it means
Overall readiness 🦐 gold shrimp (3/6) The supplied visual evidence is useful, but the unresolved responsive clipping defect prevents merge readiness.
Proof confidence 🐚 platinum hermit (4/6) ✨ media proof bonus Sufficient (screenshot): The contributor supplied after-fix screenshots directly showing the redesigned normal states; a short-viewport expanded-card proof is still needed for the separate layout defect.
Patch quality 🦐 gold shrimp (3/6) 1 actionable review finding remain.

Verification

Check Result Evidence
Real behavior Verified Sufficient (screenshot): The contributor supplied after-fix screenshots directly showing the redesigned normal states; a short-viewport expanded-card proof is still needed for the separate layout defect.
Evidence reviewed 6 items Responsive regression in PR CSS: The PR removes main's max-height and scrolling constraint from the absolutely positioned tray and instead sets overflow visible, leaving an expanded card unbounded within its parent.
Current main's boundary: Current main retains max-height: min(48vh, 26rem) and overflow-y: auto for this tray; its conversation owner is position-relative and clips overflow.
Clipping owner: The tray's positioned conversation parent uses overflow: hidden, so card content extending below that boundary is clipped rather than made reachable.
Findings 1 actionable finding [P2] Restore a responsive bound for the floating task tray
Security None None.

How this fits together

Suggested tasks are model-proposed follow-up actions rendered in the Control UI chat transcript. The chat pane supplies task state and callbacks to the floating card tray, which lets an operator start, copy, dismiss, or navigate a suggested task.

flowchart LR
  A[Model task suggestions] --> B[Chat pane state]
  B --> C[Suggested-task tray]
  C --> D[Active card and navigation]
  D --> E[Start copy or dismiss]
  E --> F[Chat session workflow]
Loading

Decision needed

Question Recommendation
After the responsive repair, should Control UI adopt the one-card suggested-task navigation design proposed by this PR? Sponsor after responsive repair: Keep the redesign direction, require the bounded short-viewport behavior and exact-head validation, then review it as the new suggested-task presentation.

Why: The linked request is a deliberate presentation and interaction redesign rather than a repair to an established behavior contract, so product acceptance needs explicit maintainer intent.

Before merge

  • Restore a responsive bound for the floating task tray (P2) - The tray is absolutely positioned inside .chat-main__conversation, whose owner clips overflow, but this change removes main's height cap and scroll path. Opening the 9rem instruction panel on a short viewport can therefore put the action controls below the clipped boundary or over the composer. Restore a responsive cap with scrolling, and extend the browser test to open instructions at a short viewport and assert both the card controls and composer remain reachable.
  • Complete next step (P2) - The responsive repair is concrete, but this member-authored PR carries a maintainer label and should remain in normal owner review rather than automated repair dispatch.

Findings

  • [P2] Restore a responsive bound for the floating task tray — ui/src/styles/chat/layout.css:1705
Agent review details

Security

None.

PR surface

Source +392, Tests +80. Total +472 across 9 files.

View PR surface stats
Area Files Added Removed Net
Source 7 462 70 +392
Tests 2 85 5 +80
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 9 547 75 +472

Review metrics

Metric Value Why it matters
Production versus test LOC production +462/-78; tests +85/-5 The substantial production growth is tied to a user-facing card redesign, state ownership, and styles; the added tests cover navigation and the browser flow but miss the expanded short-viewport case.

Root-cause cluster

Relationship: fixed_by_candidate
Canonical: #125226
Summary: This PR is the open candidate implementation of the linked suggested-task redesign request.

Members:

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

Technical review

Best possible solution:

Restore a viewport-derived tray height bound with an internal scroll path, then extend the browser flow to open a tall instruction panel at a short viewport and prove the task controls and composer remain reachable.

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

Yes—source-reproducible at high confidence: render a long task prompt at a short viewport, open instructions, and the unbounded absolute tray can extend beyond the overflow-hidden conversation owner.

Is this the best way to solve the issue?

No—the one-card design is plausible, but removing the existing responsive bound is not the best implementation because it can clip expanded controls; keep the design while restoring a bounded, scrollable tray.

Full review comments:

  • [P2] Restore a responsive bound for the floating task tray — ui/src/styles/chat/layout.css:1705
    The tray is absolutely positioned inside .chat-main__conversation, whose owner clips overflow, but this change removes main's height cap and scroll path. Opening the 9rem instruction panel on a short viewport can therefore put the action controls below the clipped boundary or over the composer. Restore a responsive cap with scrolling, and extend the browser test to open instructions at a short viewport and assert both the card controls and composer remain reachable.
    Confidence: 0.97

Overall correctness: patch is incorrect
Overall confidence: 0.97

AGENTS.md: found and applied where relevant.

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

Labels

Label changes:

  • add P2: The proposed layout can make suggested-task controls inaccessible in constrained Control UI viewports, with a limited user-facing blast radius.
  • add proof: sufficient: Contributor real behavior proof is sufficient. The contributor supplied after-fix screenshots directly showing the redesigned normal states; a short-viewport expanded-card proof is still needed for the separate layout defect.
  • add proof: 📸 screenshot: Contributor real behavior proof includes screenshot evidence. The contributor supplied after-fix screenshots directly showing the redesigned normal states; a short-viewport expanded-card proof is still needed for the separate layout defect.
  • add rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🐚 platinum hermit and patch quality is 🦐 gold shrimp.
  • remove P3: Current review triage priority is P2, so this older priority label is no longer current.
  • remove rating: 🦪 silver shellfish: Current PR rating is rating: 🦐 gold shrimp, so this older rating label is no longer current.
  • remove merge-risk: 🚨 other: Current PR review selected no merge-risk labels.

Label justifications:

  • P2: The proposed layout can make suggested-task controls inaccessible in constrained Control UI viewports, with a limited user-facing blast radius.
  • rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🐚 platinum hermit and patch quality is 🦐 gold shrimp.
  • status: ⏳ waiting on author: ClawSweeper has contributor-facing work open and is waiting for author action. Sufficient (screenshot): The contributor supplied after-fix screenshots directly showing the redesigned normal states; a short-viewport expanded-card proof is still needed for the separate layout defect.
  • proof: sufficient: Contributor real behavior proof is sufficient. The contributor supplied after-fix screenshots directly showing the redesigned normal states; a short-viewport expanded-card proof is still needed for the separate layout defect.
  • proof: 📸 screenshot: Contributor real behavior proof includes screenshot evidence. The contributor supplied after-fix screenshots directly showing the redesigned normal states; a short-viewport expanded-card proof is still needed for the separate layout defect.

Evidence

What I checked:

  • Responsive regression in PR CSS: The PR removes main's max-height and scrolling constraint from the absolutely positioned tray and instead sets overflow visible, leaving an expanded card unbounded within its parent. (ui/src/styles/chat/layout.css:1705, b8ffa7155b60)
  • Current main's boundary: Current main retains max-height: min(48vh, 26rem) and overflow-y: auto for this tray; its conversation owner is position-relative and clips overflow. (ui/src/styles/chat/layout.css:1700, 31a240c2b779)
  • Clipping owner: The tray's positioned conversation parent uses overflow: hidden, so card content extending below that boundary is clipped rather than made reachable. (ui/src/styles/chat/sidebar.css:78, 438c55cc4f0d)
  • Existing browser coverage misses the failing state: The updated overflow test uses a 720px viewport, leaves instructions collapsed, and only checks the composer's lower edge; it does not assert that an expanded card and its controls remain within the clipped conversation area. (ui/src/e2e/chat-flow.task-suggestions.e2e.test.ts:261, b8ffa7155b60)
  • Current changed-line provenance: Blame attributes the unbounded tray declaration on the current PR head, making this a direct review of the proposed patch rather than a pre-existing main defect. (ui/src/styles/chat/layout.css:1705, b8ffa7155b60)
  • Submitted visual proof: The PR discussion includes after-fix dark and light screenshots for collapsed, expanded, multi-task, split-action, and directional-swap states; they demonstrate the intended normal UI states but not the constrained-viewport case.

Likely related people:

  • wanyongstar: Current-main blame attributes the clipping conversation container to this contributor, making them relevant to the responsive owner boundary. (role: adjacent conversation-container contributor; confidence: medium; commits: 438c55cc4f0d; files: ui/src/styles/chat/sidebar.css)
  • vyctorbrzezowski: Current-head blame attributes the changed tray rule to this PR's author, who is also assigned to the linked design work. (role: current redesign author; confidence: medium; commits: b8ffa7155b60; files: ui/src/styles/chat/layout.css, ui/src/pages/chat/components/chat-task-suggestions.ts)

Rank-up moves

Optional improvements that raise the rating; they are not merge blockers.

  • Restore a bounded, scrollable tray for short viewports.
  • Add a browser assertion for expanded instructions that proves task controls and the composer remain reachable.
  • Attach a redacted short-viewport after-fix screenshot or recording, then obtain exact-head validation.

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:21:38.891Z sha 2b30a72 :: found issues before merge. :: [P1] Persist the active suggestion outside the rendered DOM | [P2] Restore focus after replacing the active card | [P2] Restart the swap animation on repeated navigation
  • reviewed 2026-08-17T19:53:16.552Z sha 9bde4d8 :: found issues before merge. :: [P2] Restore a viewport bound for the floating task tray

@vyctorbrzezowski

Copy link
Copy Markdown
Member Author

Visual verification

Single collapsed

Dark Light
Dark single collapsed Light single collapsed

The single-task state keeps instructions collapsed and exposes one compound primary action.

Single expanded

Dark Light
Dark single expanded Light single expanded

The expanded disclosure presents the full-width workspace path underlapping the instruction surface.

Multiple suggestions

Dark Light
Dark multiple suggestions Light multiple suggestions

The stack shows one active card, the 1 / 5 position, grouped navigation, dismissal, and the rear blade.

Split action open

Dark Light
Dark split action open Light split action open

The worktree action and menu remain separate targets inside one outer surface with a stable divider.

Directional swap

Theme Before After
Dark Dark swap before Dark swap after
Light Light swap before Light swap after

Forward navigation changes 1 / 5 to 2 / 5, keeps the stack frame stable, and hands focus to the matching next control.

@vyctorbrzezowski
vyctorbrzezowski marked this pull request as ready for review August 18, 2026 01:33
@clawsweeper clawsweeper Bot added 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. and removed P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. merge-risk: 🚨 other 🚨 Merging this PR has meaningful risk outside the owned taxonomy. labels Aug 18, 2026
@vyctorbrzezowski
vyctorbrzezowski merged commit 4739931 into openclaw:main Aug 18, 2026
75 of 103 checks passed
steipete added a commit that referenced this pull request Aug 18, 2026
check-lint is red on main independently of the max-lines cap: #125231 landed
chat-pane-task-suggestions.ts and chat-task-suggestions.ts with format drift
(oxfmt --check fails on a clean main checkout). Reformat both; also keep the
new SidebarSlotControls type module-local so deadcode:dependencies stays green.
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Aug 18, 2026
* improve(ui): redesign suggested task cards

* fix(ui): preserve suggested task navigation

* fix(ui): refine suggested task card surfaces

* fix(ui): clarify suggested task instruction layers

* fix(ui): normalize task instruction disclosure

* fix(ui): keep split divider stable on hover

* fix(ui): refine suggested task split shape

* fix(ui): tighten task instruction underlap

* fix(ui): smooth suggested task swaps

* fix(ui): wrap suggested task project label

* fix(ui): signal overflowing task paths

* fix(ui): stabilize suggested task stack height

* fix(ui): separate suggested task surface contrast

* fix(ui): narrow suggested task cards

* fix(ui): allow suggested task text selection

* fix(ui): use restrained brand task action

* fix(ui): align dark task action branding

* fix(ui): deepen dark task action color
@vyctorbrzezowski
vyctorbrzezowski deleted the transcript-suggested-tasks branch October 1, 2026 17:30
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: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. size: L 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.

Control UI: redesign suggested task cards

1 participant