Skip to content

🔨 chore: bot architecture upgrade#13096

Merged
rdmclin2 merged 36 commits into
canaryfrom
chore/bot-architecure-upgrade
Mar 20, 2026
Merged

🔨 chore: bot architecture upgrade#13096
rdmclin2 merged 36 commits into
canaryfrom
chore/bot-architecure-upgrade

Conversation

@rdmclin2

Copy link
Copy Markdown
Collaborator

💻 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

@vercel

vercel Bot commented Mar 18, 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 Mar 20, 2026 0:08am

Request Review

@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.

Sorry @rdmclin2, your pull request is larger than the review limit of 150000 diff characters

@codecov

codecov Bot commented Mar 18, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 57.51854% with 630 lines in your changes missing coverage. Please review.
✅ Project coverage is 74.37%. Comparing base (5265286) to head (2290c0f).
⚠️ Report is 40 commits behind head on canary.

Additional details and impacted files
@@            Coverage Diff             @@
##           canary   #13096      +/-   ##
==========================================
- Coverage   74.60%   74.37%   -0.24%     
==========================================
  Files        1489     1503      +14     
  Lines      122670   123274     +604     
  Branches    14174    13538     -636     
==========================================
+ Hits        91524    91680     +156     
- Misses      31036    31484     +448     
  Partials      110      110              
Flag Coverage Δ
app 67.56% <57.51%> (-0.32%) ⬇️
database 98.00% <ø> (ø)
packages/agent-runtime 89.60% <ø> (ø)
packages/context-engine 84.63% <ø> (ø)
packages/conversation-flow 92.37% <ø> (ø)
packages/file-loaders 87.02% <ø> (ø)
packages/memory-user-memory 66.68% <ø> (ø)
packages/model-bank 99.84% <ø> (ø)
packages/model-runtime 84.75% <ø> (ø)
packages/prompts 74.60% <ø> (ø)
packages/python-interpreter 92.90% <ø> (ø)
packages/ssrf-safe-fetch 0.00% <ø> (ø)
packages/utils 90.09% <ø> (ø)
packages/web-crawler 88.81% <ø> (ø)

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

Components Coverage Δ
Store 66.25% <27.27%> (-0.02%) ⬇️
Services 50.01% <33.33%> (-0.03%) ⬇️
Server 69.55% <57.84%> (-0.77%) ⬇️
Libs 41.21% <ø> (ø)
Utils 91.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: 6799ad2000

ℹ️ About Codex in GitHub

Codex has been enabled to automatically 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 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

Comment thread src/routes/(main)/agent/channel/detail/index.tsx Outdated
Comment thread src/server/services/gateway/index.ts Outdated
platform: 'discord',
settings: {},
};
return discord.clientFactory.createClient(config, {});

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P1 Badge Provide appUrl to Discord gateway clients

DiscordGatewayClient.start() builds the callback URL from context.appUrl (src/server/services/bot/platforms/discord/client.ts:85), but this new construction path passes an empty runtime context. The cron route here does that, and GatewayManager.createClient() does the same, so queued/direct Discord starts now hand startGatewayListener a relative /api/agent/webhooks/discord/<appId> path instead of a public URL. That leaves the gateway listener without a reachable callback endpoint after startup.

Useful? React with 👍 / 👎.

@rdmclin2 rdmclin2 merged commit e18855a into canary Mar 20, 2026
32 of 34 checks passed
@rdmclin2 rdmclin2 deleted the chore/bot-architecure-upgrade branch March 20, 2026 12:34
@lobehubbot

Copy link
Copy Markdown
Member

❤️ Great PR @rdmclin2 ❤️

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.

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