Skip to content

🐛 fix(creds): integrate Klavis authorization status into lobe-creds system#14090

Merged
ONLY-yours merged 2 commits into
canaryfrom
feat/klavis-creds-integration
Apr 23, 2026
Merged

🐛 fix(creds): integrate Klavis authorization status into lobe-creds system#14090
ONLY-yours merged 2 commits into
canaryfrom
feat/klavis-creds-integration

Conversation

@ONLY-yours

Copy link
Copy Markdown
Member

Inject Klavis connected/available services into the creds systemPrompt so agents are aware of Klavis-managed OAuth authorizations and stop asking users for manual tokens. Add connectKlavisService API to allow agents to initiate Klavis OAuth connections from within chat conversations.

Fixes LOBE-7243

💻 Change Type

  • ✨ feat
  • 🐛 fix
  • ♻️ refactor
  • 💄 style
  • 👷 build
  • ⚡️ perf
  • ✅ test
  • 📝 docs
  • 🔨 chore

🔗 Related Issue

🔀 Description of Change

🧪 How to Test

  • Tested locally
  • Added/updated tests
  • No tests needed

📸 Screenshots / Videos

Before After
... ...

📝 Additional Information

…system

Inject Klavis connected/available services into the creds systemPrompt so
agents are aware of Klavis-managed OAuth authorizations and stop asking
users for manual tokens. Add connectKlavisService API to allow agents to
initiate Klavis OAuth connections from within chat conversations.

Fixes LOBE-7243

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

vercel Bot commented Apr 23, 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 Apr 23, 2026 9:26am

Request Review

@dosubot dosubot Bot added size:L This PR changes 100-499 lines, ignoring generated files. feature:auth Authentication and authorization feature:tool Tool calling and function execution labels Apr 23, 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 23, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 28.57143% with 20 lines in your changes missing coverage. Please review.
✅ Project coverage is 67.13%. Comparing base (8e20bd1) to head (2f720e7).
⚠️ Report is 2 commits behind head on canary.

Additional details and impacted files
@@            Coverage Diff             @@
##           canary   #14090      +/-   ##
==========================================
- Coverage   67.14%   67.13%   -0.01%     
==========================================
  Files        2133     2133              
  Lines      182487   182514      +27     
  Branches    21540    22318     +778     
==========================================
+ Hits       122529   122536       +7     
- Misses      59833    59853      +20     
  Partials      125      125              
Flag Coverage Δ
app 59.74% <28.57%> (-0.01%) ⬇️
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 66.59% <ø> (ø)
Services 51.81% <28.57%> (-0.13%) ⬇️
Server 66.57% <ø> (ø)
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.

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

Copy link
Copy Markdown

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: b25efd84fb

ℹ️ 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 packages/builtin-tool-creds/src/manifest.ts
Comment thread packages/builtin-tool-creds/src/executor/index.ts
…onnectKlavisService

- Clear windowCheckInterval in cleanup to prevent dangling interval
- Add connectKlavisService to CredsExecutionRuntime for server-side support

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@ONLY-yours ONLY-yours merged commit 66d096e into canary Apr 23, 2026
40 of 42 checks passed
@ONLY-yours ONLY-yours deleted the feat/klavis-creds-integration branch April 23, 2026 09:47
ONLY-yours added a commit that referenced this pull request Apr 27, 2026
…rules (#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 #14090
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:auth Authentication and authorization feature:tool Tool calling and function execution size:L This PR changes 100-499 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant