Repository navigation
fix(ui): make empty composer hints look distinct from drafts - #207295
Conversation
Co-authored-by: vyctorbrzezowski <[email protected]>
Worked on by: - @vyctorbrzezowski Co-authored-by: vyctorbrzezowski <[email protected]> OpenClaw-Publication: 2262aff3-207c-8a6f-b640-be2c665400c2
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
|
Codex review: passed. What this changesThis 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.
Review scores
ProductKind: Preference · Worth it: Yes · Fix scope: Complete 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: Before mergeNone. FindingsNone. Agent review detailsHow this fits togetherControl 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]
Technical reviewBest 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
TestingProof path: shipped entry point. SecurityNone. EvidenceWhat I checked:
Likely related people:
PR surfaceSource +13, Tests +27. Total +40 across 7 files. Added test files: 0. View PR surface stats
Preflight sourceSource unknown. Source comparison at the observed PR snapshot only. Completion is self-reported; body, policy, tests, execution, and report bytes are not verified. LabelsLabel changes:
Label justifications:
Rating scale6/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. WorkflowClawSweeper edits this one comment on every review. Comment Reviewed November 28, 2026, 1:55 AM ET / 06:55 UTC. |
* 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) ...
* 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) ...
* 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) ...
…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]>
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
/newis 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
/newin 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.git diff --checkpassed. 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: baseline2595c38a47d4; after: the same verified patch ondc166897b811.Clean comparison
Before
After
Annotated comparison
Before
After
Reported and requested by @vyctorbrzezowski.
Worked on by
Work sessions
Linked for team reference; these sessions aren’t public.