Skip to content

improve(ui): show suggested tasks as a compact row above the composer - #188245

Open
roboclaw-bot wants to merge 6 commits into
mainfrom
openclaw/fast-crayfish
Open

roboclaw-bot wants to merge 6 commits into
mainfrom
openclaw/fast-crayfish

Conversation

@roboclaw-bot

@roboclaw-bot roboclaw-bot commented Oct 30, 2026 •

Copy link
Copy Markdown
Collaborator

What Problem This Solves

Suggested tasks open as a large card floating over the top-right of the transcript, separate from everything else that waits above the composer. Its start button also uses a darkened copy of the accent, so it doesn't match Send when a custom accent is set.

User Impact

User impact: a suggested task now lives in the stack directly above the composer, next to queued messages and the progress card.

  • Closed, it's one quiet row: a muted lightbulb, the title and repository, a 1/2 pager when there are several suggestions, a plain accent-text Start action with its options arrow, and dismiss.
  • Open, it reads like the question panel: the full title, the summary, and the instructions with their folder and a copy button. The footer carries the same small primary button the question panel submits with, nearest the composer.
  • On narrow screens the closed row keeps only the title, position and dismiss. Opening it reveals paging and a full-width start button just above the composer.
  • When starting fails, the card stays open. The lightbulb becomes a warning, and the error and recovery actions (Retry, choose a repository, Cancel) appear in the footer.
  • The filled start button uses exactly the same fill and text color as Send, including custom accents. Its menu still offers a new session, a new worktree, or this session.

Requested by @vyctorbrzezowski.

Work sessions

Why This Change Was Made

  • The tray renders in the composer's footer content, beside session suggestions. That content is shared by the built-in composer and plugin composer companions. The conversation's top-right gutter now holds only Details notices.
  • The closed row uses the queue and progress card's surface and --chat-stack-* geometry. The open card mirrors the question panel's header → content → action-footer order, so the primary action always lands nearest the composer. The card is bounded at min(30rem, 62dvh), and only its content scrolls.
  • One start action, two weights: closed it is btn btn--sm with transparent ground and accent text, so the row stays quiet; open it is btn btn--sm primary, the question panel's Submit, with Send's hover step. The old lightness clamp and fixed white ink are removed, so a custom accent's computed ink applies to both.
  • Copy moves next to the instructions it copies, and the instructions are shown in body text rather than a monospace block. The duplicate eyebrow and path boxes are removed.
  • The disclosure state belongs to the tray, so paging keeps it. Starting a task doesn't open the card, but a failed start keeps it open until the user retries or dismisses.
  • The open content is a flex column. A grid there sized its rows before the scrollbar appeared, which let a rewrapped long summary overlap the instructions and cover the copy button.
  • Styles live in composer-task-suggestions.css, loaded by the lazy tray module. A new Start string was added to the English catalog.

Evidence

Screenshots were captured from the real bundle against a mocked Gateway with synthetic data. They'll be attached in a follow-up body edit.

  • chat-flow.task-suggestions.e2e + chat-startup-priority.e2e (13 tests, real bundle). The row renders inside .chat-footer__context and is closed by default. Opening it shows the summary, folder, prompt and copy, and moves Start to the footer. The footer's Start and its options trigger match Send's rendered fill and ink at rest and on hover, with #da7756 and #ffffff accents. The menu opens above its trigger. Long summaries stay reachable, and copy and Start pass Playwright's trial-click hit check at 1280×720, 390×720 and 900×500. The draft is kept in all three start modes.
  • Unit: chat-task-suggestions + chat-pane-task-suggestions (38 tests). These cover disclosure ARIA wiring, disclosure kept across paging, no opening while starting, a failure keeping the card open, the closed row's short label with its full accessible name, and Start moving from header to footer.
  • Capture pass at 320 px and 1280 px with two suggestions, in both the plain failure and repository-chooser states: dismiss stays inside the row.
  • tsgo:ui, oxlint, stylelint, oxfmt and ui:i18n:verify are clean.
  • Local autoreview (Codex gpt-6.1-sol, P0–P2). On the first layout, the first pass found one P2, later fixed, and the second pass was scoped-clean. On the redesign commit the result was scoped-clean; the final weight-only refinement reran the suites above.

Worked on by

roboclaw-bot and others added 2 commits October 30, 2026 10:11
Suggested tasks move from the floating top-right card into the composer's
context stack, next to queued messages and the progress card. The row keeps
the title, repository, paging, copy, start menu, and dismiss; the summary,
folder, and full instructions open on demand. The start action uses the
same accent fill and ink as Send, so custom accents paint both identically.

Co-authored-by: vyctorbrzezowski <[email protected]>
Worked on by:
- @vyctorbrzezowski

Co-authored-by: vyctorbrzezowski <[email protected]>
OpenClaw-Publication: 90a5aa6b-2cc2-42d2-9e7e-bd218498a441
@clawsweeper

clawsweeper Bot commented Oct 30, 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.

@openclaw-barnacle openclaw-barnacle Bot added docs Improvements or additions to documentation app: web-ui App: web-ui size: XL labels Oct 30, 2026
@clawsweeper clawsweeper Bot added clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. and removed clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. labels Oct 30, 2026
@clawsweeper

clawsweeper Bot commented Oct 30, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: stale review; fresh review needed.

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

Next step
Comment @clawsweeper re-review when the current head is ready; pushes after the first review are not reviewed automatically.

Review history (1 earlier review cycle)
  • reviewed 2026-10-30T10:28:14.406Z sha e1fe832 :: needs maintainer review before merge. :: none

roboclaw-bot and others added 4 commits October 30, 2026 17:08
Closed, a suggestion is one quiet row: an accent lightbulb, the title and
repository, paging, a compact Start split button and dismiss. Open, it
reads like the question panel: the full title, summary, and instructions
with their folder and copy action, then a footer that carries the start
action nearest the composer. A failed start keeps the card open with its
error and recovery in the footer.

Narrow stacks keep only the title, position and dismiss while closed;
opening reveals paging and a full-width start action within thumb reach.

Co-authored-by: vyctorbrzezowski <[email protected]>
Worked on by:
- @vyctorbrzezowski

Co-authored-by: vyctorbrzezowski <[email protected]>
OpenClaw-Publication: ec889ecd-2810-4522-9749-a0411328d5bc
Closed, Start is accent text with no fill or outline. Open, it is the
same small primary button the question panel submits with, sharing
Send's fill. The lightbulb is muted so the action is the row's only accent.

Co-authored-by: vyctorbrzezowski <[email protected]>
Worked on by:
- @vyctorbrzezowski

Co-authored-by: vyctorbrzezowski <[email protected]>
OpenClaw-Publication: 0abea012-6649-4abe-aee2-216dc58c6624
@clawsweeper clawsweeper Bot removed rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. labels Nov 2, 2026

This branch has not been deployed

No deployments
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 docs Improvements or additions to documentation P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. size: XL

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants