Skip to content

refactor: simplify model settings and homepage channel UI#239

Merged
Siri-Ray merged 4 commits intorefactor/openapi-sdk-migrationfrom
refactor/simplify-model-settings
Mar 18, 2026
Merged

refactor: simplify model settings and homepage channel UI#239
Siri-Ray merged 4 commits intorefactor/openapi-sdk-migrationfrom
refactor/simplify-model-settings

Conversation

@lefarcen
Copy link
Copy Markdown
Collaborator

@lefarcen lefarcen commented Mar 18, 2026

Summary

  • Remove per-model enable/disable toggles from settings page, replace with a "current model" selector dropdown at top of providers tab
  • Auto-select first available model when a provider is configured or cloud login succeeds
  • Homepage: only show "change config" button when no channels connected, remove "Connect Channel" button
  • Remove model dropdown from homepage (moved to settings page)
  • Remove tab selector from channel manager panel (directly show channels content)

Test plan

  • Settings → Providers tab shows model selector dropdown at top
  • Empty state shown when no providers configured
  • Saving a provider auto-selects the first model if none selected
  • Provider detail shows read-only model list with checkmark on current model
  • Homepage without channels: only "change config" button visible
  • Homepage with channels: "Chat in {platform}" + "change config" buttons
  • "Change config" panel directly shows channels (no tab bar)

🤖 Generated with Claude Code

- Remove per-model enable/disable toggles from settings page
- Add current model selector dropdown at top of providers tab
- Auto-select first available model when provider is configured
- Simplify sidebar to single list (no enabled/disabled groups)
- Homepage: only show "change config" button when no channels connected
- Remove model dropdown from homepage (moved to settings)
- Remove tab selector from channel manager panel

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@chatgpt-codex-connector
Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.

lefarcen and others added 3 commits March 18, 2026 13:46
The user name, email, and logout button in the sidebar are unnecessary
in the Electron desktop client. Wrap the account section with an
isDesktopClient guard so it only renders in the web version.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Tailwind v4 preflight no longer sets cursor: pointer on buttons and
other interactive elements. Add the rule back in the base layer so
buttons, links, selects, and summary elements show the pointer cursor.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@Siri-Ray Siri-Ray merged commit 510e8dd into refactor/openapi-sdk-migration Mar 18, 2026
3 checks passed
lefarcen added a commit that referenced this pull request Mar 18, 2026
* refactor: simplify model settings and homepage channel UI

- Remove per-model enable/disable toggles from settings page
- Add current model selector dropdown at top of providers tab
- Auto-select first available model when provider is configured
- Simplify sidebar to single list (no enabled/disabled groups)
- Homepage: only show "change config" button when no channels connected
- Remove model dropdown from homepage (moved to settings)
- Remove tab selector from channel manager panel

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

* refactor: hide user account section in desktop client

The user name, email, and logout button in the sidebar are unnecessary
in the Electron desktop client. Wrap the account section with an
isDesktopClient guard so it only renders in the web version.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

* fix: restore cursor pointer on interactive elements for Tailwind v4

Tailwind v4 preflight no longer sets cursor: pointer on buttons and
other interactive elements. Add the rule back in the base layer so
buttons, links, selects, and summary elements show the pointer cursor.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

* style: fix biome formatting in models.tsx and zh-CN.ts

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
PerishCode pushed a commit that referenced this pull request Mar 18, 2026
)

* refactor: simplify model settings and homepage channel UI (#239)

* refactor: simplify model settings and homepage channel UI

- Remove per-model enable/disable toggles from settings page
- Add current model selector dropdown at top of providers tab
- Auto-select first available model when provider is configured
- Simplify sidebar to single list (no enabled/disabled groups)
- Homepage: only show "change config" button when no channels connected
- Remove model dropdown from homepage (moved to settings)
- Remove tab selector from channel manager panel

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

* refactor: hide user account section in desktop client

The user name, email, and logout button in the sidebar are unnecessary
in the Electron desktop client. Wrap the account section with an
isDesktopClient guard so it only renders in the web version.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

* fix: restore cursor pointer on interactive elements for Tailwind v4

Tailwind v4 preflight no longer sets cursor: pointer on buttons and
other interactive elements. Add the rule back in the base layer so
buttons, links, selects, and summary elements show the pointer cursor.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

* style: fix biome formatting in models.tsx and zh-CN.ts

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>

* fix(desktop): push config snapshot on cloud disconnect/reconnect

After disconnecting from Nexu Official, the gateway config was never
updated — it kept trying to route through the stale link provider.
After reconnecting, credentials were saved but the gateway was never
notified, so models remained unavailable and Feishu bot stayed
unresponsive.

Add publishPoolConfigSnapshot() calls to both cloudDisconnectRoute and
pollCloudForAuthorization, matching the pattern already used by
cloudModelsRoute and defaultModelSetRoute.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

* feat(desktop): refresh cloud models from Link gateway on startup

Cloud model list was only fetched once during initial login and cached
in cloud-credentials.json. If the Link gateway added or removed models
(e.g. claude-sonnet-4-5 → claude-sonnet-4-6), the desktop stayed stuck
on stale model IDs, causing 404 errors on inference.

Add refreshCloudModelsOnStartup() that runs once when the API boots:
compares cached models with fresh data from Link, updates credentials
and pushes a config snapshot if anything changed.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
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