Repository navigation
feat(ui): group model picker runtime and account settings - #192137
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. |
|
Codex review: stale review; fresh review needed. Summary Next step Review history (1 earlier review cycle)
|
Keep unknown configured routing distinct from explicit OpenClaw and reconcile runtime controls with saved selection. Preserve the approved context and account controls and their behavioral coverage. Co-authored-by: vyctorbrzezowski <[email protected]>
afc83bc to
0eeeefe
Compare
Keep runtime changes available from Default, resolve native Claude credential labels through their original auth identity, and retain account-row focus across inventory refreshes. Update affected consumers to the approved controls without weakening selection and permission checks. Co-authored-by: vyctorbrzezowski <[email protected]>
|
@clawsweeper re-review Current head: |
|
🦞👀 Re-review progress:
|
* fix(ci): keep unused dependency exports module-private The check-dependencies job reported six unused exports. Keep the five unclaimed implementation details private without changing their behavior; PR #198306 by vincentkoc covers the separate release waiver table, which remains untouched here. QA_UX_STREAM_END_MARKER and TELEPORT_PT were introduced by #198293. adoptTelegramDmTopicMessage and TELEGRAM_DM_TOPIC_ADOPT_WINDOW_SEC came from #169444; migrate their direct tests to adoptTelegramDmTopicUpdate and retain the explicit three-second accepted/four-second rejected window. ChatModelRuntimeControl came from #192137 and keeps its local renderer. Pinned formatting passes and independent P0-P2 review is clean. Named tests could not collect without runtime dependencies; scoped lint could not start with a wrapper import outside the requested sparse checkout. Co-authored-by: obviyus <[email protected]> Co-authored-by: steipete <[email protected]> * fix(ci): unused exports fail the dependency check Worked on by: - @obviyus - @steipete Co-authored-by: obviyus <[email protected]> Co-authored-by: steipete <[email protected]> OpenClaw-Publication: 3bcacc77-7216-8f2e-9e43-4c1cf827724f --------- Co-authored-by: obviyus <[email protected]> Co-authored-by: steipete <[email protected]>
…92137) Group model runtime, context-window and account controls around the active model. Preserve authoritative runtime choices, native authentication labels, and account focus and pointer interactions during inventory updates. Co-authored-by: vyctorbrzezowski <[email protected]>
* fix(ci): keep unused dependency exports module-private The check-dependencies job reported six unused exports. Keep the five unclaimed implementation details private without changing their behavior; PR openclaw#198306 by vincentkoc covers the separate release waiver table, which remains untouched here. QA_UX_STREAM_END_MARKER and TELEPORT_PT were introduced by openclaw#198293. adoptTelegramDmTopicMessage and TELEGRAM_DM_TOPIC_ADOPT_WINDOW_SEC came from openclaw#169444; migrate their direct tests to adoptTelegramDmTopicUpdate and retain the explicit three-second accepted/four-second rejected window. ChatModelRuntimeControl came from openclaw#192137 and keeps its local renderer. Pinned formatting passes and independent P0-P2 review is clean. Named tests could not collect without runtime dependencies; scoped lint could not start with a wrapper import outside the requested sparse checkout. Co-authored-by: obviyus <[email protected]> Co-authored-by: steipete <[email protected]> * fix(ci): unused exports fail the dependency check Worked on by: - @obviyus - @steipete Co-authored-by: obviyus <[email protected]> Co-authored-by: steipete <[email protected]> OpenClaw-Publication: 3bcacc77-7216-8f2e-9e43-4c1cf827724f --------- Co-authored-by: obviyus <[email protected]> Co-authored-by: steipete <[email protected]>
What Problem This Solves
Runtime alternatives duplicate model rows, and the expanded settings block under the list displaced the picker contents.
User Impact
The settings block under the list is gone; each setting now sits where it applies:
Usage percentages are no longer shown in the account menu; they move to a follow-up.
Why This Change Was Made
Uses the existing runtime, context-window and account owners and the existing translation catalog. The provider rail (#192135) has landed. This layer has been rebased onto main with its old parent commits removed. The remaining order is this PR, states and phone layout (#192142), cooldown (#192145), then favorites (#180824).
Original UI evidence
Passed oxfmt, oxlint, stylelint, tsgo:ui, the production build and the adjacent picker, runtime, context and account tests. Screenshots use the mock Gateway with real clicks; After images are dark at 2×, Before images are the earlier light captures.
Not done here: states, phone sheet and cooldown follow in PRs 3–4. No e2e suites, real Gateway or CI watching.
Before images: light theme. After images: dark theme.
Maintainer review and validation
The approved layout is preserved. Runtime controls follow the saved selection after a rejected change or an external update, distinguish an unknown configured base from explicit OpenClaw, and allow a runtime change when the current model is Default. The combined Anthropic group reads the native Claude credential label from the existing native-auth identity.
Account rows remain mounted while their inventory updates, preserving keyboard focus and clicks already in progress. This uses stable local rendering dependencies; account loading, permission checks and selection writes stay with their existing owners. No new polling or focus-restoration mechanism was added.
Validation:
The following before/after uses the actual built Control UI and synthetic authentication status: Claude CLI is selected while a separate API key also exists.
The integrated-control captures use the real Control UI source renderer with synthetic Gateway contract fixtures, after overlay animations settled. They show layout and interaction coverage, not real provider login or runtime execution.
Final reviewed correction:
3f6229d951f7cea37a2be140a57c75438c849e85, with a verified signature and the same tree as the tested local commit. Fresh independent review of the full layer and final repairs found no actionable P0–P2 issues. Current-head CI is running; no full-CI pass is claimed. Asset-size budget exceptions are approved separately from behavioral validation.