Repository navigation
fix(ui): prevent image avatars overlapping mobile chat - #140341
Conversation
|
🦞👀 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. |
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
0c8d7a8 to
744d2d2
Compare
|
Codex review: needs maintainer review before merge. Reviewed September 6, 2026, 1:59 PM ET / 17:59 UTC. ClawSweeper reviewWhat this changesRemoves 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 Review scores
Verification
How this fits togetherThe 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]
Before mergeNone. Agent review detailsSecurityNone. PR surfaceSource -1, Tests +33. Total +32 across 2 files. View PR surface stats
Review metricsNone. Technical reviewBest 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. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
|
|
Land-ready proof for final head
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. |
|
Merged via squash.
|
|
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 |
* 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) ...
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]>
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.
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
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.autoreview --mode uncommitted --max-priority P2— scoped-clean, no accepted/actionable findings.git diff --check, targeted oxfmt,node --import tsx scripts/run-stylelint.mtson both changed files, andnode scripts/run-oxlint.mjs --tsconfig config/tsconfig/oxlint.core.jsonon 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.batline 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: