Repository navigation
fix(orchestrator): 修复回复开头 @ 导致的链式发言断链 - #33
Merged
jaychouchannel merged 1 commit intoAug 29, 2026
Merged
jaychouchannel merged 1 commit into
jaychouchannel merged 1 commit into
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #32
改动
strip_mention_prefix增加speaker参数:只剥离发言者本人的开头自报前缀;对其他角色的开头 @ 原样保留(那是链式信号),并在剥离时顺带清掉紧邻标点(,、。::;等),不再留孤立的,开头。_stream_role调用处传入speaker=role.name。speaker时行为与旧版完全一致(向后兼容)。验证
tests/test_engine_chain.py:引擎级回归测试——代码手回复@研究员,请补充你的看法。后,研究员被重新排队(role_start序列为 研究员 → 代码手 → 研究员),且历史中该 @ 原样保留;done;python -m pytest tests/ -q:12 passed(原 10 + 新 2)。