Skip to content

fix: align settings model picker and analytics default#1034

Merged
lefarcen merged 2 commits intomainfrom
fix/settings-model-picker-and-analytics-default
Apr 10, 2026
Merged

fix: align settings model picker and analytics default#1034
lefarcen merged 2 commits intomainfrom
fix/settings-model-picker-and-analytics-default

Conversation

@Siri-Ray
Copy link
Copy Markdown
Contributor

What

Align the settings page model switcher with the Home page model picker, and default desktop analytics to enabled on first launch.

Why

The settings page was still using a provider-level dropdown instead of the model picker interaction used on Home, which made model switching inconsistent. Analytics was also defaulting off for fresh installs, while the intended behavior is to have it enabled by default.

How

  • Replace the settings header provider Select with the shared ModelPickerDropdown used on Home
  • Switch the selected default model directly from that dropdown and sync the provider details pane to the chosen model's provider
  • Change desktop analytics fallback defaults to true in the controller store, settings UI fallback, and frontend startup preference bootstrap

Affected areas

  • Desktop app (Electron shell)
  • Controller (backend / API)
  • Web dashboard (React UI)
  • OpenClaw runtime
  • Skills
  • Shared schemas / packages
  • Build / CI / Tooling

Checklist

  • pnpm typecheck passes
  • pnpm lint passes
  • pnpm test passes
  • pnpm generate-types run (if API routes/schemas changed)
  • No credentials or tokens in code or logs
  • No any types introduced (use unknown with narrowing)

Notes for reviewers

The settings page top-right control now reuses the same model-picker interaction as Home. Selecting a model there also updates the active provider detail pane so the rest of the page stays in sync.

@sentry
Copy link
Copy Markdown

sentry Bot commented Apr 10, 2026

Codecov Report

❌ Patch coverage is 28.33333% with 86 lines in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
apps/web/src/main.tsx 0.00% 48 Missing ⚠️
apps/web/src/pages/models.tsx 25.58% 32 Missing ⚠️
apps/controller/src/store/nexu-config-store.ts 62.50% 3 Missing ⚠️
apps/web/src/lib/desktop-analytics-preference.ts 85.00% 3 Missing ⚠️

📢 Thoughts on this report? Let us know!

Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 49741ee65b

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread apps/web/src/main.tsx Outdated
Comment thread apps/web/src/pages/models.tsx
Comment thread apps/controller/src/store/nexu-config-store.ts Outdated
@lefarcen lefarcen merged commit f60397b into main Apr 10, 2026
13 of 15 checks passed
@lefarcen lefarcen mentioned this pull request Apr 10, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants