Skip to content

fix(ui): keep chat footer controls clear of messages and notices - #152608

Merged
steipete merged 3 commits into
mainfrom
codex/chat-footer-layout
Sep 19, 2026
Merged

steipete merged 3 commits into
mainfrom
codex/chat-footer-layout

Conversation

@steipete

@steipete steipete commented Sep 19, 2026 •

Copy link
Copy Markdown
Contributor

What Problem This Solves

Persistent chat notices could cover pull request controls and the last reply. Dense footer content could also push the editor off screen. Related: #152386.

Validation exposed a separate chat-start race: one OAuth refresh could invalidate both model-selection reads before a reply. This PR also repairs that refresh ownership boundary.

User Impact

PRs, notices, questions, progress, and queued messages stay readable and actionable above the editor. Dense context scrolls within the footer; short panes preserve transcript space and reachable writing controls. CI menus remain usable outside the scrolling region.

Why This Change Was Made

The transcript and footer reserve separate space. One bounded footer context stack owns persistent content, while the editor and its menus stay outside that scroller. This removes negative offsets, overlay exceptions, duplicate widths, joined question framing, writing-status underlap, and unused PR expansion state. Gateway snapshots already contain at most three PRs.

Model selection joins matching refresh work before its existing single certified reread. The queue tracks durable settlement beyond caller timeout, and each waiting reader keeps the existing timeout budget. Explicit pins, credential ownership, read admission, and cleanup failures remain authoritative.

Evidence

The synthetic before capture reproduces a notice covering the entire PR row (32.8 px).

Before After
Before: error notice covers the PR After: PR, error notice, and editor have separate space

UI proof includes 85 focused end-to-end cases, 595 unit/browser owner tests, and follow-up scroll/geometry and retained-pane checks. Coverage exercises native touch and wheel boundaries, reader position, short panes, queue/question actions, and replacement plugin composers. Desktop and phone footer cases passed on Linux (Actions environment, Testbox lease stopped).

The auth race reproduced in CI and a traced Linux run. Its deterministic regression fails without the queue join and passes with it. Proof includes 64 focused auth cases, both preserved queue ownership/serialization tests, and 250 model-resolution sibling cases. All three unchanged quota scenarios passed on the final Linux candidate (Actions environment, blacksmith-testbox lease tbx_01m2wc9wz7r4x4kccy2xz4qadm, stopped). Late durable settlement, waiter timeout, profile replacement/removal, failed refresh, and scope isolation are covered.

Changed-file gates passed: types, lint, formatting, translations, dead exports, runtime cycles, and storage/auth guards. Independent P0–P2 review is clean. Three existing WebKit image-alignment cases were skipped locally because WebKit is unavailable.

Required CI passed on commit 768992065673f55d4d7dcfb0760c0a8eaae3ca4c: CI run.

@clawsweeper

clawsweeper Bot commented Sep 19, 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.

@openclaw-barnacle openclaw-barnacle Bot added docs Improvements or additions to documentation app: web-ui App: web-ui size: XL maintainer Maintainer-authored PR labels Sep 19, 2026
@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 Sep 19, 2026
@clawsweeper

clawsweeper Bot commented Sep 19, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: blocked before merge. Reviewed September 19, 2026, 5:05 AM ET / 09:05 UTC (Revision 6).

ClawSweeper review

What this changes

The PR separates chat messages from a bounded footer and makes model selection wait for concurrent OAuth refresh settlement before retrying.

Merge readiness

⛔ Blocked before merge - 1 item remains

The PR remains useful and has no blocking findings. Earlier selector findings are resolved; the previous migration-proof blocker is unsupported because this diff changes in-memory coordination, not stored formats.

Priority: P2
Reviewed head: 768992065673f55d4d7dcfb0760c0a8eaae3ca4c

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A sound repair with direct visual evidence and focused regression coverage; no actionable blocker remains.
Proof confidence 🦞 diamond lobster (5/6) ✨ media proof bonus Sufficient (screenshot): Inspected before/after Control UI screenshots directly demonstrate that the PR row, error notice, and editor no longer overlap. The body reports additional Linux browser and auth validation; those runs were not independently rerun. The maintainer-authored auth coordination change does not introduce a new authority boundary.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Verified Sufficient (screenshot): Inspected before/after Control UI screenshots directly demonstrate that the PR row, error notice, and editor no longer overlap. The body reports additional Linux browser and auth validation; those runs were not independently rerun. The maintainer-authored auth coordination change does not introduce a new authority boundary.
Evidence reviewed 10 items Footer ownership and layout: The composer places persistent context in a bounded scroller while keeping the writing surface outside it; the transcript and footer occupy separate layout space.
Inspected visual evidence: Inspected both downloaded screenshots from the captured PR body. The before image obscures the PR row with an error notice; the after image visibly separates the PR row, notice, and editor. The captures use synthetic Control UI data.
No introduced stored-data migration: The new queue stores promises in process-local Maps and Sets. Its manager integration observes the existing durable settlement; the introduced hunks do not alter credential serialization, database schemas, or persisted refresh markers.
Findings None None.
Security None None.

How this fits together

The Control UI combines conversation messages, notices, and session controls into the chat pane. Separately, model selection reads authentication profiles whose credentials may be undergoing an OAuth refresh.

flowchart TD
  A[Messages and session updates] --> B[Chat layout]
  B --> C[Scrollable transcript]
  B --> D[Bounded footer context]
  D --> E[Reachable editor and controls]
  F[Model selection] --> G[Wait for active refresh]
  G --> H[Fresh credential profile read]
Loading

Before merge

  • Add data-model compatibility proof - Confirm migration or upgrade compatibility proof before merge.
Agent review details

Security

None.

PR surface

Source -160, Tests +851, Docs +10. Total +701 across 58 files.

View PR surface stats
Area Files Added Removed Net
Source 27 469 629 -160
Tests 29 2029 1178 +851
Docs 2 15 5 +10
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 58 2513 1812 +701

Review metrics

Metric Value Why it matters
Production versus regression coverage Production −162 lines; tests and test support +850 lines Overall growth comes from validation while production code removes overlapping layout mechanisms.

Stored data model

Persistent data-model change detected: unknown-data-model-change: src/agents/embedded-agent-runner/model.registry-resolution.ts. Confirm migration or upgrade compatibility proof before merge.

Technical review

Best possible solution:

Keep one bounded footer layout and let model selection join the existing OAuth settlement owner without changing credential persistence or authorization.

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

Yes: supplied captures demonstrate notice overlap, and focused source regressions establish the refresh claim/settlement race; this review did not rerun either scenario.

Is this the best way to solve the issue?

Yes: the patch consolidates footer geometry and reuses existing refresh, eligibility, and popup owners without introducing a competing public API or storage format.

AGENTS.md: found and applied where relevant.

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

Labels

Label justifications:

  • P2: Repairs bounded chat-control obstruction and a concurrent OAuth model-selection race.
  • 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 before/after Control UI screenshots directly demonstrate that the PR row, error notice, and editor no longer overlap. The body reports additional Linux browser and auth validation; those runs were not independently rerun. The maintainer-authored auth coordination change does not introduce a new authority boundary.
  • proof: sufficient: Contributor real behavior proof is sufficient. Inspected before/after Control UI screenshots directly demonstrate that the PR row, error notice, and editor no longer overlap. The body reports additional Linux browser and auth validation; those runs were not independently rerun. The maintainer-authored auth coordination change does not introduce a new authority boundary.
  • proof: 📸 screenshot: Contributor real behavior proof includes screenshot evidence. Inspected before/after Control UI screenshots directly demonstrate that the PR row, error notice, and editor no longer overlap. The body reports additional Linux browser and auth validation; those runs were not independently rerun. The maintainer-authored auth coordination change does not introduce a new authority boundary.

Evidence

What I checked:

  • Footer ownership and layout: The composer places persistent context in a bounded scroller while keeping the writing surface outside it; the transcript and footer occupy separate layout space. (ui/src/styles/chat/composer-surface.css:38, 768992065673)
  • Inspected visual evidence: Inspected both downloaded screenshots from the captured PR body. The before image obscures the PR row with an error notice; the after image visibly separates the PR row, notice, and editor. The captures use synthetic Control UI data. (768992065673)
  • No introduced stored-data migration: The new queue stores promises in process-local Maps and Sets. Its manager integration observes the existing durable settlement; the introduced hunks do not alter credential serialization, database schemas, or persisted refresh markers. (src/agents/auth-profiles/oauth-refresh-queue.ts:5, 768992065673)
  • Credential ownership remains authoritative: Model selection waits only after a stale read and then rereads its original scoped store. Pending-profile eligibility reuses the existing ordering contract; credential use and settlement retain the OAuth manager's identity validation and exact-generation checks. (src/agents/embedded-agent-runner/model.registry-resolution.ts:205, 768992065673)
  • Focused regression coverage: Read coverage for notice overlap, native wheel/touch scrolling, retained CI popovers, short panes, question actions, and replacement composers. Auth tests cover successful, replaced, removed, and failed credentials plus settlement after caller timeout. Tests were inspected, not executed during this read-only review. (ui/src/e2e/chat-footer.e2e.test.ts:95, 768992065673)
  • Current-main necessity and release check: Pinned main still contains the transcript underlap and immediate stale-read retry without the refresh join. No local tag contains the reviewed head. The related merged scroll fix addresses late content resizing, leaving this footer collision and refresh race distinct. (ui/src/styles/chat/startup-layout.css:103, 91dd566294db)

Likely related people:

  • steipete: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)
  • Vyctor H. Brzezowski: 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 (5 earlier review cycles)
  • reviewed 2026-09-19T06:25:22.313Z sha 0a5b753ecec9886d432f60165d028d268894ee46 :: needs changes before merge. :: [P3] [P3] Migrate the New Session notice to the renamed status class
  • reviewed 2026-09-19T06:38:49.229Z sha 0a5b753ecec9886d432f60165d028d268894ee46 :: needs changes before merge. :: [P2] [P2] Update E2E locators for the renamed status element | [P3] [P3] Migrate the New Session notice to the renamed status class
  • reviewed 2026-09-19T07:23:19.464Z sha 128e9bac809b0bf627f8fcde6f2b77d68358b9d3 :: needs maintainer review before merge. :: none
  • reviewed 2026-09-19T07:51:01.599Z sha b7e3c37 :: needs maintainer review before merge. :: none
  • reviewed 2026-09-19T08:39:22.099Z sha 7689920 :: blocked before merge. :: none

@steipete
steipete marked this pull request as ready for review September 19, 2026 06:32
@clawsweeper clawsweeper Bot added rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. 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. and removed 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. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. labels Sep 19, 2026
@steipete steipete self-assigned this Sep 19, 2026
@steipete
steipete force-pushed the codex/chat-footer-layout branch from 128e9ba to 0f9bf71 Compare September 19, 2026 07:41
@steipete
steipete force-pushed the codex/chat-footer-layout branch from 0f9bf71 to b7e3c37 Compare September 19, 2026 07:44
@openclaw-barnacle openclaw-barnacle Bot added the agents Agent runtime and tooling label Sep 19, 2026
@github-actions

Copy link
Copy Markdown
Contributor

⚠️ Security sensitive changes

This maintainer PR changes sensitive security components. This comment is informational because the PR author has repository Maintain or Admin access.

  • Current SHA: 768992065673f55d4d7dcfb0760c0a8eaae3ca4c
  • Maintainer: @steipete
  • Repository role: admin

These security sensitive changes were made:

  • src/agents/auth-profiles.ts: Controls credential persistence, secret resolution, or redaction. Check storage permissions, credential scope, and exposure in logs or responses.
  • src/agents/auth-profiles/oauth-manager.ts: Controls credential persistence, secret resolution, or redaction. Check storage permissions, credential scope, and exposure in logs or responses.
  • src/agents/auth-profiles/oauth-refresh-queue.ts: Controls credential persistence, secret resolution, or redaction. Check storage permissions, credential scope, and exposure in logs or responses.
  • src/agents/auth-profiles/oauth.ts: Controls credential persistence, secret resolution, or redaction. Check storage permissions, credential scope, and exposure in logs or responses.

Carefully review these changes before merging.

@steipete
steipete merged commit 2cc8b43 into main Sep 19, 2026
234 of 237 checks passed
@steipete
steipete deleted the codex/chat-footer-layout branch September 19, 2026 09:34
@steipete

Copy link
Copy Markdown
Contributor Author

Merged via squash.

@steipete

Copy link
Copy Markdown
Contributor Author

Maintainer disposition of the remaining compatibility checklist: this change adds process-local refresh coordination. It does not change credential serialization, persisted refresh markers, SQLite schemas, or upgrade paths. The existing OAuth owner retains persistence and exact-generation validation. The unknown-data-model-change flag is therefore a false positive, consistent with this review's “No introduced stored-data migration” evidence.

Required CI passed on the reviewed head: https://github.com/openclaw/openclaw/actions/runs/35432273842. The PR landed as 2cc8b43efa8a35046e927385b30ac66eec8834f5.

roboclaw-bot added a commit that referenced this pull request Sep 19, 2026
Preserve main's landed OAuth settlement join and its real claim/settlement tests from #152608. Retire this branch's superseded extra-retry approach; the approved badge and fixture changes remain unchanged.

Co-authored-by: steipete <[email protected]>
Co-authored-by: vyctorbrzezowski <[email protected]>
roboclaw-bot added a commit that referenced this pull request Sep 19, 2026
Retain the landed #152608 OAuth owner, its real settlement regressions, and the approved mention badge and fixture changes. Remove the superseded branch retry policy rather than layering two recovery mechanisms.

Co-authored-by: steipete <[email protected]>
Co-authored-by: vyctorbrzezowski <[email protected]>
roboclaw-bot added a commit that referenced this pull request Sep 19, 2026
Simplify selected human mention badges with a borderless accent highlight, a 2px larger avatar, and no redundant visible @. Preserve original copied text, native selection, table TSV, accessible labels, profile-card interactions, and the keyboard focus ring.

Correct the mock Gateway execution-model projection when starting the sole active run; retain known model data for an already-active run. Preserve main’s landed OAuth settlement owner without introducing a competing retry policy.

Related: #152037, #152608.

Co-authored-by: steipete <[email protected]>
Co-authored-by: vyctorbrzezowski <[email protected]>
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Sep 20, 2026
…nclaw#152608)

* fix(ui): keep chat footer controls clear of messages and notices

* fix(ui): preserve synchronous chat measurement and complete footer cutover

* fix(auth): join refresh settlement before retrying model selection
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Sep 20, 2026
Simplify selected human mention badges with a borderless accent highlight, a 2px larger avatar, and no redundant visible @. Preserve original copied text, native selection, table TSV, accessible labels, profile-card interactions, and the keyboard focus ring.

Correct the mock Gateway execution-model projection when starting the sole active run; retain known model data for an already-active run. Preserve main’s landed OAuth settlement owner without introducing a competing retry policy.

Related: openclaw#152037, openclaw#152608.

Co-authored-by: steipete <[email protected]>
Co-authored-by: vyctorbrzezowski <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

agents Agent runtime and tooling app: web-ui App: web-ui docs Improvements or additions to documentation maintainer Maintainer-authored PR 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. security-sensitive-changed size: XL 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