Skip to content

fix(agent): preserve helper streams and restore generated configurations - #8094

Merged
c121914yu merged 9 commits into
labring:mainfrom
YYH211:yyh/fix-agent-helper-tools-and-refresh
Oct 22, 2026
Merged

c121914yu merged 9 commits into
labring:mainfrom
YYH211:yyh/fix-agent-helper-tools-and-refresh

Conversation

@YYH211

@YYH211 YYH211 commented Oct 22, 2026 •

Copy link
Copy Markdown
Collaborator

修复 Agent V2 辅助生成的工具选择与刷新恢复:复用现有授权和安装状态过滤系统、团队工具,并在提示词、配置和应用过程中保留工具来源,避免同 ID 工具互相覆盖。页面断开 SSE 后后台继续生成,前端通过 Redis 流恢复输出和配置事件;显式停止仍会终止任务。

生成配置的完整表单归档到会话所属 S3 文件,聊天消息仅新增 chatAgentBuilderVersion 引用,保留一天。重新打开已完成的会话时展示“应用配置”卡片,由用户手动应用,避免自动覆盖后续编辑;加载接口校验应用权限、团队、成员、会话和 AI 消息归属。

验证:App/Admin 类型检查通过;最新 rebase 后的 153 项局部回归通过;此前 service 集成 19 项、Sandbox 业务集成 25 项通过,另有 32 项环境条件跳过。浏览器验证了生成中刷新恢复、完成后保留手动编辑、从 S3 应用配置及生成 Agent 实际调用系统工具。

已审查并决定本次保留的边界:断连后连续两分钟无输出仍可能触发现有过期状态清理;生成成功后模型仍可能继续提问或重复生成;多配置事件的异步应用尚无顺序保护。

依赖的 Pro PR:https://github.com/labring/fastgpt-pro/pull/1221

@github-actions

github-actions Bot commented Oct 22, 2026 •

Copy link
Copy Markdown

✅ Admin Preview Image Ready!

ghcr.io/labring/fastgpt-pr:admin_5c30b95eedef2f95cb1a71b49121e5149aa5c6a7

🕒 Time: 2026-10-23 00:01:27 (UTC+8)

@github-actions

github-actions Bot commented Oct 22, 2026 •

Copy link
Copy Markdown

✅ Build and publish successful - Preview fastgpt Image:

ghcr.io/labring/fastgpt-pr:fastgpt_5c30b95eedef2f95cb1a71b49121e5149aa5c6a7

🕒 Time: 2026-10-23 00:03:08 (UTC+8)

@github-actions

github-actions Bot commented Oct 22, 2026 •

Copy link
Copy Markdown

Coverage Report

Status Category Percentage Covered / Total
🔵 Lines 57.95% 6018 / 10384
🔵 Statements 57.5% 6350 / 11043
🔵 Functions 53.38% 1127 / 2111
🔵 Branches 52.39% 3234 / 6172
File CoverageNo changed files found.
Generated in workflow #4730 for commit 5c30b95 by the Vitest Coverage Report Action

@c121914yu
c121914yu force-pushed the yyh/fix-agent-helper-tools-and-refresh branch from fe75261 to 2dbeb03 Compare October 22, 2026 15:21
@c121914yu
c121914yu force-pushed the yyh/fix-agent-helper-tools-and-refresh branch from b497c7c to 5c30b95 Compare October 22, 2026 15:54
@c121914yu c121914yu changed the title fix(agent): filter unavailable tools and preserve helper streams fix(agent): preserve helper streams and restore generated configurations Oct 22, 2026
@c121914yu
c121914yu merged commit 53827b0 into labring:main Oct 22, 2026
14 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants