Skip to content

fix(ui): keep mobile side chat interactive in tabbed panel - #124785

Merged
Takhoffman merged 3 commits into
mainfrom
fix/ui-mobile-side-chat-hitbox
Aug 17, 2026
Merged

Takhoffman merged 3 commits into
mainfrom
fix/ui-mobile-side-chat-hitbox

Conversation

@clawsweeper

@clawsweeper clawsweeper commented Aug 16, 2026 •

Copy link
Copy Markdown
Contributor

Related: #123874

What Problem This Solves

Fixes an issue where users opening Side chat in the mobile tabbed-panel layout could see its content escape across the viewport and lose pointer access to the main composer and shared panel controls.

Why This Change Was Made

The standalone session companion keeps its existing full-screen mobile presentation, while the embedded Side chat variant remains contained by the tabbed panel that owns its geometry. The existing mobile panel journey now opens Side chat and verifies containment, main-composer focus, companion submission, the returned answer, and the shared header menu.

Root cause: the embedded rail declaration from #123874 had the same specificity as a later generic mobile expanded-rail rule. Source order changed the embedded rail back to position: fixed; inset: 0, creating a transparent viewport-wide hit layer.

User Impact

Mobile users can keep the main conversation interactive while Side chat is docked below it, ask companion questions, and use Side chat header controls without taps being intercepted.

Evidence

  • Before fix: full built-app reproduction at a 390×844 touch viewport showed the embedded rail spanning the viewport; Playwright reported .chat-session-rail__thread intercepting the shared header action.
  • After fix: the built Control UI, served portlessly through Playwright asset interception with the canonical mocked Gateway, measured Side chat exactly inside its panel body (top=466, bottom=832), focused the main composer, sent the expected sessions.companion.ask request, rendered the answer, and opened the shared companion-actions menu. No console or page errors.
  • node scripts/run-vitest.mjs ui/src/pages/chat/chat-session-rail.test.ts — 41/41 passed.
  • node_modules/.bin/stylelint ui/src/styles/components.css --config config/stylelint.config.mjs — passed.
  • Changed-gate owner commands — formatting, UI/core test types, oxlint, stylelint, i18n, dependency/patch guards, dead-code scans, and repository ratchets passed. The pnpm dispatcher itself could not open its sandboxed metadata database, so the exact emitted commands were run directly.
  • After removing a redundant SDK declaration flagged by ClawSweeper, node --import tsx scripts/check-extension-package-tsc-boundary.mts --mode=compile passed across all 123 plugin packages and --mode=canary passed.
  • .agents/skills/autoreview/scripts/autoreview --mode branch --base origin/main — clean, no accepted/actionable findings; overall patch correctness 0.99.
  • The standard local UI E2E server is sandbox-blocked at loopback bind (listen EPERM); exact-head CI remains the authoritative configured-lane run.

Production LOC: +1/-1 (net 0) | Tests: +51/-2

Provenance: clearly made visible by #123874 (aed4510bd09), authored by Vyctor H. Brzezowski and merged by fuller-stack-dev on 2026-08-16.

@clawsweeper

clawsweeper Bot commented Aug 16, 2026

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

@openclaw-barnacle openclaw-barnacle Bot added app: web-ui App: web-ui size: S maintainer Maintainer-authored PR labels Aug 16, 2026
@clawsweeper

Copy link
Copy Markdown
Contributor Author

@clawsweeper automerge

@clawsweeper

clawsweeper Bot commented Aug 16, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Maintainer-approved ClawSweeper automerge is not merged yet.

Approver: clawsweeper
Head: 24048b6aa3a0
Merge status: merge requires CLAWSWEEPER_ALLOW_MERGE=1

I left the PR open for the remaining gate instead of bypassing it.

Automerge progress:

  • 2026-08-16 19:42:43 UTC review queued 6d09b2f8d9a0 (queued)
  • 2026-08-16 19:55:06 UTC review queued fdbc457570b0 (queued)
  • 2026-08-16 20:02:38 UTC review passed fdbc457570b0 (structured ClawSweeper verdict: pass (sha=fdbc457570b00ece347a83f1c9a7d7169608d...)
  • 2026-08-16 20:21:03 UTC review queued 860a70440c8f (queued)
  • 2026-08-16 20:17:38 UTC review requested repair 860a70440c8f (structured ClawSweeper marker: fix-required (finding=review-feedback sha=860a70...)
  • 2026-08-16 20:37:15 UTC active review reused 24048b6aa3a0 (waiting)
  • 2026-08-16 20:37:15 UTC review dispatch deferred 24048b6aa3a0 (waiting)
  • 2026-08-16 20:38:44 UTC review queued 24048b6aa3a0 (queued)

@clawsweeper clawsweeper Bot added the clawsweeper:automerge Maintainer opted this PR into bounded ClawSweeper-reviewed automerge label Aug 16, 2026
@clawsweeper

Copy link
Copy Markdown
Contributor Author

@clawsweeper fix ci

@clawsweeper

clawsweeper Bot commented Aug 16, 2026 •

Copy link
Copy Markdown
Contributor

🦞🔧
ClawSweeper picked this up.

Command: fix ci
Action: repair worker queued. Run: https://github.com/openclaw/clawsweeper/actions/runs/31968730207

I will keep the change narrow and update the PR branch if the repair worker finds a safe fix.

@clawsweeper

clawsweeper Bot commented Aug 16, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: passed. Reviewed August 16, 2026, 5:57 PM ET / 21:57 UTC.

ClawSweeper review

What this changes

The PR keeps embedded Side chat inside its mobile tabbed panel instead of a full-viewport overlay, and adds a browser scenario covering containment and interaction.

Regression provenance

Possible regression — probable (reproduction; reviewed change). No predecessor PR is attributed.

Merge readiness

⚠️ Ready for maintainer review - 2 items remain

Keep this focused regression repair open: current inspected source shows the late mobile rule can override embedded containment, while the supplied patch excludes that variant and adds relevant interaction coverage. The maintainer and clawsweeper:human-review labels require a Control UI owner’s exact-head review before merge.

Priority: P2
Reviewed head: 24048b6aa3a056fc136c8ebbbef636576b93e30f
Owner decision: Required. See Decision needed.

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A focused, net-neutral CSS repair is paired with behavior-level browser coverage and supplied built-app proof.
Proof confidence 🦞 diamond lobster (5/6) Sufficient (live_output): The PR body records an after-fix built Control UI run demonstrating panel containment, main-composer focus, companion request/reply, and shared-menu interaction.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Verified Sufficient (live_output): The PR body records an after-fix built Control UI run demonstrating panel containment, main-composer focus, companion request/reply, and shared-menu interaction.
Evidence reviewed 6 items Current source exposes the regression: The embedded rail is initially positioned relatively, but a later 768px generic expanded-rail rule sets every expanded rail to fixed positioning with a viewport inset; equal specificity lets source order override embedded containment.
Owner boundary: The chat render path supplies Side chat through the sole embedded companion template, while the side-panel body bounds its panels with flex sizing and hidden overflow.
Patch targets the conflicting state: The supplied PR diff changes the mobile selector to exclude .chat-session-rail--embedded, preserving the standalone full-screen rule while allowing the earlier embedded containment to win.
Findings None None.
Security None None.

How this fits together

Control UI renders Side chat as an embedded tab inside the chat page’s side panel. Mobile rail CSS determines whether the standalone companion is full-screen or the embedded companion remains inside that panel, affecting taps, typing, requests, and shared actions.

flowchart LR
A[Mobile chat page] --> B[Tabbed side panel]
B --> C[Embedded Side chat]
C --> D[Mobile positioning rule]
D --> E[Composer and shared actions]
E --> F[Companion request and reply]
Loading

Decision needed

Question Recommendation
Does a Control UI owner approve this exact-head mobile containment repair using the supplied built-app proof and green UI checks? Approve the exact head: Confirm the supplied mobile containment proof and exact-head UI checks, then allow the existing merge path to proceed.

Why: The valid focused repair is protected by explicit human-review labels, and the reviewer-side partial clone could not independently materialize the PR tree.

Before merge

  • Resolve merge risk (P1) - This reviewer could not materialize the exact PR tree from the partial clone, so the required Control UI owner review should confirm the supplied exact-head proof and green checks before merge.
Agent review details

Security

None.

PR surface

Source 0, Tests +49. Total +49 across 2 files.

View PR surface stats
Area Files Added Removed Net
Source 1 1 1 0
Tests 1 51 2 +49
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 2 52 3 +49

Review metrics

Metric Value Why it matters
Production versus regression coverage production +1/-1 (net 0); browser E2E +51/-2 The repair is net-neutral in production and extends coverage from panel geometry to the affected mobile interaction path.

Merge-risk options

Maintainer options:

  1. Decide the mitigation before merge
    Retain the state-specific CSS exclusion and behavior-level browser scenario, then merge after a Control UI owner confirms the exact head.
  2. Pause or close
    Do not merge this PR until maintainers decide whether the risk is worth taking.

Technical review

Best possible solution:

Retain the state-specific CSS exclusion and behavior-level browser scenario, then merge after a Control UI owner confirms the exact head.

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

Yes at source level: an embedded rail receives the same expanded class as the standalone surface, and the later mobile rule overwrites its containment. The supplied PR body also describes a 390×844 before/after built-app reproduction, though this read-only checkout did not rerun it.

Is this the best way to solve the issue?

Yes: excluding the embedded variant at the generic full-screen selector preserves standalone mobile behavior while restoring the earlier embedded containment rule; duplicating another mobile override would leave competing positioning policy.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning high; reviewed against eab2b8fdca5c.

Labels

Label justifications:

  • P2: This fixes a bounded mobile Control UI interaction regression without evidence of data loss, security impact, or core availability failure.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🦞 diamond lobster and patch quality is 🐚 platinum hermit.
  • proof: sufficient: Contributor real behavior proof is sufficient. The PR body records an after-fix built Control UI run demonstrating panel containment, main-composer focus, companion request/reply, and shared-menu interaction.

Evidence

What I checked:

  • Current source exposes the regression: The embedded rail is initially positioned relatively, but a later 768px generic expanded-rail rule sets every expanded rail to fixed positioning with a viewport inset; equal specificity lets source order override embedded containment. (ui/src/styles/components.css:2135, 080887df9249)
  • Owner boundary: The chat render path supplies Side chat through the sole embedded companion template, while the side-panel body bounds its panels with flex sizing and hidden overflow. (ui/src/pages/chat/chat-pane-embedded-panels.ts:76, 080887df9249)
  • Patch targets the conflicting state: The supplied PR diff changes the mobile selector to exclude .chat-session-rail--embedded, preserving the standalone full-screen rule while allowing the earlier embedded containment to win. (ui/src/styles/components.css:2135, 24048b6aa3a0)
  • Existing and added behavior coverage are distinct: Current mobile coverage stops after Files/Terminal geometry and expansion; the supplied extension adds the Side chat flow, containment, main-composer use, companion request/reply, and shared action access. (ui/src/e2e/chat-rail-columns.e2e.test.ts:865, 080887df9249)
  • Feature provenance: The related merged tabbed-panel commit identifies the feature as the origin of embedded rail behavior; its commit metadata names the feature author and merge commit. (aed4510bd094)
  • Exact-head inspection limitation: The PR commit object metadata is present, but its tree/blob content could not be materialized from this promisor checkout because github.com DNS resolution failed; no local tests were run in this read-only review. (24048b6aa3a0)

Likely related people:

  • vyctorbrzezowski: Authored the merged tabbed-panel feature whose embedded Side chat rule is the relevant behavior origin. (role: feature author; confidence: high; commits: aed4510bd094; files: ui/src/styles/components.css, ui/src/pages/chat/chat-pane-embedded-panels.ts, ui/src/e2e/chat-rail-columns.e2e.test.ts)
  • fuller-stack-dev: Merged the related tabbed-panel PR identified in the supplied PR context. (role: merger; confidence: medium; commits: aed4510bd094; files: ui/src/styles/components.css, ui/src/e2e/chat-rail-columns.e2e.test.ts)

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 (7 earlier review cycles)
  • reviewed 2026-08-16T19:46:53.096Z sha 6d09b2f8d9a078c039262c1a8d63da5175330b76 :: passed. :: none
  • reviewed 2026-08-16T20:01:01.325Z sha fdbc457 :: passed. :: none
  • reviewed 2026-08-16T20:10:35.620Z sha 860a704 :: needs changes before merge. :: [P3] Remove the already-inherited SDK member
  • reviewed 2026-08-16T20:16:31.485Z sha 860a704 :: needs changes before merge. :: [P3] Remove the redundant inherited SDK member
  • reviewed 2026-08-16T20:30:54.170Z sha 24048b6 :: passed. :: none
  • reviewed 2026-08-16T20:37:06.213Z sha 24048b6 :: passed. :: none
  • reviewed 2026-08-16T20:43:22.877Z sha 24048b6 :: passed. :: none

@clawsweeper

Copy link
Copy Markdown
Contributor Author

@clawsweeper fix ci

@clawsweeper
clawsweeper force-pushed the fix/ui-mobile-side-chat-hitbox branch from 6d09b2f to fdbc457 Compare August 16, 2026 19:53
@clawsweeper clawsweeper Bot added P2 Normal backlog priority with limited blast radius. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 🚀 automerge armed This PR is in ClawSweeper's automerge lane. labels Aug 16, 2026
@clawsweeper

Copy link
Copy Markdown
Contributor Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Aug 16, 2026 •

Copy link
Copy Markdown
Contributor

🦞🧹
ClawSweeper re-review requested.

I asked ClawSweeper to review this item again.
Action: item re-review queued (workflow sweep.yml, event exact_review_queue).
Result: when the review finishes, ClawSweeper will create the durable review comment if needed or update the existing comment in place.

@clawsweeper clawsweeper Bot added proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. and removed rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. labels Aug 16, 2026
@clawsweeper

Copy link
Copy Markdown
Contributor Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Aug 16, 2026 •

Copy link
Copy Markdown
Contributor

🦞🧹
ClawSweeper re-review requested.

I asked ClawSweeper to review this item again.
Action: item re-review queued (workflow sweep.yml, event exact_review_queue).
Result: when the review finishes, ClawSweeper will create the durable review comment if needed or update the existing comment in place.

Re-review progress:

@clawsweeper

Copy link
Copy Markdown
Contributor Author

@clawsweeper automerge

@clawsweeper clawsweeper Bot added clawsweeper:human-review Needs maintainer review before ClawSweeper can continue clawsweeper:merge-ready ClawSweeper found the PR merge-ready but a human gate is still closed rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. and removed rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. labels Aug 16, 2026
@clawsweeper clawsweeper Bot removed the status: 🚀 automerge armed This PR is in ClawSweeper's automerge lane. label Aug 16, 2026
@clawsweeper

clawsweeper Bot commented Aug 16, 2026 •

Copy link
Copy Markdown
Contributor

🦞✅
ClawSweeper is pausing this repair loop for human review.

Source: clawsweeper[bot]
Reason: - [ ] Resolve merge risk (P1) - This reviewer could not materialize the exact PR tree from the partial clone, so the required Control UI owner review should confirm the supplied exact-head proof and green checks bef... (sha=24048b6aa3a056fc136c8ebbbef636576b93e30f)

Why human review is needed:
ClawSweeper found a blocker that should be resolved or accepted by a maintainer before the repair or automerge loop continues.

What the maintainer can do as a next step:
If the maintainer accepts the current risk and wants ClawSweeper to continue merge gates, comment @clawsweeper approve. If more work is needed, resolve the blocker first, then comment @clawsweeper automerge to re-review and continue. If automation should stay paused, leave clawsweeper:human-review in place or comment @clawsweeper stop.

I added clawsweeper:human-review and left the final call with a maintainer.

@clawsweeper

Copy link
Copy Markdown
Contributor Author

@clawsweeper approve

@Takhoffman Takhoffman self-assigned this Aug 17, 2026
@Takhoffman
Takhoffman merged commit 1ea18c8 into main Aug 17, 2026
174 of 176 checks passed
@Takhoffman
Takhoffman deleted the fix/ui-mobile-side-chat-hitbox branch August 17, 2026 17:00
@Takhoffman

Copy link
Copy Markdown
Contributor

Merged via squash.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Aug 18, 2026
…124785)

Keep embedded mobile Side chat inside its tabbed panel so the main composer and shared controls stay tappable.

Co-authored-by: Tak Hoffman <[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 clawsweeper:automerge Maintainer opted this PR into bounded ClawSweeper-reviewed automerge clawsweeper:human-review Needs maintainer review before ClawSweeper can continue clawsweeper:merge-ready ClawSweeper found the PR merge-ready but a human gate is still closed 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: S

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants