Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions backend/server/routers/chat_router.py
Original file line number Diff line number Diff line change
Expand Up @@ -208,6 +208,7 @@ async def list_agent_configs(
if not items:
await repo.get_or_create_default(
department_id=current_user.department_id,
agent_id=agent_id,
created_by=str(current_user.id),
)
Comment on lines 209 to 213
Copy link

Copilot AI Mar 30, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

当前 PR 描述中提到新增了 backend/test/test_chat_router_configs.py 覆盖“无配置自动创建默认配置”路径,但仓库中未看到对应测试文件或对该路由的新增用例。鉴于该回归点曾导致 500,建议补充一个 router 单测:当 list_by_department_agent 首次返回空列表时,应调用 get_or_create_default 且包含 agent_id/department_id/created_by,并验证接口返回 200。

Copilot uses AI. Check for mistakes.
items = await repo.list_by_department_agent(department_id=current_user.department_id, agent_id=agent_id)
Expand Down
1 change: 1 addition & 0 deletions docs/develop-guides/roadmap.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@
- 修复前端工具图标与渲染匹配不准确的问题:工具管理列表与工具调用结果统一改为基于工具 `id` 的精确映射,避免模糊匹配导致的误渲染,未命中的工具不再显示默认扳手图标
- 修复 GitHub Pages 文档部署工作流失败:移除 `actions/setup-node@v4` 对不存在 `docs/package-lock.json` 的缓存依赖,并将 `docs` 目录安装命令从 `npm ci` 调整为 `npm install`,避免因未提交锁文件导致 CI 在依赖缓存和安装阶段直接失败
- 修正沙盒 provisioner backend 命名与配置说明:统一对外使用 `docker` / `kubernetes`,保留 `local` 作为兼容别名;同步清理 compose 中未生效的 provisioner 环境变量、补齐 K8s 相关变量注释,并更新沙盒架构文档中的默认模式与 backend 描述
- 修复智能体配置列表接口在“无配置自动创建默认配置”路径下的参数缺失:补齐 `get_or_create_default` 的 `agent_id` 入参,避免 `/api/chat/agent/{agent_id}/configs` 返回 500
- 修复 LightRAG 同库写入并发导致的入库失败:为 `index_file` / `update_content` 增加按知识库维度的串行锁,并补齐 `documents` 接口 `auto_index` 阶段对最新解析状态的回写与回归测试,避免长时间入库任务进行中再次选择同库文件时直接并发写入报错

<!-- 添加到这里 -->
Expand Down
Loading