Skip to content

🐛 fix(skill): stop OAuth connectors duplicating into the Skills tab#15510

Merged
ONLY-yours merged 1 commit into
lobehub:canaryfrom
ONLY-yours:fix/skill-tab-duplicate-oauth-connectors
Jun 8, 2026
Merged

🐛 fix(skill): stop OAuth connectors duplicating into the Skills tab#15510
ONLY-yours merged 1 commit into
lobehub:canaryfrom
ONLY-yours:fix/skill-tab-duplicate-oauth-connectors

Conversation

@ONLY-yours

Copy link
Copy Markdown
Member

💻 Change Type

  • 🐛 fix

🔀 Description of Change

The unified /settings/skill manager renders the Connectors and Skills sub-tabs from a single SkillList driven by viewMode. Lobehub/Klavis OAuth connectors (type: 'lobehub' | 'klavis' — Gmail, Notion, Google Drive, Google Calendar, GitHub, Linear, etc.) are meant to live only in the Connectors view's "OAuth Connectors" group.

However, the Skills view's "Community Skill" (社区 Skill) section still mapped communitySkillItems alongside the market agent skills, so every OAuth connector appeared in both tabs.

This PR makes the Skills view render only marketAgentSkills (xlsx, pdf, docx, skill-creator, …). OAuth connectors stay exclusively under the Connectors view.

Two changes in src/routes/(main)/settings/skill/features/SkillList.tsx:

  • hasCommunitySkills no longer keys off communitySkillItems.length, only marketAgentSkills.length.
  • The communitySkills section renders just renderMarketAgentSkills(); the lobehub/klavis branch is removed.

🧪 How to Test

  • Tested locally

Open /settings/skill:

  • Connectors tab → OAuth connectors appear under "OAuth Connectors" (unchanged).
  • Skills tab → "社区 Skill" now lists only agent skills; Gmail/Notion/Google Drive no longer duplicated here.

📝 Additional Information

Regression from #15463 (Connectors system). The code already documented the intent (// Lobehub/Klavis OAuth skills go in Connectors tab), but the skill-view render path was left in place.

The unified /settings/skill manager renders the Connectors and Skills
sub-tabs from one SkillList via viewMode. Lobehub/Klavis OAuth connectors
(type 'lobehub' | 'klavis') belong only in the Connectors view, but the
Skills view's "Community Skill" section still mapped them alongside the
market agent skills — so Gmail, Notion, Google Drive, etc. showed up in
both tabs.

Render only market agent skills in the Skills view; OAuth connectors stay
exclusively under the Connectors view's "OAuth Connectors" group.

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

vercel Bot commented Jun 6, 2026

Copy link
Copy Markdown

@ONLY-yours is attempting to deploy a commit to the LobeHub OSS Team on Vercel.

A member of the Team first needs to authorize it.

@dosubot dosubot Bot added the size:M This PR changes 30-99 lines, ignoring generated files. label Jun 6, 2026

@sourcery-ai sourcery-ai Bot left a comment

Copy link
Copy Markdown
Contributor

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

@codecov

codecov Bot commented Jun 6, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 0% with 2 lines in your changes missing coverage. Please review.
✅ Project coverage is 70.64%. Comparing base (6f5a633) to head (8e3e7e6).
⚠️ Report is 19 commits behind head on canary.

Additional details and impacted files
@@            Coverage Diff            @@
##           canary   #15510     +/-   ##
=========================================
  Coverage   70.64%   70.64%             
=========================================
  Files        3274     3274             
  Lines      322959   322934     -25     
  Branches    29419    34147   +4728     
=========================================
- Hits       228155   228148      -7     
+ Misses      94621    94603     -18     
  Partials      183      183             
Flag Coverage Δ
app 61.31% <0.00%> (+<0.01%) ⬆️
database 92.54% <ø> (ø)
packages/agent-manager-runtime 49.69% <ø> (ø)
packages/agent-runtime 81.04% <ø> (ø)
packages/builtin-tool-lobe-agent 18.52% <ø> (ø)
packages/context-engine 84.19% <ø> (ø)
packages/conversation-flow 91.29% <ø> (ø)
packages/device-gateway-client 90.51% <ø> (ø)
packages/eval-dataset-parser 95.15% <ø> (ø)
packages/eval-rubric 76.11% <ø> (ø)
packages/fetch-sse 85.57% <ø> (-1.72%) ⬇️
packages/file-loaders 87.89% <ø> (ø)
packages/memory-user-memory 74.99% <ø> (ø)
packages/model-bank 99.99% <ø> (ø)
packages/model-runtime 84.22% <ø> (ø)
packages/prompts 72.51% <ø> (ø)
packages/python-interpreter 92.90% <ø> (ø)
packages/ssrf-safe-fetch 0.00% <ø> (ø)
packages/types 35.38% <ø> (ø)
packages/utils 84.98% <ø> (ø)
packages/web-crawler 88.08% <ø> (ø)

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

Components Coverage Δ
Store 68.39% <ø> (ø)
Services 54.77% <ø> (ø)
Server 71.82% <ø> (ø)
Libs 54.21% <ø> (ø)
Utils 81.71% <ø> (ø)
🚀 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.

@vercel

vercel Bot commented Jun 8, 2026

Copy link
Copy Markdown

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

Project Deployment Actions Updated (UTC)
lobehub Ready Ready Preview, Comment Jun 8, 2026 2:24am

Request Review

@ONLY-yours ONLY-yours merged commit 419aca2 into lobehub:canary Jun 8, 2026
28 of 29 checks passed
ONLY-yours added a commit that referenced this pull request Jun 9, 2026
Reconcile the klavis→composio migration with the new Connectors system
(custom OAuth MCP connectors) that landed on canary via #15546.

Conflict resolutions (keep connector additions + apply composio rename):
- AgentManagementContextInjector: plugin type union → 'builtin' | 'composio' | 'lobehub-skill' | 'custom'
- contextEngineering: keep COMPOSIO_APP_TYPES + canary's isDesktop import
- useControls / SkillList: keep composioStore + connectorSelectors; drop renamed klavisStore;
  community OAuth connectors live only in the Connectors view (canary dedup, #15510)
- aiAgent: keep both ComposioService and deviceGateway imports

Follow-on fixes for the now-merged tree:
- execAgent.connectorOverlap.test: mock @/server/services/composio (klavis service removed)
- finish incomplete rename in some consumers: servers→composioServers, serverName→label;
  composio.createConnection now returns authConfigId for the optimistic store entry
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size:M This PR changes 30-99 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant