Repository navigation
Conversation
helsome#331 的核心联动,共同交付其前置身份修复 helsome#327 与 helsome#326: - WorkspaceContext 新增可选 selectedReportId/selectedThesisId(core 增量), workspaceAtoms 新增 selectedReportIdAtom/selectedThesisIdAtom 并汇入 workspaceContextAtom,Copilot 上下文可见当前版本身份 - helsome#327:切换标的时清空其它证券的报告并忽略慢响应(alive 防护); 运行历史入口常驻;Today 深链携带 reportId 打开指定版本; 保存论点端到端绑定所选 reportId(client→preload→kernelHost→service), reportId 与 symbol 不匹配时明确报错而非静默保存最新版 - What Changed 对比按所选报告版本取其前驱,历史版本不再展示最新 diff, 也不覆盖缓存中的最新对比 - helsome#326:手动复审端到端传递 thesisId 并校验所属 symbol, 卡片按 impact.thesisId 真实返回更新;自动监控保持最新论点语义不变 Closes helsome#327 Closes helsome#326 Refs helsome#331
6 tasks done
This was referenced Oct 20, 2026
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.
Closes #327
Closes #326
Refs #331
改了什么
按 #331 的要求("#326/#327 是身份错误修复,应先修或共同交付"),本 PR 共同交付两个前置身份修复,并实现 #331 的核心联动。
1. 选择身份(#331 核心)
WorkspaceContext(core)新增可选selectedReportId/selectedThesisId,纯增量workspaceAtoms新增selectedReportIdAtom/selectedThesisIdAtom,并汇入既有workspaceContextAtom—— Copilot 运行上下文因此能看到用户当前打开的报告版本与正在操作的论点,不另造业务存储startResearch在点击时显式携带 symbol/strategy(点击即冻结);WorkspaceContext 随 run 传入2. 报告版本身份(#327)
loadSymbolReports/loadResearchReport全部加 alive 防护——旧标的的慢响应不得覆盖新选择report.id(新增pendingResearchReportIdAtom),研究面板加载该版本而非重新解析最新saveThesisFromReport({ symbol, reportId })贯穿 client→preload→kernelHost→ThesisService;reportId与 symbol 不匹配时抛REPORT_NOT_FOUND,绝不静默保存另一版本(legacy 裸 symbol 调用保持兼容)research:getDiff接受可选reportId,历史版本与其前驱对比且不覆盖缓存;选中版本无前驱时不返回 diff3. 论点身份(#326)
ThesisService.reEvaluate(symbol, trigger?, thesisId?):显式thesisId时评估该论点并校验所属 symbol(不匹配抛THESIS_NOT_FOUND);不传时保持"最新论点"语义——自动监控调用点零改动ThesisPanel点击复审时传thesis.id,并按impact.thesisId(真实返回)更新对应卡片,错位响应不会顶替未操作的卡片selectedThesisIdAtom对应 Issue
验证
环境:Bun 1.3.14 / Windows 11 (win32 10.0.26200)
新增行为测试覆盖(fixture 层,非 mock 纯函数):
{ symbol, thesisId },selection 同步已知未完成项 / 后续工作
thesisReEvaluate手动复审涉及真实模型调用的完整桌面复现未执行(与 [P1][产品] 手动复审应绑定所选 thesisId,避免旧论点被最新版本替换 #326 的验收口径一致,源码推演 + 确定性回归先行)。thesisGetReport(legacy latest 路径)逐步收敛到显式 reportId 调用。