Skip to content

fix(chat): 修复知识空间问答跳转新会话后崩溃 - #2564

Merged
SuperstructureJH merged 2 commits into
feat/bisheng-work-120-mainfrom
codex/knowledge-chat-crash
Oct 30, 2026
Merged

SuperstructureJH merged 2 commits into
feat/bisheng-work-120-mainfrom
codex/knowledge-chat-crash

Conversation

@SuperstructureJH

Copy link
Copy Markdown
Collaborator

What

修复知识空间提问跳转新会话时的页面崩溃。交接完成后,问题携带所选模型和知识空间发送一次,连续提问继续使用对应的新会话。

Why

交接准备阶段会更新 Recoil 模型状态;同步订阅刷新叠加输入框布局更新,会在 preparedAsk 状态提交前再次执行准备逻辑。重复设置模型最终触发 Maximum update depth exceeded,路由展示通用错误页。真实 ChatView、输入框及模型状态组合夹具已复现。

How

在发布模型和知识空间选择前同步登记当前问题的准备阶段,再通过 React 状态发布准备完成。后续执行等待准备完成,并校验会话、模型与知识空间已就绪。新增同步外部状态订阅回归,覆盖沿用原模型、切换模型、StrictMode 和连续提问。

Test

  • 新增两项回归在原实现均触发更新深度超限,修复后通过。
  • 相关 5 组 62 项回归通过;真实聊天组件组合夹具发送一次并携带正确知识空间。
  • Client / Platform ESLint 与严格类型检查、Client 生产构建、语言资源、架构守卫及差异检查通过。
  • 测试环境部署、真实账号及 macOS / Windows 安装客户端复测待执行。

Related

  • 反馈:知识空间问答跳转 /workspace/c/new 后出现通用错误页。
  • 初始复现基线 8d93affff;提交前已同步 feat/bisheng-work-120-main@78815c66e。
  • 测试环境构建号与反馈截图一致;截图该次异常的精确指纹待现场日志对照。

@SuperstructureJH
SuperstructureJH merged commit 1954f60 into feat/bisheng-work-120-main Oct 30, 2026
1 check passed
binfeng1018 added a commit that referenced this pull request Oct 30, 2026
* feat/3.0.0: (28 commits)
  fix(i18n): shorten the model provider form field hints
  fix: retain daily parsed images and correct workflow runtime and subscription loading
  fix(ui): tidy the header, model form labels and grouped select panels
  chore(deploy): simplify Docker directory and log in to public CR registry
  feat(model): add an OpenAI-compatible provider type
  fix: restore chat defaults and guidance, refine knowledge selection and audit exports
  feat(linsight): download a markdown deliverable together with its images
  chore(deploy): use r5 images for fresh installation validation
  fix(permission): preserve revocable grants during system bootstrap
  fix(linsight): export_docx/export_pdf no longer crash on markdown images
  fix(cli): complete release notes guidance and version smoke check
  fix(chat): 修复知识空间问答跳转新会话后崩溃 (#2564)
  fix(openfga): serialize startup store and model bootstrap
  fix(linsight): bisheng-docx 支持按用户模板排版,不再套国标版式重建
  fix(work): localize built-in skill names and descriptions
  fix(3.0): correct hosted app filters and cascade chat model selection
  fix(license): accept empty gateway remaining days
  fix(deploy): wait for object storage before starting application services
  fix(permission): allow grant subject pickers for linsight skills
  chore(deploy): pin freshly published compose test images
  ...

# Conflicts:
#	src/frontend/client/src/components/Chat/ChatView.tsx
#	src/frontend/platform/src/pages/ModelPage/manage/ModelConfig.tsx
#	src/frontend/platform/src/pages/ModelPage/manage/ModelItem.tsx
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.

1 participant