Skip to content

fix(ui): keep keyboard-focused automation controls clear of sticky actions - #152135

Merged
steipete merged 3 commits into
mainfrom
codex/fix-cron-editor-focus-clearance
Sep 18, 2026
Merged

steipete merged 3 commits into
mainfrom
codex/fix-cron-editor-focus-clearance

Conversation

@steipete

@steipete steipete commented Sep 18, 2026 •

Copy link
Copy Markdown
Contributor

What Problem This Solves

Fixes automation schedule choices being hidden behind the sticky save actions when navigating the form with Tab and arrow keys.

User Impact

Keyboard users can see and reach the focused automation controls, including when the save actions wrap on narrow screens. No configuration or migration is required.

Why This Change Was Made

The browser scrolls focused controls into the page's existing scrollport, but the sticky action bar covers its bottom edge. The editor now reserves clearance using the measured action-bar height and page padding, updates it when the layout changes, and restores the previous scroll padding when the editor closes or the page disconnects. The Control UI feature reference documents this behavior.

Evidence

  • The original native Tab/ArrowRight flow failed the visibility assertion: the focused Once choice extended to 640.53 px while the sticky actions began at 611.86 px.
  • Source-mode browser regression using native keyboard input covers create and edit forms, enabled and disabled scheduler states, and narrow layouts with wrapped actions. It checks actual Tab/ArrowRight focus, unobscured geometry and pointer reachability, and cleanup after Cancel and navigation. All five cases in the file passed.
  • Forty focused unit cases, UI production and affected test type graphs, formatting, typed lint, stylelint, docs MDX, and full-tree dead-export checks passed. Independent final review reported no actionable findings.
  • Full local Gateway/UI build passed with the four reviewed files unchanged in the integrated live candidate. Candidate source: 75468898a6de3ce27fef9ab5b325106dff2cda47; feature commit: 5c7ac8a8996fc58fe8d236ea58ee6a8dcc6a97fa.

Live shared Chrome proof at 1416 × 707 on the matching build: from the new-form Name field, Tab through Agent, Runs in, and Interval, then ArrowRight selected Once and retained focus. Previously the focused Once control was hidden and its center hit the Create button; afterward its center hit the Once radio itself. The page reserved 95.1484 px of scroll clearance. Cancel removed the draft and actions and restored scroll padding to auto. No automation was created or run. Live measured edges differed by approximately 0.17 px, so this live result establishes visible focus and reachability rather than an exact edge-separation assertion.

Before: the sticky actions obscure the keyboard-focused schedule choice.

Before: keyboard-focused Once choice hidden by sticky actions

After: Once remains visible, focused, and reachable.

After: keyboard-focused Once choice remains visible above sticky actions

CI recovery: the first run failed on duplicate promisify declarations introduced by newer main in three SQLite tests. This branch incorporates reviewed main and the exact repair reviewed in PR #152133; the same SQLite correction has now landed through PR #152028. The four footer files remain byte-identical to the live-tested feature. Fresh integration review found no actionable issues, and the matching combined local Gateway/UI build passed. Refreshed-head CI passed in full at e6ecedd645e2f9c8e60a9f105fc31ec4ce0736b4, including all 13 UI browser shards, real Gateway, Windows, and the aggregate gate.

Measure the editor action bar and reserve its clearance in the existing page scrollport. Restore the previous padding when the editor closes or the page disconnects. Cover native keyboard navigation, wrapped actions, and cleanup through the rendered Control UI.
@clawsweeper

clawsweeper Bot commented Sep 18, 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: M maintainer Maintainer-authored PR labels Sep 18, 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 18, 2026
@clawsweeper

clawsweeper Bot commented Sep 18, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed September 18, 2026, 4:46 PM ET / 20:46 UTC (Revision 3).

ClawSweeper review

What this changes

The PR keeps keyboard-focused automation controls above sticky save actions, adds browser regression coverage and documentation, and removes duplicate declarations from three SQLite tests.

Merge readiness

✅ Ready for maintainer review

Keep open: the focused UI fix remains useful on current main, the inspected before/after evidence supports it, and no actionable introduced defects were found.

Priority: P2
Reviewed head: e6ecedd645e2f9c8e60a9f105fc31ec4ce0736b4

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A focused lifecycle-based repair with convincing visual proof and useful browser regression coverage; no blocking correctness findings.
Proof confidence 🦞 diamond lobster (5/6) ✨ media proof bonus Sufficient (screenshot): Inspected before/after screenshots and the captured live Chrome observations demonstrate the registered automation editor keeping Once focused, visible, and reachable after keyboard navigation, with Cancel restoring scroll padding; the relevant source remains unchanged at this head.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Verified Sufficient (screenshot): Inspected before/after screenshots and the captured live Chrome observations demonstrate the registered automation editor keeping Once focused, visible, and reachable after keyboard navigation, with Cancel restoring scroll padding; the relevant source remains unchanged at this head.
Evidence reviewed 7 items Scoped implementation: The controller measures the existing footer and scroll area, observes layout changes, disconnects observers, and restores the previous inline scroll padding. CronPage registers it through Lit's controller lifecycle.
Current-main necessity: The comparison against fetched main retains precisely the new clearance controller and its page registration; current-main searches found no equivalent automation scroll-padding implementation.
Inspected visual and live evidence: Inspected both downloaded PR screenshots: before, the sticky actions obscure Once; afterward, its focused control is visible above them. The captured PR body records native Tab/ArrowRight input in live Chrome, successful center hit-testing, 95.1484 px clearance, and restoration to auto after Cancel. Its disclosed approximately 0.17 px edge discrepancy limits the live claim to visibility and reachability. Source context identity: cc4f02b7b43845429b84868e5a13231a97bcb6b99d261630d60001e54df4a38b. Images: https://github.com/user-attachments/assets/a05ac7ad-4a56-4e2b-ad21-60a076774dd3 and https://github.com/user-attachments/assets/a7a59c49-60ee-4159-be8f-4b18da3216e4.
Findings None None.
Security None None.

How this fits together

The Control UI automation editor turns keyboard input into scheduling drafts. Its sticky save bar shares the page scroll area, so the editor must reserve enough scrolling clearance to keep focused controls visible.

flowchart TD
  A[Keyboard navigation] --> B[Automation editor]
  C[Sticky action bar size] --> D[Measure scroll clearance]
  B --> D
  D --> E[Page scroll padding]
  E --> F[Visible focused control]
  B --> G[Close or leave editor]
  G --> H[Restore previous padding]
Loading

Before merge

None.

Agent review details

Security

None.

PR surface

Source +54, Tests +158, Docs +1. Total +213 across 7 files.

View PR surface stats
Area Files Added Removed Net
Source 2 54 0 +54
Tests 4 161 3 +158
Docs 1 1 0 +1
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 7 216 3 +213

Review metrics

Metric Value Why it matters
Keyboard regression coverage 4 added browser scenarios Coverage includes wrapped actions and shared-scroll-area cleanup, beyond the demonstrated desktop case.

Technical review

Best possible solution:

Keep measured clearance within the editor lifecycle, preserving native keyboard scrolling and restoring the shared scroll area when the editor exits.

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

Yes: the supplied native Tab/ArrowRight sequence, before screenshot, and current-main sticky-footer implementation establish a concrete reproduction path; this review did not execute it.

Is this the best way to solve the issue?

Yes: measuring the existing sticky footer and restoring scroll padding through the page lifecycle is a narrow repair without changing scheduling, settings, or authorization.

AGENTS.md: found and applied where relevant.

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

Labels

Label justifications:

  • P2: This repairs obscured keyboard focus in the automation editor with a limited UI blast radius.
  • 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 screenshots and the captured live Chrome observations demonstrate the registered automation editor keeping Once focused, visible, and reachable after keyboard navigation, with Cancel restoring scroll padding; the relevant source remains unchanged at this head.
  • proof: sufficient: Contributor real behavior proof is sufficient. Inspected before/after screenshots and the captured live Chrome observations demonstrate the registered automation editor keeping Once focused, visible, and reachable after keyboard navigation, with Cancel restoring scroll padding; the relevant source remains unchanged at this head.
  • proof: 📸 screenshot: Contributor real behavior proof includes screenshot evidence. Inspected before/after screenshots and the captured live Chrome observations demonstrate the registered automation editor keeping Once focused, visible, and reachable after keyboard navigation, with Cancel restoring scroll padding; the relevant source remains unchanged at this head.

Evidence

What I checked:

Likely related people:

  • steipete: 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 (2 earlier review cycles)
  • reviewed 2026-09-18T20:17:31.858Z sha 5c7ac8a :: needs maintainer review before merge. :: none
  • reviewed 2026-09-18T20:27:50.976Z sha 5c7ac8a :: needs maintainer review before merge. :: none

@steipete
steipete marked this pull request as ready for review September 18, 2026 20:23
@steipete
steipete merged commit 0d43ba6 into main Sep 18, 2026
198 checks passed
@steipete
steipete deleted the codex/fix-cron-editor-focus-clearance branch September 18, 2026 20:55
@steipete

Copy link
Copy Markdown
Contributor Author

Merged via squash.

vincentkoc added a commit that referenced this pull request Sep 18, 2026
…49075-c1-control-repair

* commit 'dc5b321b5f89f9cf0e704ee202ea3059fb1ce63d': (79 commits)
  fix: start background context maintenance after durable turns (#151936)
  fix(models): avoid ambient state reads during prepared selection (#152119)
  feat: recover abandoned Crabbox source staging (#152006)
  chore(ui): refresh control ui locales (#152098)
  fix(ui): keep cloud startup prompts and progress in chat (#152024)
  fix: report completed subprocess cleanup after cancellation (#152107)
  perf(reply): reuse normalized inbound text (#152110)
  fix(cron): paused future one-shots disappear after Run now (#152126)
  perf(sessions): reuse rows and skip discarded terminal labels (#152109)
  fix(ui): keep keyboard-focused automation controls clear of sticky actions (#152135)
  fix(ui): load remote images in compact activity previews (#152045)
  refactor(health): skip unused verbose account projection (#152108)
  fix: restore dashboard test limits and SQLite test compilation (#152089)
  test(qa-lab): stabilize timeout recovery delivery proof (#152100)
  fix: probe SQLite when Node denies worker threads (#152075)
  perf(gateway): keep GitHub co-author trailer scans linear (#152115)
  fix(media): report CLI models with missing command or args (#151969)
  refactor: remove retired runtime code and duplicate helpers (#151973)
  perf(plugins): combine runtime and tool call scopes (#152101)
  test(memory): seed restart fixtures with the Gateway stopped (#152038)
  ...
vincentkoc added a commit that referenced this pull request Sep 18, 2026
…n-20260918-v4

* origin/main: (81 commits)
  fix: retire failed setup plugins without replaying facade initialization (#152026)
  fix(test): select Node for built runtime recovery fixtures (#152162)
  refactor(auth): reuse privately assembled choice groups (#152166)
  fix: preserve chat media delivery and session boundaries (#152079)
  fix: keep stale Stop messages from canceling replacement sessions (#152116)
  improve(plugins): reduce mutable argument handling overhead (#152154)
  fix(scripts): prevent host tooling drift from blocking PR workflows (#152078)
  improve: reduce model capability preparation work (#152128)
  fix: stop marking delivered scheduled reports as failed (#152165)
  fix: start background context maintenance after durable turns (#151936)
  fix(models): avoid ambient state reads during prepared selection (#152119)
  feat: recover abandoned Crabbox source staging (#152006)
  chore(ui): refresh control ui locales (#152098)
  fix(ui): keep cloud startup prompts and progress in chat (#152024)
  fix: report completed subprocess cleanup after cancellation (#152107)
  perf(reply): reuse normalized inbound text (#152110)
  fix(cron): paused future one-shots disappear after Run now (#152126)
  perf(sessions): reuse rows and skip discarded terminal labels (#152109)
  fix(ui): keep keyboard-focused automation controls clear of sticky actions (#152135)
  fix(ui): load remote images in compact activity previews (#152045)
  ...
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Sep 19, 2026
…tions (openclaw#152135)

* fix(ui): keep automation keyboard focus clear of sticky actions

Measure the editor action bar and reserve its clearance in the existing page scrollport. Restore the previous padding when the editor closes or the page disconnects. Cover native keyboard navigation, wrapped actions, and cleanup through the rendered Control UI.

* fix: restore SQLite test compilation
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 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. size: M 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