Skip to content

♻️ refactor: remove DefaultAgentForm UI from settings pages#13342

Merged
arvinxx merged 1 commit intocanaryfrom
refactor/remove-default-agent-form
Mar 30, 2026
Merged

♻️ refactor: remove DefaultAgentForm UI from settings pages#13342
arvinxx merged 1 commit intocanaryfrom
refactor/remove-default-agent-form

Conversation

@arvinxx
Copy link
Copy Markdown
Member

@arvinxx arvinxx commented Mar 27, 2026

💻 Change Type

  • ♻️ refactor

🔗 Related Issue

Fixes LOBE-1125

🔀 Description of Change

Remove the user-facing Default Agent configuration form from both the agent settings page and the service-model settings page. The underlying store action (updateDefaultAgent) and selectors are preserved for programmatic use (e.g. onboarding flow).

Changes:

  • Delete DefaultAgentForm.tsx component
  • Remove <DefaultAgentForm /> from settings/agent/index.tsx
  • Remove <DefaultAgentForm /> from settings/service-model/index.tsx

🧪 How to Test

  • Tested locally
  • No tests needed
  1. Navigate to Settings → Agent — the default agent model/provider form should no longer appear
  2. Navigate to Settings → Service Model — same, no default agent form
  3. Onboarding flow should still work (it uses updateDefaultAgent programmatically)

Remove the user-facing Default Agent configuration form from both
the agent settings page and the service-model settings page.
The underlying store action and selectors are preserved for
programmatic use (e.g. onboarding).

Fixes LOBE-1125

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@vercel
Copy link
Copy Markdown

vercel bot commented Mar 27, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
lobehub Ready Ready Preview, Comment Mar 27, 2026 0:04am

Request Review

Copy link
Copy Markdown
Contributor

@sourcery-ai sourcery-ai bot left a comment

Choose a reason for hiding this comment

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

We've reviewed this pull request using the Sourcery rules engine

@lobehubbot
Copy link
Copy Markdown
Member

@ONLY-yours - This is a settings refactor (removing DefaultAgentForm from settings pages). Please take a look.

@codecov
Copy link
Copy Markdown

codecov bot commented Mar 27, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 66.85%. Comparing base (aaff9af) to head (e67c94b).
⚠️ Report is 16 commits behind head on canary.

Additional details and impacted files
@@            Coverage Diff             @@
##           canary   #13342      +/-   ##
==========================================
+ Coverage   66.84%   66.85%   +0.01%     
==========================================
  Files        1891     1890       -1     
  Lines      151669   151613      -56     
  Branches    14572    15275     +703     
==========================================
- Hits       101376   101363      -13     
+ Misses      50173    50130      -43     
  Partials      120      120              
Flag Coverage Δ
app 58.22% <ø> (+0.01%) ⬆️
database 96.66% <ø> (ø)
packages/agent-runtime 89.61% <ø> (ø)
packages/context-engine 86.47% <ø> (ø)
packages/conversation-flow 92.36% <ø> (ø)
packages/file-loaders 87.02% <ø> (ø)
packages/memory-user-memory 66.68% <ø> (ø)
packages/model-bank 99.85% <ø> (ø)
packages/model-runtime 84.44% <ø> (ø)
packages/prompts 67.76% <ø> (ø)
packages/python-interpreter 92.90% <ø> (ø)
packages/ssrf-safe-fetch 0.00% <ø> (ø)
packages/utils 90.41% <ø> (ø)
packages/web-crawler 88.82% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

Components Coverage Δ
Store 66.11% <ø> (ø)
Services 49.58% <ø> (ø)
Server 67.29% <ø> (ø)
Libs 51.06% <ø> (ø)
Utils 91.01% <ø> (ø)
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@arvinxx arvinxx merged commit a9cd2f7 into canary Mar 30, 2026
31 checks passed
@arvinxx arvinxx deleted the refactor/remove-default-agent-form branch March 30, 2026 02:18
@lobehubbot
Copy link
Copy Markdown
Member

❤️ Great PR @arvinxx ❤️

The growth of project is inseparable from user feedback and contribution, thanks for your contribution! If you are interesting with the lobehub developer community, please join our discord and then dm @arvinxx or @canisminor1990. They will invite you to our private developer channel. We are talking about the lobe-chat development or sharing ai newsletter around the world.

cy948 pushed a commit to cy948/lobe-chat that referenced this pull request Mar 31, 2026
…13342)

🔥 refactor: remove DefaultAgentForm UI from settings pages

Remove the user-facing Default Agent configuration form from both
the agent settings page and the service-model settings page.
The underlying store action and selectors are preserved for
programmatic use (e.g. onboarding).

Fixes LOBE-1125

Co-authored-by: Claude Opus 4.6 (1M context) <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