π¨ chore: optimize bot platform ux#13262
Conversation
|
@nekomeowww - This PR optimizes bot platform UX, touching WeChat chat adapter and Telegram/bot server services. Please take a look. |
Codecov Reportβ Patch coverage is 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
Flags with carried forward coverage won't be shown. Click here to find out more.
π New features to boost your workflow:
|
There was a problem hiding this comment.
π‘ 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".
| } catch { | ||
| // No valid AES key β return plaintext per spec | ||
| return raw; |
There was a problem hiding this comment.
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 πΒ / π.
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
b10c4b1 to
bdbbdb4
Compare
|
β€οΈ 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. |
π» Change Type
π Related Issue
π Description of Change
π§ͺ How to Test
πΈ Screenshots / Videos
π Additional Information