Repository navigation
fix(client): 适配 Harness 0.1.6 会话接口(读取当前会话) - #7
Merged
Merged
Conversation
yaojin3616
force-pushed
the
fix/harness-016-sessions
branch
from
September 22, 2026 07:24
fcdbfb6 to
05d0273
Compare
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.
问题
Harness 0.1.6 移除了
sessions.list.getSnapshot().current。工作台依赖该字段时,开场白、自动解读、档案恢复和“跟着对话走”都会失效。修改
本 PR 建立在 #6 的宿主身份方案之上,不再读取或传递 runtime
workbenchId:desktopWorkbenches.currentSession()获取主视图会话。byId[id].retainedBy.mainView读取。snapshot.current作为会话 API 回退;该回退与工作台身份迁移无关。isActive()与ownsSession()判断。验证
npm run check:8 项 DSH 测试、16 项 adapter 测试通过。npm run check:distribution:通过。git diff --check:通过。尚未在真实 Desktop v0.10.0 中手动验证。
合并顺序
先合并 #6,再合并本 PR。