Replies: 1 comment
|
开发了一个插件 https://github.com/zhengmz/dsh-auto-fold 补齐自动折叠能力,供参考 实现如果设置了 Compact 后,在切换对话时,会自动折叠回合。 |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
现象
DSH Desktop 2.0.9(内核 0.1.5-rc.1,Windows 11)。打开一个较长的会话时,视图只加载尾部窗口,顶部会出现「加载更早」按钮。此时:
代码线索(0.1.5-rc.1,
@deepseek-ai/dsh-client-ui-chat)也就是说
historyIncomplete(=hasMore)是一个会话级开关:只要还有更早历史没加载,所有已加载回合的折叠一起被关掉。而
hasMore的解除路径只有两条:点「加载更早」按钮(loadOlderAnchored)或通过回合导航跳到更早回合(loadThrough)。chat-view 里没有滚到顶部自动补载(无 IntersectionObserver,也没有 scrollTop==0 触发)。因此长会话默认就一直停在这个"折叠被静默禁用"的状态。实测记录
hasMore=true)foldable=false;摘要行hidden、过程行无隐藏属性{"kind":"turn-process","foldable":true,"open":false,"answerStep":16},摘要行可见(高 41px)、tool-call/context行带hidden="until-found"建议(任选其一)
hasMore=true时在摘要行位置给出提示(例如「更早历史未加载,收起暂不可用 / 点击加载」),避免静默失效;loadOlder,让窗口自然补全(当前没有这条路径)。环境
@deepseek-ai/dsh-*0.1.5-rc.1 / cordis 4.0.2ui-chat.transcriptView: compact(折叠前置已满足)All reactions