refactor(web): 对齐 PR #655,移除 legacy verification 事件链路#658
Merged
pionxe merged 3 commits intoMay 19, 2026
Conversation
# Conflicts: # web/src/stores/useRuntimeInsightStore.test.ts # web/src/utils/eventBridge.test.ts
|
Codex usage limits have been reached for code reviews. Please check with the admins of this repo to increase the limits by adding credits. |
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
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.
背景
PR #655 已在 runtime 侧清理旧的
verification_started/verification_stage_finished/verification_finished事件链路,Web 端需要同步完成收口,避免继续暴露失效协议和无效 UI 状态。本 PR 按方案 A 对齐 Web 端实现:彻底移除旧 verification 中间态模型,只保留当前 runtime 仍会发出的最终态事件消费。
本次改动
1. 清理失效协议定义
web/src/api/protocol.ts中已失效的事件常量和 payload:VerificationStartedVerificationStageFinishedVerificationFinishedVerificationStartedPayloadVerificationStageFinishedPayloadVerificationFinishedPayload2. 收口事件桥接逻辑
web/src/utils/eventBridge.ts中对旧 verification 中间态事件的处理_latestVerificationMsgIdverification_completedverification_failedacceptance_decided3. 收缩 runtime insight store
web/src/stores/useRuntimeInsightStore.ts中仅服务于旧 verifier 中间态的状态和 action:verificationRunningverificationStartedverificationStagesverificationFinishedverificationHistorystartVerificationupsertVerificationStagefinishVerificationverificationCompletedverificationFailedacceptanceDecision4. 删除旧 verification UI 链路
VerificationMessage组件及其测试MessageItem不再渲染 verification 卡片useChatStore不再维护 verification 相关消息数据5. 清理注释与残留说明
useChatStore.ts中的乱码注释影响
verification_*事件VerificationStarted的中间态 history/message/store 逻辑verification_completedverification_failedacceptance_decided测试
已通过:
npm test -- src/utils/eventBridge.test.ts src/stores/useRuntimeInsightStore.test.ts src/components/chat/MessageItem.test.tsxnpm run build备注
这个 PR 不回滚 #655,也不重建新的 acceptance timeline,只完成 Web 端对 runtime 新语义的收口对齐。
close #656