Repository navigation
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.
改动说明
研究报告中的正常文本会在清理后被改写:
12.5%变成12. 5%,AAPL.US变成AAPL. US,URL 和段落换行也会被破坏,即使返回的scrubbed是false。parseSynthesisJson会对摘要、章节摘要及 bull/bear/catalysts/risks 都调用此逻辑。原因是按句点切分时吞掉原有空白,再用空格拼接所有片段。本次保留原始分隔,删除命中注入模式的片段后原样拼接其余文本。注入词表与删除判定保持不变。增加清理器回归及真实
parseSynthesisJson集成用例,覆盖全部文案字段。关联 Issue
未关联现有 Issue。已检查现有 PR 与当前 main,未发现同范围修复。
测试报告
环境
helsome/folio的main,e42e9279bf6aac810dd1361ba458fec0b94be9dcbun install --frozen-lockfile --ignore-scripts实际执行命令与结果
已知失败 / Baseline
首次与另一工作树同时运行 shared 全套时为 1481 pass / 1 fail:未修改的
PiRuntimeAdapter > removes the session conversation file on disposeSession在固定路径/tmp/pi/s1.jsonl写入时报 Windows EPERM。停止并行全套后,本分支独立复跑全部通过;未修改的 main 独立运行同命令为 1477 pass / 0 fail。未将该环境失败算作本修复的红测。Scope / 后续
仅修复输出清理时的文本保真,不扩大注入检测策略,不改变报告结构。