Skip to content

fix(ui): keep selected-text comment input readable while scrolling - #163772

Merged
roboclaw-bot merged 2 commits into
mainfrom
openclaw/fix-blurry-input-text-while-typing
Oct 2, 2026
Merged

roboclaw-bot merged 2 commits into
mainfrom
openclaw/fix-blurry-input-text-while-typing

Conversation

@roboclaw-bot

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

Copy link
Copy Markdown
Collaborator

What Problem This Solves

Fixes: the bottom lines of the selected-text Add to chat comment input look faded or blurry once a multiline draft scrolls.

User Impact

User impact: all visible lines remain fully readable while creating or editing a comment. The five-line height limit, internal scrolling, keyboard shortcuts, and read-only comment previews are unchanged.

Why This Change Was Made

The read-only preview’s scroll-fade mask also targeted the editable textarea. Restrict that mask to previews and remove the editor’s now-unused fade-state tracking instead of adding an overriding style.

Reported and co-authored by @Patrick-Erichsen.

Work sessions

Evidence

  • Four Chromium regression cases fail before the repair and pass afterward: desktop/mobile, creation/editing, and top/middle/bottom scroll positions.
  • 45 focused browser and unit tests pass, covering editor growth and scrolling, focus, Save/Cancel/Delete, keyboard/IME behavior, and read-only preview access.
  • Real Control UI with a deterministic mocked Gateway: select transcript text → Add to chat → enter a seven-line comment → scroll → Save → attached comment chip. Matched, inspected dark-theme captures at a 1200×820 viewport; no production Gateway was changed.
  • Final changed-file checks pass: formatting, ratchets, i18n, scoped core-test and UI typechecks, dead-export scans, lint and stylelint. The initial dead-export failure exposed the now-unused public helper; making it module-private repairs that cleanup.
  • Independent AutoReview of the complete final candidate: no actionable findings through P2.
  • The first hosted CI attempt failed four sidebar-filter tests in two E2E suites because a substring locator matched both session and people filters. CI tested merge 6bf35c55 against pre-repair main aac001. Rebased onto the already-landed selector repair 12e5f8d; both affected E2E suites now pass (13 tests, 32.12s Vitest duration). The annotation patch and all four PR-owned file blobs are unchanged, confirmed by range-diff and exact blob comparison. A fresh review of the rebased candidate is clean. Original CI attempt.
  • Focused annotation browser suite: 17 tests, 7.92 seconds wrapper wall time with --maxWorkers=1; 6.73 seconds Vitest duration. CI annotation browser-file runtime: 7.34 seconds in checks-ui (1/3) on the green exact-head run; two additional parameter cases reuse the existing browser fixture and add no timers or process boots. Green CI.

Before

Before: the last visible editable line fades

After

After: editable lines remain opaque

Root cause and scope

The 12px gradient in selection-annotations.css reduced the textarea’s alpha at scroll edges. Clear regression provenance: introduced by commit 7a78764 on September 16, 2026 (PR #149351); code author and merger @vyctorbrzezowski. No bot automerge was involved in the recorded merge.

Best-fix verdict: repair the mask selector owner. A textarea-specific mask-image: none override would retain competing presentation rules and unused tracking; changing shared scroll-state detection would affect read-only surfaces that intentionally fade.

Production LOC: +4/-19 (net -15). Tests: +18/-5. No dependencies, persistence, Gateway contracts, or permissions change.

@clawsweeper

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

@roboclaw-bot
roboclaw-bot marked this pull request as ready for review October 2, 2026 20:45
@clawsweeper clawsweeper Bot added P2 Normal backlog priority with limited blast radius. 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. labels Oct 2, 2026
@clawsweeper

clawsweeper Bot commented Oct 2, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed October 2, 2026, 5:04 PM ET / 21:04 UTC (Revision 2).

ClawSweeper review

What this changes

The PR removes scroll-edge fading from selected-text comment editors while retaining fades in read-only previews and expanding browser regression coverage.

Merge readiness

✅ Ready for maintainer review

The fix remains necessary on current main and the latest release. The introduced patch has no actionable correctness findings, and inspected before/after screenshots support the visual improvement.

Priority: P2
Reviewed head: 4756df119f08a7a35cae638613f3cf08c25d1a0f

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A focused repair with direct visual proof, useful browser regressions, and no actionable patch findings.
Proof confidence 🦞 diamond lobster (5/6) ✨ media proof bonus Sufficient (screenshot): Inspected matched Control UI screenshots directly show the editor's faded last line becoming opaque in the described mocked-Gateway comment flow, matching the changed CSS owner. Browser regressions supplement that visible proof. No stored-data contract changes.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Verified Sufficient (screenshot): Inspected matched Control UI screenshots directly show the editor's faded last line becoming opaque in the described mocked-Gateway comment flow, matching the changed CSS owner. Browser regressions supplement that visible proof. No stored-data contract changes.
Evidence reviewed 9 items Verified introduced patch: The pinned merge-base-to-head diff restricts three fade selectors to previews, removes editor fade tracking, and makes the remaining scroll-state helper private.
Still necessary on main and release: Fetched main still includes the textarea in the fade selectors. The latest release v2026.9.7 contains CSS blob d15d4e629f64cfcce268e83d23c5a4ef135d9bb8, identical to the pre-fix stylesheet.
Current-main behavior: Direct inspection confirms the gradient mask still targets scrollable editor textareas on fetched main.
Findings None None.
Security None None.

How this fits together

Control UI lets users attach comments to selected transcript text. Its editor creates or updates those comments, which appear as attachment chips and scrollable previews.

flowchart LR
  A[Selected transcript text] --> B[Comment editor]
  B --> C[Bounded scrolling without fading]
  C --> D[Save comment]
  D --> E[Attachment chip]
  E --> F[Scrollable preview with edge fades]
Loading

Before merge

None.

Agent review details

Security

None.

PR surface

Source -15, Tests +13. Total -2 across 4 files.

View PR surface stats
Area Files Added Removed Net
Source 3 4 19 -15
Tests 1 18 5 +13
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 4 22 24 -2

Review metrics

None.

Technical review

Best possible solution:

Keep editable comment text fully opaque while preserving bounded scrolling and intentional preview fades.

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

Yes: current-main selectors and editor scroll-state updates establish that a comment exceeding five lines receives an edge fade. Contributor screenshots demonstrate the visual defect; this review did not execute a reproduction.

Is this the best way to solve the issue?

Yes: narrowing the owning CSS selectors and removing unused editor tracking repairs the defect without competing overrides or changing preview behavior.

AGENTS.md: found and applied where relevant.

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

Labels

Label changes:

No label changes.

Label justifications:

  • P2: This repairs a localized readability defect in comment editing without changing message delivery or configuration.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🦞 diamond lobster and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Sufficient (screenshot): Inspected matched Control UI screenshots directly show the editor's faded last line becoming opaque in the described mocked-Gateway comment flow, matching the changed CSS owner. Browser regressions supplement that visible proof. No stored-data contract changes.
  • proof: sufficient: Contributor real behavior proof is sufficient. Inspected matched Control UI screenshots directly show the editor's faded last line becoming opaque in the described mocked-Gateway comment flow, matching the changed CSS owner. Browser regressions supplement that visible proof. No stored-data contract changes.
  • proof: 📸 screenshot: Contributor real behavior proof includes screenshot evidence. Inspected matched Control UI screenshots directly show the editor's faded last line becoming opaque in the described mocked-Gateway comment flow, matching the changed CSS owner. Browser regressions supplement that visible proof. No stored-data contract changes.

Evidence

What I checked:

Likely related people:

  • vyctorbrzezowski: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)
  • Patrick-Erichsen: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)

Rating scale

Score Internal tier Crab rank Meaning
6/6 S 🦀 challenger crab Exceptional readiness
5/6 A 🦞 diamond lobster Very strong readiness
4/6 B 🐚 platinum hermit Good normal PR; ordinary maintainer review
3/6 C 🦐 gold shrimp Useful, but confidence is limited
2/6 D 🦪 silver shellfish Proof or implementation needs work
1/6 F 🧂 unranked krab Not merge-ready
N/A NA 🌊 off-meta tidepool Rating does not apply

Overall follows the weaker of proof and patch quality.
Shiny media proof means a screenshot, video, or linked artifact directly shows the changed behavior. Runtime, network, CSP, and security claims still need visible diagnostics.

Workflow

  • ClawSweeper keeps one durable marker-backed review comment per issue or PR.
  • Re-runs edit this comment so the latest verdict, findings, and automation markers stay together instead of adding duplicate bot comments.
  • A fresh review can be triggered by eligible @clawsweeper re-review comments, exact-item GitHub events, scheduled/background review runs, or manual workflow dispatch.
  • PR/issue authors and users with repository write access can comment @clawsweeper re-review or @clawsweeper re-run on an open PR or issue to request a fresh review only.
  • Maintainers can also comment @clawsweeper review to request a fresh review only.
  • Fresh-review commands do not start repair, autofix, rebase, CI repair, or automerge.
  • Maintainer-only repair and merge flows require explicit commands such as @clawsweeper autofix, @clawsweeper automerge, @clawsweeper fix ci, or @clawsweeper address review.
  • Maintainers can comment @clawsweeper explain to ask for more context, or @clawsweeper stop to stop active automation.

History

Review history (1 earlier review cycle)
  • reviewed 2026-10-02T20:52:48.671Z sha e739a82b8319da4013ca964ef8d7a16290f6d167 :: needs maintainer review before merge. :: none

@roboclaw-bot
roboclaw-bot force-pushed the openclaw/fix-blurry-input-text-while-typing branch from e739a82 to 4756df1 Compare October 2, 2026 20:59
@roboclaw-bot
roboclaw-bot merged commit 1fda703 into main Oct 2, 2026
101 of 102 checks passed
@roboclaw-bot
roboclaw-bot deleted the openclaw/fix-blurry-input-text-while-typing branch October 2, 2026 21:14
vincentkoc added a commit that referenced this pull request Oct 2, 2026
* commit '79be075e5aa46be9e42dbd53ed6e30e81469210a': (33 commits)
  fix(ui): keep selected-text comment input readable while scrolling (#163772)
  test(memory): open corpus database explicitly
  fix: bound Doctor migration capture to plugin data (#163780)
  fix(ui): gate system information at the shared reader (#160982)
  chore(db): reclassify worker inventory sites with caller evidence (#163754)
  refactor(channels): deslop Slack and Matrix (#163740)
  fix(agents): reject empty sessions_search queries in the tool schema (#129120)
  perf(nodes): load only what a worker turn needs (#160442)
  test(cli): assert concise Gateway failure copy in CLI process tests (#163649)
  refactor(discord): deslop discord (#163728)
  fix(workboard): make Sessions boards work on multi-agent Gateways (#163761)
  test(gateway): add sustained heap retention diagnostics (#163764)
  test(ui): disambiguate session filter controls
  refactor(plugins): deslop imessage, mattermost, and voice-call (#163767)
  fix(qa): run Telegram plugin source in --source-gateway userbot runs (#163718)
  feat(macos): add a --no-activate launch flag for background automation (#163758)
  fix(agents): preserve host authority across module reloads (#163725)
  perf(gateway): serve the listener before multi-gigabyte store validation and honor clean-close receipts at startup (#163690)
  fix: keep video widgets scrollable and preload initial frames (#163762)
  feat(memory): add a provider-neutral memory provider runtime (#162175)
  ...
@roboclaw-bot

Copy link
Copy Markdown
Collaborator Author

Merged via squash.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 3, 2026
…penclaw#163772)

* fix(ui): keep selected-text comment input readable while scrolling

Co-authored-by: Patrick-Erichsen <[email protected]>

* fix(ui): keep annotation scroll state internal after fade removal

Co-authored-by: Patrick-Erichsen <[email protected]>

---------

Co-authored-by: Patrick-Erichsen <[email protected]>
wheakerd pushed a commit to wheakerd/clawdbot that referenced this pull request Oct 3, 2026
* commit '1fda703fb4d3630e4633461967b2a2186e8f15fd': (33 commits)
  fix(ui): keep selected-text comment input readable while scrolling (openclaw#163772)
  test(memory): open corpus database explicitly
  fix: bound Doctor migration capture to plugin data (openclaw#163780)
  fix(ui): gate system information at the shared reader (openclaw#160982)
  chore(db): reclassify worker inventory sites with caller evidence (openclaw#163754)
  refactor(channels): deslop Slack and Matrix (openclaw#163740)
  fix(agents): reject empty sessions_search queries in the tool schema (openclaw#129120)
  perf(nodes): load only what a worker turn needs (openclaw#160442)
  test(cli): assert concise Gateway failure copy in CLI process tests (openclaw#163649)
  refactor(discord): deslop discord (openclaw#163728)
  fix(workboard): make Sessions boards work on multi-agent Gateways (openclaw#163761)
  test(gateway): add sustained heap retention diagnostics (openclaw#163764)
  test(ui): disambiguate session filter controls
  refactor(plugins): deslop imessage, mattermost, and voice-call (openclaw#163767)
  fix(qa): run Telegram plugin source in --source-gateway userbot runs (openclaw#163718)
  feat(macos): add a --no-activate launch flag for background automation (openclaw#163758)
  fix(agents): preserve host authority across module reloads (openclaw#163725)
  perf(gateway): serve the listener before multi-gigabyte store validation and honor clean-close receipts at startup (openclaw#163690)
  fix: keep video widgets scrollable and preload initial frames (openclaw#163762)
  feat(memory): add a provider-neutral memory provider runtime (openclaw#162175)
  ...
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 P2 Normal backlog priority with limited blast radius. 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.

1 participant