Repository navigation
refactor(ui): share pending focus for setup and questions - #176923
Merged
Merged
Conversation
Preserve wizard autofocus target order and Question heading restoration while adopting the shared pending-focus primitive. Cover focused-panel removal and preservation of outside focus without an extra RPC.
Contributor
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review in progressClawSweeper is reviewing this revision. This supersedes any previous blocked status. |
Contributor
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
Contributor
Author
|
Merged via squash.
|
github-actions Bot
pushed a commit
to Desicool/openclaw
that referenced
this pull request
Oct 20, 2026
This was referenced Oct 22, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What Problem This Solves
The setup wizard and standalone Question page each carried a local focus effect after the shared pending-focus primitive landed. Both now use that primitive while retaining their exact reactive trigger and focus policy. The wizard still chooses the first connected autofocus target in document order; Question still moves focus to its heading only when a removed question panel held focus.
The change adds no delay, readiness policy, copied state, remount, or extra request. The native Question owner, request-generation guards, modal ownership, lazy boundaries, host tags, classes, and rendered markup remain unchanged.
Evidence
Head
344cf0e356dceb857ef9920f3c023dd0e45ac5d3, based on4909d3ebce326deef7a7cf0c6f7de8799bb17328.ci:fullshardsThe two new Question cases use the native
questionIdboundary after the real lazy panel is ready. They verify that removing a focused panel sends focus to the heading, removing it while an unrelated button has focus preserves that outside focus, and both paths make only the initial RPC. Existing Wizard cases prove retained input/DOM while typing and the focus order through consent, browser sign-in, and completion. All nine cases ran once; neither suite emitted Solid diagnostics. These are behavior-preservation tests, not a claimed red-on-base bug fix.The first lint attempt used the UI-pages test config, which selected unrelated plugin-SDK declaration preparation and timed out before producing a lint verdict. The supported
tsconfig.ui.jsonthree-file lint then passed; no guard, timeout, or assertion was weakened. There were no runtime test retries.No local build, E2E battery, or screenshots: no boot imports, rendered markup, styles, selectors, routes, or visual behavior changed. The new imports stay in their existing lazy page modules. Browser/WebKit and wider wizard-consumer proof belongs to the requested full CI run.
Wave-zero measurements
createEffectcreateRenderEffectuntrackNo targeted survivors remain in the two production files. The four added production lines express the shared helper's policy-object API; no local helper or additional state was introduced.