Skip to content

fix(v2): attribute AgentRecall Runtime sessions - #540

Open
XinxinAkuma wants to merge 10 commits into
zszz3:mainfrom
XinxinAkuma:fix/issue-535-runtime-sessions
Open

fix(v2): attribute AgentRecall Runtime sessions#540
XinxinAkuma wants to merge 10 commits into
zszz3:mainfrom
XinxinAkuma:fix/issue-535-runtime-sessions

Conversation

@XinxinAkuma

Copy link
Copy Markdown

变更内容

  • 为 Workflow、Eval、Team Chat、Agent、Skill 和系统任务统一记录 AgentRecall Runtime 调用来源
  • 在 Runtime 派发前持久化调用,并在原生 Session 引用出现时尽早绑定,覆盖成功、失败、取消和超时路径
  • 使用 Runtime、环境、频道和原生 Session ID 的复合身份避免错误归属,区分 AgentRecall 新建与继续用户既有 Session
  • 在 Session 列表、搜索、分页、计数和 Workbench 统计中统一普通会话与 AgentRecall 调用口径,默认收起 AgentRecall 分组
  • 为 Workflow、Eval、Team Chat、Agent 和 Skill 增加可追溯的双向导航;缺少可靠引用时保留诊断信息,不猜测归属
  • 安全回填可靠的历史业务引用,不修改编码 Agent 的原始 Session 文件,也不改变收藏、标签和隐藏状态

安全与边界

  • Runtime 调用统一复用现有 RuntimeRouter、Session repository、IPC/preload 和业务页面
  • IPC 对调用来源和 owner reference 做长度、数量及类型校验
  • Session 查询保持参数化,持久化错误经过裁剪,不写入提示词或原始会话内容
  • 频道归属存在歧义时拒绝自动关联,避免把不同运行入口错误合并

验证

  • 生产构建及 620 个生产模块入口检查:通过
  • Vitest:261 files / 2495 tests passed
  • npm --prefix apps/main-2.0 run test:scripts:166 passed
  • npm run release-note:check:通过
  • git diff --check origin/main...fix/issue-535-runtime-sessions:通过
  • 两分支合并模拟:无冲突

本地 Node 26 的现有主题测试需要为 Node global localStorage 指定临时文件;仓库 CI 固定使用 Node 22。该环境问题可在未修改相关代码的分支上复现,不是本 PR 引入的回归。

Closes #535

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

V2 统一标记 AgentRecall 发起的 Runtime Session,并在 Session 页面归组收起

1 participant