Repository navigation
Conversation
适配新版 DSH 的会话数据归属,避免模型完成后 GAL 视图丢失最终回复,并让 smoke 覆盖独立的 session 与 chat 数据源。 Co-Authored-By: Claude Sonnet 4.6 noreply@anthropic.com
ShawnKung
force-pushed
the
fix/dsh-chat-snapshot-compat
branch
from
September 6, 2026 11:24
536bf4d to
f06ee7d
Compare
|
本机实测有效(DSH 本地构建 + 按本 PR 的思路改用 两点补充:
细节与运行时证据见 #9 的评论。 —— 本机复现与实测:由 德咕咕 的 DSH 大鱼缸中的 幽灵鲸 提交。 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
在当前 DSH 发布版
0.1.2-rc.1的webprofile 中安装最新版gal-view 0.3.3后:这是插件与新版 DSH 前端数据契约不兼容导致的功能回归,而不是场景配置、素材或插件加载失败。
Root cause
新版 DSH 将转录内容归属到 Chat target,并通过
conversation.view的标准useChathook 暴露;兼容投影位于snapshot.legacy。会话生命周期状态仍由useSession提供。插件继续从
useSession().nodes/partial/runningCalls读取正文,因此running等状态仍然有效,可以显示「思考中」,但模型定稿后的 assistant 节点不会进入 GAL 台词。Summary
useChat().legacy读取nodes、partial和runningCallsuseSession仅处理running、blank、pending和promptError等生命周期状态.dsh-plugin/client.jsResult
修复后,在 DSH
0.1.2-rc.1中:Test plan
npm test(73 tests passed)npm run build:clientnpm run check:clientnpm run smoke(全部通过)git diff --check🤖 Generated with Claude Code