Repository navigation
fix(ui): truncate empty Compose hints on narrow screens - #207301
Conversation
Co-authored-by: vyctorbrzezowski <[email protected]>
Worked on by: - @vyctorbrzezowski Co-authored-by: vyctorbrzezowski <[email protected]> OpenClaw-Publication: 1f9a30ca-67f4-87e3-a05f-4b4ed52527b6
|
🦞👀 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 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.
Review scores
ProductKind: Bug fix · Worth it: Yes · Fix scope: Complete 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: Before mergeNone. FindingsNone. Agent review detailsHow this fits togetherThe 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
Technical reviewBest 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
TestingProof path: shipped entry point. SecurityNone. EvidenceWhat I checked:
Likely related people:
PR surfaceSource +39, Tests +27. Total +66 across 3 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, 2:14 AM ET / 07:14 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) ...
) * 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]>
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
/neware 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
Light-mode Cmd+K Compose in Chromium at an emulated 390 px with synthetic Gateway data. Before:
fd79057d465c; after: tested27e28ccb1f65(same tree as the published head).Clean comparison
Annotated comparison
Reported and requested by @vyctorbrzezowski.
Worked on by
Work sessions
Linked for team reference; these sessions aren’t public.