π fix: when use market group, the group sys role was not used#11739
π fix: when use market group, the group sys role was not used#11739ONLY-yours merged 1 commit intonextfrom
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Reviewer's guide (collapsed on small PRs)Reviewer's GuideAdjusts how the group system role content is selected when forking a group and starting a chat, ensuring the groupβs own systemRole takes precedence over the supervisorβs configuration for market groups. Sequence diagram for forking a group and starting a chat with updated systemRole precedencesequenceDiagram
actor User
participant UI as ForkGroupAndChat_component
participant GroupService
participant ChatService
User->>UI: Click ForkGroupAndChat button
UI->>GroupService: getGroupConfig(identifier)
GroupService-->>UI: config(systemRole, meta)
UI->>GroupService: getSupervisorConfig(identifier)
GroupService-->>UI: supervisorConfig(systemRole)
UI->>UI: Determine content
note over UI: content = config.systemRole || supervisorConfig.systemRole
UI->>ChatService: createChat({ type: forked_group_chat, forkedFromIdentifier: identifier, content: content, meta: meta })
ChatService-->>UI: chatCreated
UI-->>User: Open new forked group chat
Flow diagram for systemRole selection when forking a groupflowchart TD
A[Start: Fork group and chat] --> B[Load config for group]
B --> C[Load supervisorConfig for group]
C --> D{Does config.systemRole exist?}
D -->|Yes| E[content = config.systemRole]
D -->|No| F{Does supervisorConfig.systemRole exist?}
F -->|Yes| G[content = supervisorConfig.systemRole]
F -->|No| H[content = undefined]
E --> I[Create forked group chat]
G --> I
H --> I
I --> J[End]
File-Level Changes
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
|
β³ Processing in progress |
There was a problem hiding this comment.
Hey - I've left some high level feedback:
- The inline comment still says the group content is the supervisor's systemRole for backward compatibility, but the precedence is now the group's config.systemRole; consider updating the comment to reflect the new behavior.
- If an empty string is a valid
systemRole, you may want to use the nullish coalescing operator (config.systemRole ?? supervisorConfig?.systemRole) instead of||to avoid unintentionally falling back when the role is an empty string.
Prompt for AI Agents
Please address the comments from this code review:
## Overall Comments
- The inline comment still says the group content is the supervisor's systemRole for backward compatibility, but the precedence is now the group's config.systemRole; consider updating the comment to reflect the new behavior.
- If an empty string is a valid `systemRole`, you may want to use the nullish coalescing operator (`config.systemRole ?? supervisorConfig?.systemRole`) instead of `||` to avoid unintentionally falling back when the role is an empty string.Help me be more useful! Please click π or π on each comment and I'll use the feedback to improve your reviews.
|
β€οΈ Great PR @ONLY-yours β€οΈ The growth of project is inseparable from user feedback and contribution, thanks for your contribution! If you are interested in 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.
Original Contentβ€οΈ Great PR @ONLY-yours β€οΈ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. |
## [Version 2.0.0-next.349](v2.0.0-next.348...v2.0.0-next.349) <sup>Released on **2026-01-23**</sup> #### π Bug Fixes - **misc**: When use market group, the group sys role was not used. <br/> <details> <summary><kbd>Improvements and Fixes</kbd></summary> #### What's fixed * **misc**: When use market group, the group sys role was not used, closes [#11739](#11739) ([afc76f9](afc76f9)) </details> <div align="right"> [](#readme-top) </div>
|
π This PR is included in version 2.0.0-next.349 π The release is available on: Your semantic-release bot π¦π |
## [Version 1.154.0](v1.153.1...v1.154.0) <sup>Released on **2026-01-23**</sup> #### β» Code Refactoring - **misc**: Migrate AI Rules to Claude Code Skills. #### β¨ Features - **database**: Extended async task with metadata and parent id, added index. - **misc**: Remove NextAuth. #### π Bug Fixes - **copilot**: History popover not refreshing when agentId changes. - **editor**: Prevent crash when toggling enableInputMarkdown setting. - **home**: Use correct CreateGroupModal for session group creation. - **model-runtime**: Handle null content in anthropic message builder. - **ModelSelect**: Resolve tooltip hover causing popup to close. - **pdf**: Ensure worker config before Document render. - **store**: Delete message before regeneration. - **misc**: Fix auto scroll, fix favorite refresh bug and group topic refresh issue, fixed the agent group builder tools excaution edge case crash, page content switch mismatch, when use market group, the group sys role was not used. <br/> <details> <summary><kbd>Improvements and Fixes</kbd></summary> #### Code refactoring * **misc**: Migrate AI Rules to Claude Code Skills, closes [lobehub#11737](https://github.com/jaworldwideorg/OneJA-Bot/issues/11737) ([346fc46](346fc46)) #### What's improved * **database**: Extended async task with metadata and parent id, added index, closes [lobehub#11712](https://github.com/jaworldwideorg/OneJA-Bot/issues/11712) ([31d2f26](31d2f26)) * **misc**: Remove NextAuth, closes [lobehub#11732](https://github.com/jaworldwideorg/OneJA-Bot/issues/11732) ([1eff864](1eff864)) #### What's fixed * **copilot**: History popover not refreshing when agentId changes, closes [lobehub#11731](https://github.com/jaworldwideorg/OneJA-Bot/issues/11731) ([64f39e7](64f39e7)) * **editor**: Prevent crash when toggling enableInputMarkdown setting, closes [lobehub#11755](https://github.com/jaworldwideorg/OneJA-Bot/issues/11755) ([ea5eed8](ea5eed8)) * **home**: Use correct CreateGroupModal for session group creation, closes [lobehub#11752](https://github.com/jaworldwideorg/OneJA-Bot/issues/11752) ([36bcc50](36bcc50)) * **model-runtime**: Handle null content in anthropic message builder, closes [lobehub#11756](https://github.com/jaworldwideorg/OneJA-Bot/issues/11756) ([539753a](539753a)) * **ModelSelect**: Resolve tooltip hover causing popup to close, closes [lobehub#11742](https://github.com/jaworldwideorg/OneJA-Bot/issues/11742) ([1b73f14](1b73f14)) * **pdf**: Ensure worker config before Document render, closes [lobehub#11746](https://github.com/jaworldwideorg/OneJA-Bot/issues/11746) ([ad34072](ad34072)) * **store**: Delete message before regeneration, closes [lobehub#11760](https://github.com/jaworldwideorg/OneJA-Bot/issues/11760) ([a8a6300](a8a6300)) * **misc**: Fix auto scroll, closes [lobehub#11734](https://github.com/jaworldwideorg/OneJA-Bot/issues/11734) ([892fa9f](892fa9f)) * **misc**: Fix favorite refresh bug and group topic refresh issue, closes [lobehub#11745](https://github.com/jaworldwideorg/OneJA-Bot/issues/11745) ([5d115ef](5d115ef)) * **misc**: Fixed the agent group builder tools excaution edge case crash, closes [lobehub#11735](https://github.com/jaworldwideorg/OneJA-Bot/issues/11735) ([5de4742](5de4742)) * **misc**: Page content switch mismatch, closes [lobehub#11758](https://github.com/jaworldwideorg/OneJA-Bot/issues/11758) ([fdc8f95](fdc8f95)) * **misc**: When use market group, the group sys role was not used, closes [lobehub#11739](https://github.com/jaworldwideorg/OneJA-Bot/issues/11739) ([afc76f9](afc76f9)) </details> <div align="right"> [](#readme-top) </div>
π» Change Type
fix: LOBE-3449
π Related Issue
π Description of Change
π§ͺ How to Test
πΈ Screenshots / Videos
π Additional Information
Summary by Sourcery
Bug Fixes: