Skip to content

fix(activator): add Klavis service triggers to lobe-creds activation rules#14134

Merged
ONLY-yours merged 1 commit into
lobehub:canaryfrom
ONLY-yours:fix/activator-klavis-creds-triggers
Apr 27, 2026
Merged

fix(activator): add Klavis service triggers to lobe-creds activation rules#14134
ONLY-yours merged 1 commit into
lobehub:canaryfrom
ONLY-yours:fix/activator-klavis-creds-triggers

Conversation

@ONLY-yours

Copy link
Copy Markdown
Member

Problem

When a user says "help me use Notion" or "connect my Slack", the Agent needs to recognize this as a Klavis service connection intent and activate lobe-creds to initiate the OAuth flow.

Currently, the <credentials_management> section in lobe-activator/src/systemRole.ts only lists generic triggers (GitHub, Linear, Twitter, Microsoft) — Klavis-managed services are not mentioned, so the Agent never activates lobe-creds for them.

Change

Added Klavis-managed service names to the trigger conditions and decision flow in lobe-activator/src/systemRole.ts, so the Agent automatically activates lobe-creds when users mention services like Notion, Slack, Google Drive, Airtable, Jira, etc.

Related

Follows up on #14090 which added the connectKlavisService API and Klavis status injection into lobe-creds.

…rules

When users mention Klavis-managed services (Notion, Slack, Google Drive,
Airtable, Jira, Figma, etc.), the activator now recognizes these as
credential/connection intents and activates lobe-creds automatically.
This enables the full Klavis OAuth flow to be triggered inline without
requiring the user to manually navigate to settings.

Related to lobehub#14090
@vercel

vercel Bot commented Apr 24, 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 size:S This PR changes 10-29 lines, ignoring generated files. feature:agent Assistant/Agent configuration and behavior feature:tool Tool calling and function execution labels Apr 24, 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 Apr 24, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 67.28%. Comparing base (421427f) to head (0618d92).
⚠️ Report is 56 commits behind head on canary.

Additional details and impacted files
@@            Coverage Diff            @@
##           canary   #14134     +/-   ##
=========================================
  Coverage   67.28%   67.28%             
=========================================
  Files        2157     2157             
  Lines      185062   185062             
  Branches    22662    19095   -3567     
=========================================
  Hits       124522   124522             
  Misses      60415    60415             
  Partials      125      125             
Flag Coverage Δ
app 60.08% <ø> (ø)
database 92.23% <ø> (ø)
packages/agent-runtime 79.82% <ø> (ø)
packages/context-engine 83.10% <ø> (ø)
packages/conversation-flow 92.40% <ø> (ø)
packages/file-loaders 87.02% <ø> (ø)
packages/memory-user-memory 74.74% <ø> (ø)
packages/model-bank 99.89% <ø> (ø)
packages/model-runtime 84.07% <ø> (ø)
packages/prompts 70.14% <ø> (ø)
packages/python-interpreter 92.90% <ø> (ø)
packages/ssrf-safe-fetch 0.00% <ø> (ø)
packages/utils 88.41% <ø> (ø)
packages/web-crawler 88.66% <ø> (ø)

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

Components Coverage Δ
Store 67.17% <ø> (ø)
Services 51.84% <ø> (ø)
Server 66.40% <ø> (ø)
Libs 52.50% <ø> (ø)
Utils 80.09% <ø> (ø)
🚀 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.

@ONLY-yours ONLY-yours merged commit a101957 into lobehub:canary Apr 27, 2026
20 of 21 checks passed
sxueck pushed a commit to sxueck/lobehub that referenced this pull request May 27, 2026
…rules (lobehub#14134)

When users mention Klavis-managed services (Notion, Slack, Google Drive,
Airtable, Jira, Figma, etc.), the activator now recognizes these as
credential/connection intents and activates lobe-creds automatically.
This enables the full Klavis OAuth flow to be triggered inline without
requiring the user to manually navigate to settings.

Related to lobehub#14090
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

feature:agent Assistant/Agent configuration and behavior feature:tool Tool calling and function execution size:S This PR changes 10-29 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant