Skip to content

fix(ui): truncate empty Compose hints on narrow screens - #207301

Merged
vyctorbrzezowski merged 2 commits into
mainfrom
openclaw/vivid-prawn-f6858b
Nov 28, 2026
Merged

vyctorbrzezowski merged 2 commits into
mainfrom
openclaw/vivid-prawn-f6858b

Conversation

@roboclaw-bot

@roboclaw-bot roboclaw-bot commented Nov 28, 2026 •

Copy link
Copy Markdown
Collaborator

Related: #207295 (separate placeholder contrast change; this PR does not depend on it).

What Problem This Solves

In the Web UI’s command palette, the empty Compose hint can wrap onto a second line at phone widths. It looks like a multiline draft before anything has been typed.

User Impact

Compose keeps the empty hint on one line and shows an ellipsis only when it does not fit. The full text still appears at wider widths and remains available as the field’s accessible name. Typed drafts still wrap and grow. Search, chat, and /new are unchanged.

Why This Change Was Made

Chromium clips focused native textarea placeholders rather than drawing an ellipsis. The shared palette input keeps the native placeholder for semantics and renders the single-line hint separately from the editable text in Compose. This also covers the loading palette without changing its draft or focus handling.

Evidence

  • Real Control UI with synthetic Gateway data in Chromium: at an emulated 390 px, the empty field went from 48 px (two lines) to 24 px (one line) and showed an ellipsis. At 1280 px the full hint fit. Entering a long draft still wrapped; clearing it restored the one-line hint.
  • The targeted browser regression failed against the base (42 px rather than 21 px) and passed with the fix. All five browser layout tests in the file passed. Targeted Stylelint and formatting checks passed. The WebKit project did not select this suite; no device or broad E2E run.

Light-mode Cmd+K Compose in Chromium at an emulated 390 px with synthetic Gateway data. Before: fd79057d465c; after: tested 27e28ccb1f65 (same tree as the published head).

Clean comparison

Before After
Before: the empty Compose hint wraps onto a second line After: the empty Compose hint stays on one line and ends in an ellipsis

Annotated comparison

Before After
Outline marks the two-line hint Outline marks the one-line hint and ellipsis

Reported and requested by @vyctorbrzezowski.

Worked on by

Work sessions

Linked for team reference; these sessions aren’t public.

roboclaw-bot and others added 2 commits November 28, 2026 06:55
Worked on by:
- @vyctorbrzezowski

Co-authored-by: vyctorbrzezowski <[email protected]>
OpenClaw-Publication: 1f9a30ca-67f4-87e3-a05f-4b4ed52527b6
@clawsweeper

clawsweeper Bot commented Nov 28, 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.

@clawsweeper clawsweeper Bot added P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. proof: sufficient ClawSweeper judged the real behavior proof convincing. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. 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-environment Preliminary submission classification; full source review pending. labels Nov 28, 2026
@clawsweeper

clawsweeper Bot commented Nov 28, 2026

Copy link
Copy Markdown
Contributor

Codex review: passed.

What this changes

This PR keeps empty command-palette Compose hints on one line with an ellipsis while allowing typed drafts to wrap.

Example: Open empty Cmd+K Compose in Chromium at a 390 px viewport.

  • Before: “Ask me anything, or hand me something to do” wraps onto two lines.
  • After: The hint occupies one line and ends in an ellipsis.

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A focused visual repair with directly inspected product proof and a meaningful browser regression.
Proof confidence 🐚 platinum hermit (4/6) ✨ media proof bonus Sufficient (screenshot): Inspected before/after Control UI screenshots exercise the shared Compose input in Chromium at an emulated 390 px with synthetic Gateway data and show the hint becoming one line with an ellipsis; the PR also reports wide-screen display, draft wrapping, clearing, and a red-base/green-fix browser regression.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Product

Kind: Bug fix · Worth it: Yes · Fix scope: Complete
User problem: An empty Compose hint can resemble an existing multiline draft on a narrow screen.
Reason: The maintainer-authored direction resolves visible confusion with a bounded presentation change and preserves the existing editing contract.

Merge readiness

✅ Ready for maintainer review

Keep open: this maintainer-authored draft provides a focused, useful UI fix with no actionable correctness or security findings.

Reviewed head: 519e1a33136230a45bf3faa7eb068b3b80cbddf2

Before merge

None.

Findings

None.

Agent review details

How this fits together

The loading and ready command palettes share CommandPaletteInput, which receives the mode, localized hint, and draft and renders the editable textarea and its presentation.

flowchart TD
  A[Loading palette] --> C[Shared palette input]
  B[Ready palette] --> C
  C --> D[Native textarea]
  C --> E[Compose hint span]
  F[Shared styles] --> D
  F --> E
Loading

Technical review

Best possible solution:

Retain the Compose-only hint presentation in the existing shared input while preserving native textarea editing and accessibility.

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

Current-main source explains the empty placeholder increasing textarea height, and the supplied before capture shows the failure; this read-only review did not execute the application.

Is this the best way to solve the issue?

The small visual hint is justified by the documented focused-placeholder clipping in Chromium and reuses the existing mode, localized text, and input owner without adding state.

AGENTS.md: found and applied where relevant.

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

Provenance checked

  • Shared textarea rendering keeps the original intent (84255bc: The Solid migration retained the existing tags, keyboard behavior, and input ownership.)
  • Palette sizing and Compose presentation keeps the original intent (9b11465: Explicit Search and Compose modes share draft and loading behavior while keeping field geometry stable; this patch preserves those owners and limits truncation to the empty hint.)

Testing

Proof path: shipped entry point.

Security

None.

Evidence

What I checked:

Likely related people:

  • Vyctor H. Brzezowski: Raw commit 9b11465 adds ui/src/components/command-palette-input.tsx:92 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: 9b11465147cb; files: ui/src/components/command-palette-input.tsx)

PR surface

Source +39, Tests +27. Total +66 across 3 files. Added test files: 0.

View PR surface stats
Area Files Added Removed Net
Source 2 43 4 +39
Tests 1 27 0 +27
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 3 70 4 +66

Preflight source

Source unknown. Source comparison at the observed PR snapshot only. Completion is self-reported; body, policy, tests, execution, and report bytes are not verified.

Labels

Label changes:

  • add proof: sufficient: Contributor real behavior proof is sufficient.
  • add proof: 📸 screenshot: Contributor real behavior proof includes screenshot evidence.
  • add rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🐚 platinum hermit and patch quality is 🐚 platinum hermit.
  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.

Label justifications:

  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🐚 platinum hermit and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.
  • 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 November 28, 2026, 2:14 AM ET / 07:14 UTC.

@vyctorbrzezowski
vyctorbrzezowski marked this pull request as ready for review November 28, 2026 07:22
@vyctorbrzezowski
vyctorbrzezowski merged commit 8c0d697 into main Nov 28, 2026
94 checks passed
@vyctorbrzezowski
vyctorbrzezowski deleted the openclaw/vivid-prawn-f6858b branch November 28, 2026 07:22
vincentkoc added a commit that referenced this pull request Nov 28, 2026
* commit '262f14aab89ca286633992760fa45aeeded998f9': (207 commits)
  fix(ui): remove redundant type argument from Board browser test (#207352)
  test(channels): distinguish status and batch fixtures (#207232)
  fix(ui): type the Board drop test mock as void (#207348)
  fix(ui): break the Skill Workshop import cycle (#207345)
  test(channels): expose label guard regressions (#207195)
  fix: explain when a previous automation run keeps the agent from starting (#207180)
  refactor(test): consolidate loader proof and repair rollback coverage (#207152)
  fix(agents): one tool-result bound on every route, untrusted-content wrapper intact (#207101)
  test(plugins): verify staged SDK named exports (#207170)
  fix(ui): truncate empty Compose hints on narrow screens (#207301)
  fix: keep unsent Cmd+K Compose drafts when reopened (#207307)
  fix: explain chat update errors when a session changes (#206419)
  fix(ios): keep consecutive commands on one line in chat (#207242)
  fix(ios): keep connection messages from flashing when chat reopens (#207233)
  fix(ios): give Sessions groups more breathing room (#207221)
  fix(ui): show chat completions as activity rows (#201891)
  fix(ui): make empty composer hints look distinct from drafts (#207295)
  fix: explain why chat won’t attach an empty file (#206402)
  fix(agents): show Doctor's restore-first warning before deleting a held store (#207290)
  test(channels): fix join failure proof and trim probe fixture (#207264)
  ...
vincentkoc added a commit that referenced this pull request Nov 28, 2026
* commit '262f14aab89ca286633992760fa45aeeded998f9': (207 commits)
  fix(ui): remove redundant type argument from Board browser test (#207352)
  test(channels): distinguish status and batch fixtures (#207232)
  fix(ui): type the Board drop test mock as void (#207348)
  fix(ui): break the Skill Workshop import cycle (#207345)
  test(channels): expose label guard regressions (#207195)
  fix: explain when a previous automation run keeps the agent from starting (#207180)
  refactor(test): consolidate loader proof and repair rollback coverage (#207152)
  fix(agents): one tool-result bound on every route, untrusted-content wrapper intact (#207101)
  test(plugins): verify staged SDK named exports (#207170)
  fix(ui): truncate empty Compose hints on narrow screens (#207301)
  fix: keep unsent Cmd+K Compose drafts when reopened (#207307)
  fix: explain chat update errors when a session changes (#206419)
  fix(ios): keep consecutive commands on one line in chat (#207242)
  fix(ios): keep connection messages from flashing when chat reopens (#207233)
  fix(ios): give Sessions groups more breathing room (#207221)
  fix(ui): show chat completions as activity rows (#201891)
  fix(ui): make empty composer hints look distinct from drafts (#207295)
  fix: explain why chat won’t attach an empty file (#206402)
  fix(agents): show Doctor's restore-first warning before deleting a held store (#207290)
  test(channels): fix join failure proof and trim probe fixture (#207264)
  ...
vincentkoc added a commit that referenced this pull request Nov 28, 2026
* commit '262f14aab89ca286633992760fa45aeeded998f9': (207 commits)
  fix(ui): remove redundant type argument from Board browser test (#207352)
  test(channels): distinguish status and batch fixtures (#207232)
  fix(ui): type the Board drop test mock as void (#207348)
  fix(ui): break the Skill Workshop import cycle (#207345)
  test(channels): expose label guard regressions (#207195)
  fix: explain when a previous automation run keeps the agent from starting (#207180)
  refactor(test): consolidate loader proof and repair rollback coverage (#207152)
  fix(agents): one tool-result bound on every route, untrusted-content wrapper intact (#207101)
  test(plugins): verify staged SDK named exports (#207170)
  fix(ui): truncate empty Compose hints on narrow screens (#207301)
  fix: keep unsent Cmd+K Compose drafts when reopened (#207307)
  fix: explain chat update errors when a session changes (#206419)
  fix(ios): keep consecutive commands on one line in chat (#207242)
  fix(ios): keep connection messages from flashing when chat reopens (#207233)
  fix(ios): give Sessions groups more breathing room (#207221)
  fix(ui): show chat completions as activity rows (#201891)
  fix(ui): make empty composer hints look distinct from drafts (#207295)
  fix: explain why chat won’t attach an empty file (#206402)
  fix(agents): show Doctor's restore-first warning before deleting a held store (#207290)
  test(channels): fix join failure proof and trim probe fixture (#207264)
  ...
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Nov 29, 2026
)

* fix(ui): truncate empty Compose hints on narrow screens

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

* fix(ui): truncate empty Compose hints on narrow screens

Worked on by:
- @vyctorbrzezowski

Co-authored-by: vyctorbrzezowski <[email protected]>
OpenClaw-Publication: 1f9a30ca-67f4-87e3-a05f-4b4ed52527b6

---------

Co-authored-by: roboclaw-bot <[email protected]>
Co-authored-by: vyctorbrzezowski <[email protected]>
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 P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. 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: S 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.

2 participants