Skip to content

πŸ”¨ chore: optimize bot platform ux#13262

Merged
rdmclin2 merged 14 commits intocanaryfrom
chore/optimize-bot-platform
Mar 27, 2026
Merged

πŸ”¨ chore: optimize bot platform ux#13262
rdmclin2 merged 14 commits intocanaryfrom
chore/optimize-bot-platform

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

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.

Sorry @rdmclin2, you have reached your weekly rate limit of 500000 diff characters.

Please try again later or upgrade to continue using Sourcery

@lobehubbot
Copy link
Copy Markdown
Member

@nekomeowww - This PR optimizes bot platform UX, touching WeChat chat adapter and Telegram/bot server services. Please take a look.

@codecov
Copy link
Copy Markdown

codecov bot commented Mar 25, 2026

Codecov Report

❌ Patch coverage is 52.12766% with 135 lines in your changes missing coverage. Please review.
βœ… Project coverage is 66.74%. Comparing base (926de07) to head (3f57e16).
⚠️ Report is 9 commits behind head on canary.

Additional details and impacted files
@@            Coverage Diff             @@
##           canary   #13262      +/-   ##
==========================================
- Coverage   66.76%   66.74%   -0.02%     
==========================================
  Files        1889     1888       -1     
  Lines      151446   151543      +97     
  Branches    14506    17252    +2746     
==========================================
+ Hits       101112   101149      +37     
- Misses      50222    50282      +60     
  Partials      112      112              
Flag Coverage Ξ”
app 58.18% <52.12%> (-0.02%) ⬇️
database 96.64% <ΓΈ> (ΓΈ)
packages/agent-runtime 89.61% <ΓΈ> (ΓΈ)
packages/context-engine 83.22% <ΓΈ> (ΓΈ)
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.48% <ΓΈ> (ΓΈ)
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.07% <ΓΈ> (ΓΈ)
Services 49.56% <ΓΈ> (ΓΈ)
Server 67.28% <52.12%> (-0.08%) ⬇️
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.

Copy link
Copy Markdown

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

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

ℹ️ 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 on lines +220 to +222
} catch {
// No valid AES key β€” return plaintext per spec
return raw;
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 Restrict plaintext fallback to missing AES keys only

The broad catch here turns all decryption failures into a successful plaintext return, not just the β€œmissing AES key” case. When CDN bytes are actually encrypted but decryption fails (e.g., malformed/incorrect key or corrupted ciphertext), callers receive raw encrypted bytes as an attachment and downloadImageItem will not trigger thumbnail/URL fallback, so users can get unreadable media instead of a recoverable fallback path. This should only fallback to raw when key resolution proves no AES key is available, while real decrypt errors should still throw.

Useful? React with πŸ‘Β / πŸ‘Ž.

@vercel
Copy link
Copy Markdown

vercel bot commented Mar 25, 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 4:57am

Request Review

@rdmclin2 rdmclin2 merged commit 9530333 into canary Mar 27, 2026
33 of 34 checks passed
@rdmclin2 rdmclin2 deleted the chore/optimize-bot-platform branch March 27, 2026 05:28
@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