feat(chat): 恢复会话历史中的 Agent 执行阶段 - #49
Merged
Merged
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.
背景
当前会话历史只恢复用户和 AI 消息,刷新后无法查看 Agent 已持久化的节点执行过程。经历 interrupt/resume 的同一个 Job 可能包含多个输入阶段,但前端只能显示当前实时阶段。
活动 Job 刷新还直接使用活动接口返回的最新事件 ID 建立 SSE,存在加载历史与建立订阅之间新增事件被跳过的窗口。
主要改动
/api/load_session增加可选thinking_after。安全与性能
测试
已知验证边界
未运行真实 LLM/MCP Job。浏览器验收使用隔离 API mock,没有写入业务测试数据。
完整 integration 中有两个与本次修改无关的现有部署检查失败:
数据库变更
无。