Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

✨ feat: add reasoning content selector and update AutoScroll component #7056

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

samurai00
Copy link

💻 变更类型 | Change Type

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

🔀 变更说明 | Description of Change

This PR addresses an issue where the chat window doesn't automatically scroll to the bottom during AI's deep reasoning process, even when the reasoning block is expanded. The changes ensure that updates in reasoning content will now trigger automatic scrolling.

  • Introduced mainAILatestMessageReasoningContent selector to retrieve the reasoning content of the latest message.
  • Updated AutoScroll component to include the new reasoning content in its effect dependencies.
  • Added unit tests for the new selector to ensure correct functionality.

📝 补充信息 | Additional Information

- Introduced `mainAILatestMessageReasoningContent` selector to retrieve the reasoning content of the latest message.
- Updated `AutoScroll` component to include the new reasoning content in its effect dependencies.
- Added unit tests for the new selector to ensure correct functionality.
Copy link

vercel bot commented Mar 20, 2025

@samurai00 is attempting to deploy a commit to the LobeChat Desktop Team on Vercel.

A member of the Team first needs to authorize it.

@dosubot dosubot bot added the size:M This PR changes 30-99 lines, ignoring generated files. label Mar 20, 2025
@lobehubbot
Copy link
Member

👍 @samurai00

Thank you for raising your pull request and contributing to our Community
Please make sure you have followed our contributing guidelines. We will review it as soon as possible.
If you encounter any problems, please feel free to connect with us.
非常感谢您提出拉取请求并为我们的社区做出贡献,请确保您已经遵循了我们的贡献指南,我们会尽快审查它。
如果您遇到任何问题,请随时与我们联系。

@dosubot dosubot bot added the 🌠 Feature Request New feature or request | 特性与建议 label Mar 20, 2025
Copy link
Contributor

gru-agent bot commented Mar 20, 2025

TestGru Assignment

Summary

Link CommitId Status Reason
Detail 5050df2 🚫 Skipped

Files

File Pull Request
src/store/chat/slices/message/selectors.ts 🚫 Skipped (There's no need to update the test code)

Tip

You can @gru-agent and leave your feedback. TestGru will make adjustments based on your input

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🌠 Feature Request New feature or request | 特性与建议 size:M This PR changes 30-99 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants