Skip to content

fix(ui): make empty composer hints look distinct from drafts - #207295

Merged
vyctorbrzezowski merged 2 commits into
mainfrom
openclaw/mellow-shell-c4a8ab
Nov 28, 2026
Merged

vyctorbrzezowski merged 2 commits into
mainfrom
openclaw/mellow-shell-c4a8ab

Conversation

@roboclaw-bot

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

Copy link
Copy Markdown
Collaborator

Related: #150234 and #184991 (placeholder and theme history).

What Problem This Solves

In the light-mode Web UI, the empty hint in chat, Cmd+K Compose, and /new is dark enough to look like text you already typed. It makes it harder to tell at a glance whether the composer is empty.

User Impact

Empty hints are visibly lighter on desktop and mobile Web UI, while typed drafts keep their existing color. The default dark-mode hint is unchanged. No settings or migrations are needed.

Why This Change Was Made

The chat and palette composers share one placeholder color, including the mention-enabled chat editor. This separates empty hints from general secondary text without changing that text elsewhere. Light palettes choose the hint color against the composer surface so it remains readable.

Evidence

  • Exercised chat, Cmd+K Compose, and /new in Chromium at 1280 px and an emulated 390 px using the real Web UI with synthetic Gateway data. Confirmed the lighter hint, unchanged draft color, unchanged default dark hint, and the hint returning after clearing a mention in the rich editor. The default light hint measured 4.86:1 against the composer surface.
  • All 13 tests in the theme contrast suite passed. git diff --check passed. No live provider or broad E2E run; automated local review was unavailable.

Top: desktop chat. Bottom: phone-width Cmd+K Compose (left) and /new (right). Light mode, Chromium, synthetic Gateway data. Before: baseline 2595c38a47d4; after: the same verified patch on dc166897b811.

Clean comparison

Before

Before: light-mode hints in chat, Cmd+K Compose, and /new

After

After: lighter empty hints on those same three surfaces

Annotated comparison

Before

Before: outlines mark hints using the general secondary-text color

After

After: outlines mark the lighter empty hints; draft color is unchanged

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:34
Worked on by:
- @vyctorbrzezowski

Co-authored-by: vyctorbrzezowski <[email protected]>
OpenClaw-Publication: 2262aff3-207c-8a6f-b640-be2c665400c2
@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. impact:ux-friction User-facing flow adds avoidable confusion or support burden without fully blocking progress. clawsweeper:intake:bug 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. labels Nov 28, 2026
@clawsweeper

clawsweeper Bot commented Nov 28, 2026

Copy link
Copy Markdown
Contributor

Codex review: passed.

What this changes

This PR gives empty composer hints a shared, lighter light-mode color while preserving draft text colors.

Example: Open Cmd+K Compose in light mode at a 390 px viewport.

  • Before: “Ask me anything, or hand me something to do” uses the general secondary-text color.
  • After: The empty hint appears lighter while typed text retains its existing color.

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A focused, visually demonstrated improvement with coherent token ownership and no actionable defects found.
Proof confidence 🐚 platinum hermit (4/6) ✨ media proof bonus Sufficient (screenshot): Inspected before/after Chromium screenshots exercise the actual Web UI's desktop chat and phone-width Compose and /new hints with synthetic Gateway data; the body also reports unchanged draft and default-dark colors and rich-editor clearing behavior.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Product

Kind: Preference · Worth it: Yes · Fix scope: Complete
User problem: Empty light-mode composer hints resemble existing draft text at a glance.
Reason: The maintainer-authored direction is established, and the focused visual change improves empty-state recognition without new settings or state.

Merge readiness

✅ Ready for maintainer review

Keep open: this maintainer-authored draft makes a focused presentation improvement, and review found no introduced correctness or security defects.

Reviewed head: dc166897b811dfa7068b42baa48699d6dc637d30

Before merge

None.

Findings

None.

Agent review details

How this fits together

Control UI theme tokens supply colors to native composer hint overlays, the CodeMirror editor, and the command-palette textarea.

flowchart TD
  A[Selected theme] --> B[Composer placeholder token]
  B --> C[Native composer hint]
  B --> D[CodeMirror placeholder]
  B --> E[Command palette placeholder]
  F[Draft text token] --> G[Typed draft]
Loading

Technical review

Best possible solution:

Keep one shared placeholder token across the existing composer renderers, with readable palette-specific light-mode values.

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

Current main uses secondary-text ink for all affected hints, and the inspected baseline browser captures demonstrate the presentation being changed.

Is this the best way to solve the issue?

The patch is a small, complete adjustment through existing CSS and editor owners, with contrast checks protecting readability.

AGENTS.md: found and applied where relevant.

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

Provenance checked

  • Native composer placeholder ink changes intended behavior with a stated reason (97043fa: Restore accessible placeholder contrast on the painted hint sibling; the new token retains that readability requirement.)
  • Rich-editor placeholder keeps the original intent (ee46550: Render inline mentions through the existing lazy editor while matching composer presentation; the replacement token keeps the renderers aligned.)
  • Command-palette placeholder ink changes intended behavior with a stated reason (2a68bcb: The Agents dashboard established the existing secondary-text placeholder styling; this PR explicitly separates empty hints from secondary reading text.)
  • Theme test color parser keeps the original intent (817d41d: Resolve theme color mixes for contrast checks; accepting whitespace after the opening parenthesis supports the new formatted declarations without changing color calculations.)

Testing

Proof path: shipped entry point.

Security

None.

Evidence

What I checked:

Likely related people:

  • Vyctor H. Brzezowski: Raw commit a9787f1 adds ui/src/styles/base.css:551 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: a9787f1d510b; files: ui/src/styles/base.css)

PR surface

Source +13, Tests +27. Total +40 across 7 files. Added test files: 0.

View PR surface stats
Area Files Added Removed Net
Source 5 16 3 +13
Tests 2 28 1 +27
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 7 44 4 +40

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, 1:55 AM ET / 06:55 UTC.

@vyctorbrzezowski
vyctorbrzezowski marked this pull request as ready for review November 28, 2026 07:13
@vyctorbrzezowski
vyctorbrzezowski merged commit f866b66 into main Nov 28, 2026
93 checks passed
@vyctorbrzezowski
vyctorbrzezowski deleted the openclaw/mellow-shell-c4a8ab branch November 28, 2026 07:13
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
…w#207295)

* fix(ui): distinguish composer placeholders from drafts

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

* fix(ui): make empty composer hints look distinct from drafts

Worked on by:
- @vyctorbrzezowski

Co-authored-by: vyctorbrzezowski <[email protected]>
OpenClaw-Publication: 2262aff3-207c-8a6f-b640-be2c665400c2

---------

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 impact:ux-friction User-facing flow adds avoidable confusion or support burden without fully blocking progress. 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: 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.

2 participants