Skip to content

fix: 修复 #847 审批恢复与知识库目录问题 - #850

Merged
xerrors merged 3 commits into
xerrors:mainfrom
Yuchuan925:fix/issue-847-bugs
Jul 27, 2026
Merged

fix: 修复 #847 审批恢复与知识库目录问题#850
xerrors merged 3 commits into
xerrors:mainfrom
Yuchuan925:fix/issue-847-bugs

Conversation

@Yuchuan925

@Yuchuan925 Yuchuan925 commented Jul 24, 2026

Copy link
Copy Markdown
Collaborator

变更描述

处理 #847 中已确认的第 1、3、4 项问题:

  • 普通消息遇到 409/run_interrupted 时,从 LangGraph checkpoint 重新加载完整中断状态并恢复审批/提问界面。
  • 恢复被后端拒绝、未持久化的文本和图片草稿,同时保留等待响应期间的新草稿内容。
  • 修复二级目录点击“全部文件”时 parentId: null 被空值回退覆盖的问题。
  • 知识导图文件查询覆盖知识库全部目录,支持根目录为空、子目录有文件的场景。
  • 补充审批冲突、checkpoint 状态、根目录导航和子目录导图文件的回归测试,并更新 changelog。

第 2 项“知识库卡片偶发需要等待才能进入”本 PR 仅完成初步分析,没有包含修复。当前证据指向知识库列表加载期间同步初始化 Milvus 可能阻塞请求,后续单独验证和处理。

关联 #847

变更类型

  • 新功能
  • Bug 修复
  • 文档更新
  • 其他

测试

  • 已在 Docker 环境测试
  • 相关功能已在真实业务场景完整验证
  • 后端相关单元测试通过:21 passed
  • 前端单元测试通过:11 passed
  • Ruff check / format check 通过
  • Prettier、ESLint、前端生产构建通过
  • git diff --check 通过

执行过的主要命令:

cd backend
UV_PYTHON=3.12 uv run --group test pytest \
  test/unit/services/test_chat_service_sync.py \
  test/unit/knowledge/test_mindmap_utils.py \
  test/unit/knowledge/test_file_listing_scaling.py -q

cd web
pnpm run test:unit
pnpm run build

@gemini-code-assist

Copy link
Copy Markdown
Contributor

Caution

The consumer version of Gemini Code Assist on GitHub has been sunset. All code review activity has officially ceased.

@Yuchuan925 Yuchuan925 changed the title WIP: 修复 #847 审批恢复与知识库目录问题 🤖 fix: 修复 #847 审批恢复与知识库目录问题 Jul 27, 2026
@Yuchuan925
Yuchuan925 marked this pull request as ready for review July 27, 2026 12:30
@gemini-code-assist

Copy link
Copy Markdown
Contributor

Caution

The consumer version of Gemini Code Assist on GitHub has been sunset. All code review activity has officially ceased.

@xerrors

xerrors commented Jul 27, 2026

Copy link
Copy Markdown
Owner

@codex review

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: c9293caa98

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread web/src/components/AgentInputArea.vue Outdated
Comment thread backend/package/yuxi/knowledge/manager.py Outdated
Comment thread backend/package/yuxi/knowledge/manager.py Outdated
@xerrors
xerrors merged commit 2f8fa7f into xerrors:main Jul 27, 2026
1 check passed
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.

2 participants