Skip to content

fix(ui): prevent image avatars overlapping mobile chat - #140341

Merged
roboclaw-bot merged 1 commit into
mainfrom
openclaw/fix-mobile-robocall-icon-overlap
Sep 6, 2026
Merged

roboclaw-bot merged 1 commit into
mainfrom
openclaw/fix-mobile-robocall-icon-overlap

Conversation

@roboclaw-bot

@roboclaw-bot roboclaw-bot commented Sep 6, 2026 •

Copy link
Copy Markdown
Collaborator

Closes #140340

What Problem This Solves

Fixes an issue where users reading mobile chat would see the configured assistant avatar overlap message text or work summaries at viewport widths of 400 CSS pixels or less. Reported by @Takhoffman.

Why This Change Was Made

Remove the redundant image-specific display override so the shared avatar layout owns visibility for both images and initials. The existing narrow-screen rule hides avatars when their grid column disappears; the higher-specificity image rule previously defeated it.

This is the owner-boundary fix, not a new offset, viewport branch, or !important override. Production: +0/-1 (net -1). Regression tests: +33/-0.

User Impact

Text stays readable on small phones. Configured images remain visible beside replies on wider screens, with unchanged 36px sizing and 10px gutter. Direct-thread, attributed-user fallback, typing, and subagent identity behavior stays intact.

Evidence

Inspected screenshots

Real Control UI loaded through the existing deterministic mock-Gateway helper; same source, data, and viewport before/after. These are local Chromium captures, not an authenticated production Gateway or physical-device test.

390px before 390px after
Image overlapping reply text Unobscured mobile reply

430px after: avatar remains beside the reply

At 390px, before: avatar x=30..66 overlaps text x=30..314. After: avatar is hidden; text geometry is identical. At 430px, before and after both have avatar x=30..66 and text x=76..400, with identical vertical bounds.

Validation

  • New Chromium regression failed before production edit: image expected hidden at 400px, received visible.
  • Same regression passes after; resizes through 430, 400, 390, 320, 401, and 1366px and verifies non-overlap above the breakpoint.
  • node scripts/run-vitest.mjs ui/src/pages/chat/chat-responsive.browser.test.ts — all 123 passed, including logo geometry, attributed image/initials fallback, typing, direct-thread, mobile, and desktop cases.
  • Fresh autoreview --mode uncommitted --max-priority P2 — scoped-clean, no accepted/actionable findings.
  • git diff --check, targeted oxfmt, node --import tsx scripts/run-stylelint.mts on both changed files, and node scripts/run-oxlint.mjs --tsconfig config/tsconfig/oxlint.core.json on the test — passed.

Scope, alternatives, and limitations

Search found no exact active fix. #112472 addresses attributed-user reconciliation; #138281 addresses the owner-filter menu; #139371 suppresses subagent authors. #139873 restored configured avatars on September 6, 2026, exposing this older CSS specificity defect; that intended behavior is preserved.

Considered adding another mobile selector; rejected because deleting the redundant display policy fixes the owner and avoids additional specificity. Chromium validates unchanged wider-screen geometry and the complete responsive suite passes.

Configured Blacksmith Testbox could not start because its CLI is not authenticated. Local Chromium proof used the existing dependency installation. The broader changed-check wrapper is blocked before its first check by pnpm's minimumReleaseAge gate for the repository-pinned pnpm 12.3.4; no safety exclusions or package-manager settings were changed. Exact-head hosted CI remains required before merge. The original deployed client build and native iOS/Safari were not separately verified.

Publication follow-up

The publisher initially normalized unrelated apps/android/gradlew.bat line endings. The original Git blob was restored in a follow-up commit; the final candidate tree is byte-identical to the locally tested and reviewed commit, and the PR contains only the two intended UI files. Publisher line-ending preservation is a separate tooling follow-up, not part of this repair.

Co-authored-by: Takhoffman [email protected]

Worked on by:

@clawsweeper

clawsweeper Bot commented Sep 6, 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 September 6, 2026 17:49
@openclaw-barnacle openclaw-barnacle Bot added app: android App: android app: web-ui App: web-ui size: S maintainer Maintainer-authored PR size: XS and removed app: android App: android size: S labels Sep 6, 2026
Let shared avatar visibility own image avatars when the mobile gutter collapses. Preserve wider layouts and cover breakpoint transitions.

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

Worked on by:

- @Takhoffman
@roboclaw-bot
roboclaw-bot force-pushed the openclaw/fix-mobile-robocall-icon-overlap branch from 0c8d7a8 to 744d2d2 Compare September 6, 2026 17:53
@clawsweeper clawsweeper Bot added P2 Normal backlog priority with limited blast radius. proof: sufficient ClawSweeper judged the real behavior proof convincing. 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 Sep 6, 2026
@clawsweeper

clawsweeper Bot commented Sep 6, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed September 6, 2026, 1:59 PM ET / 17:59 UTC.

ClawSweeper review

What this changes

Removes an image-specific display override so mobile chat hides avatars consistently, and adds browser coverage around the existing breakpoint.

Merge readiness

✅ Ready for maintainer review

This remains a useful, focused repair: current main retains the conflicting image rule, and related merged avatar fixes address different behavior. No introduced correctness defect was found.

Priority: P2
Reviewed head: 744d2d262dae634071fb6eb30eada19d1847c818

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A narrow owner-level repair with meaningful breakpoint coverage and concrete browser measurements; no blocking defect found.
Proof confidence 🐚 platinum hermit (4/6) Sufficient (live_output): Recorded Chromium measurements from the real Control UI with a mock Gateway demonstrate the repaired stylesheet behavior at 390px and preserved spacing at 430px. Primary screenshots could not be fetched for independent inspection; this reviewer limitation does not invalidate the recorded browser results.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Verified Sufficient (live_output): Recorded Chromium measurements from the real Control UI with a mock Gateway demonstrate the repaired stylesheet behavior at 390px and preserved spacing at 430px. Primary screenshots could not be fetched for independent inspection; this reviewer limitation does not invalidate the recorded browser results.
Evidence reviewed 8 items Verified patch scope: The pinned merge-base-to-head comparison contains only the avatar stylesheet repair and its browser regression test; unrelated base changes are excluded.
Current main still needs the repair: Fetched main retains img.chat-avatar display:block. That selector outranks the narrow-screen .chat-avatar display:none rule while the mobile grid assigns avatars and messages to column one.
Regression and sibling coverage: The new test checks hidden images at 400, 390, and 320px and visible, non-overlapping images at 430, 401, and 1366px. Existing coverage separately exercises attributed image fallback, typing geometry, and direct-thread hiding. Tests were inspected, not executed during this review.
Findings None None.
Security None None.

How this fits together

The Control UI renders configured agent images beside chat messages. Its shared stylesheet controls avatar visibility and message columns as the viewport narrows.

flowchart TD
  A[Configured agent identity] --> B[Chat message renderer]
  C[Saved or streaming replies] --> B
  B --> D[Shared avatar layout]
  E[Viewport width] --> D
  D --> F[Small screens hide avatars]
  D --> G[Wider screens retain avatar gutter]
Loading

Before merge

None.

Agent review details

Security

None.

PR surface

Source -1, Tests +33. Total +32 across 2 files.

View PR surface stats
Area Files Added Removed Net
Source 1 0 1 -1
Tests 1 33 0 +33
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 2 33 1 +32

Review metrics

None.

Technical review

Best possible solution:

Let the shared avatar stylesheet own visibility while preserving configured identity, image sizing, and the existing mobile breakpoint.

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

Yes: render a configured assistant image in a shared chat at 390px; current-main selector specificity keeps it visible after its grid column collapses. This review established the path from source without executing it.

Is this the best way to solve the issue?

Yes: deleting the conflicting declaration repairs the existing visibility owner without adding selectors, offsets, or configuration.

AGENTS.md: found and applied where relevant.

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

Labels

Label changes:

  • add P2: This repairs obscured chat text on small screens with a bounded stylesheet change.
  • add proof: sufficient: Contributor real behavior proof is sufficient. Recorded Chromium measurements from the real Control UI with a mock Gateway demonstrate the repaired stylesheet behavior at 390px and preserved spacing at 430px. Primary screenshots could not be fetched for independent inspection; this reviewer limitation does not invalidate the recorded browser results.
  • 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. Sufficient (live_output): Recorded Chromium measurements from the real Control UI with a mock Gateway demonstrate the repaired stylesheet behavior at 390px and preserved spacing at 430px. Primary screenshots could not be fetched for independent inspection; this reviewer limitation does not invalidate the recorded browser results.

Label justifications:

  • P2: This repairs obscured chat text on small screens with a bounded stylesheet change.
  • 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. Sufficient (live_output): Recorded Chromium measurements from the real Control UI with a mock Gateway demonstrate the repaired stylesheet behavior at 390px and preserved spacing at 430px. Primary screenshots could not be fetched for independent inspection; this reviewer limitation does not invalidate the recorded browser results.
  • proof: sufficient: Contributor real behavior proof is sufficient. Recorded Chromium measurements from the real Control UI with a mock Gateway demonstrate the repaired stylesheet behavior at 390px and preserved spacing at 430px. Primary screenshots could not be fetched for independent inspection; this reviewer limitation does not invalidate the recorded browser results.

Evidence

What I checked:

  • Verified patch scope: The pinned merge-base-to-head comparison contains only the avatar stylesheet repair and its browser regression test; unrelated base changes are excluded. (ui/src/styles/chat/grouped.css:691, 744d2d262dae)
  • Current main still needs the repair: Fetched main retains img.chat-avatar display:block. That selector outranks the narrow-screen .chat-avatar display:none rule while the mobile grid assigns avatars and messages to column one. (ui/src/styles/chat/grouped.css:692, fc1877d7f333)
  • Regression and sibling coverage: The new test checks hidden images at 400, 390, and 320px and visible, non-overlapping images at 430, 401, and 1366px. Existing coverage separately exercises attributed image fallback, typing geometry, and direct-thread hiding. Tests were inspected, not executed during this review. (ui/src/pages/chat/chat-responsive.browser.test.ts:1778, 744d2d262dae)
  • Existing identity contract: Configured assistant images are emitted directly by the chat avatar renderer, matching the new regression fixture. Documentation preserves configured identity wherever transcript avatars are shown; no new setting or identity policy is needed. Public docs: docs/web/control-ui.md. (docs/web/control-ui.md:215, 744d2d262dae)
  • Recorded real-browser outcome: The complete supplied PR body records the real Control UI running in Chromium with deterministic Gateway data: at 390px, the overlapping avatar becomes hidden while text geometry stays unchanged; at 430px, the avatar remains at x=30..66 and text at x=76..400. The contributor also reports the regression failing before the edit and all 123 responsive cases passing afterward. These are contributor-recorded results, not reviewer execution. (744d2d262dae)
  • Visual inspection limitation: The prepared manifest contains only screenshots from fix(ui): keep attributed avatars beside sent messages #112472; those were inspected and excluded as proof of this change. Opening this PR's three primary GitHub attachment URLs returned Cache miss, so their pixels could not be independently inspected. The captured PR-body measurements remain available evidence.

Likely related people:

  • steipete: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)
  • Solvely-Colin: 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.

@roboclaw-bot

Copy link
Copy Markdown
Collaborator Author

Land-ready proof for final head 744d2d262dae634071fb6eb30eada19d1847c818:

  • Reproduced before the fix in Chromium at 390px: image avatar x=30..66 occupied the same grid cell as text x=30..314.
  • Inspected before/after screenshots are in the PR body; at 390px the avatar is now hidden and text geometry is unchanged, while 430px avatar/text geometry remains identical.
  • node scripts/run-vitest.mjs ui/src/pages/chat/chat-responsive.browser.test.ts — 123/123 passed.
  • Targeted oxfmt, Stylelint, Oxlint, and git diff --check passed.
  • Fresh P2 autoreview: scoped-clean; no actionable findings.
  • ClawSweeper reviewed this exact head: no findings, no security concerns, Before merge: None, proof sufficient.
  • Exact-head hosted CI run 34049988804 passed.
  • Native scripts/pr review-validate-artifacts 140341 and OPENCLAW_TESTBOX=1 scripts/pr prepare-run 140341 passed.

Known proof gap: no physical-device/Safari capture; the existing Chromium Control UI flow, breakpoint matrix, and hosted UI/E2E lanes passed. Production delta is -1 line; tests +33 lines.

@roboclaw-bot
roboclaw-bot merged commit 3967d9b into main Sep 6, 2026
89 of 90 checks passed
@roboclaw-bot
roboclaw-bot deleted the openclaw/fix-mobile-robocall-icon-overlap branch September 6, 2026 18:05
@roboclaw-bot

Copy link
Copy Markdown
Collaborator Author

Merged via squash.

@roboclaw-bot

Copy link
Copy Markdown
Collaborator Author

Attribution correction for the permanent PR record:

Co-authored-by: Takhoffman [email protected]

Worked on by:

The reviewed PR head carried this credit, but GitHub's generated squash commit body substituted the bot author email during merge. The landed source is correct; this note preserves Tak's intended credit without rewriting main history.

vincentkoc added a commit that referenced this pull request Sep 6, 2026
* origin/main: (25 commits)
  docs(releases): keep the release-notes nav group to version routes (#140353)
  fix(ui): hide trust wrappers in imported chat history
  fix(subagents): subagent list building decodes unrelated saved prompts in large session stores (#139540)
  test(process): share relay startup fixtures (#140345)
  refactor(doctor): inline GitHub skill discovery inputs (#140343)
  refactor(ui): share channel status type definitions (#140331)
  refactor: simplify queue state and infrastructure dispatch (#140311)
  fix: require saved agent turns before update verification succeeds (#140274)
  fix(update): keep the service profile when switching to Git (#140263)
  fix(ui): prevent image avatars overlapping mobile chat (#140341)
  fix(test): accept release subpages in docs route shape (#140337)
  refactor(plugins): share uninstall mutation ownership (#140322)
  refactor(agents): use canonical tool execution arguments (#140280)
  perf(cli): keep inference metadata and domain help lazy (#140327)
  refactor(plugins): simplify self-hosted setup results (#140332)
  refactor(config): reuse parent lookup for unset operations (#140326)
  fix(plugins): preserve exact installed-index mutation receipts (#140328)
  test(agents): simplify MCP and LSP boundary fixtures (#140312)
  fix(ui): preserve literal source previews and copied whitespace (#140306)
  fix: OpenCode Go/Zen requests are missing the required x-opencode-session header (#137464)
  ...
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Sep 7, 2026
Let shared avatar visibility own image avatars when the mobile gutter collapses. Preserve wider layouts and cover breakpoint transitions.

Worked on by:
- @Takhoffman

Co-authored-by: roboclaw-bot <[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 maintainer Maintainer-authored PR P2 Normal backlog priority with limited blast radius. 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.

[Bug]: Image avatars overlap chat text on small mobile screens

2 participants