Replies: 2 comments
|
开发了一个插件 https://github.com/zhengmz/dsh-auto-fold 补齐自动折叠能力,供参考 实现如果设置了 Compact 后,在切换对话时,会自动折叠回合。 |
|
我把「思考过程无法折叠」定位到了确切条件,也确认了 @zhengmz 的插件为什么有效以及它的代价。 根因:折叠开关是会话级的,不是回合级的
const processWindowReady = processSpec !== undefined
&& processPresentation !== undefined
&& compactTranscript
&& processSpec.answerAnchorSeq !== null
&& processPresentation.turn === processSpec.turn
&& processPresentation.turnClosed
&& !historyIncomplete // ← 这里
if (!turnProcess.foldable) return null所以只要 这个行为是有意且有测试的
动机可以理解: 但守卫的粒度是错的它用的是会话级 为什么 @zhengmz 的插件有效,以及它的代价
代价是整段历史驻留到页面内存 —— 而客户端没有任何淘汰机制。我在整个 上游最小修复方向把会话级 我没有做的我没有在浏览器里复现,也没有改客户端源码 —— 这是 |
Uh oh!
There was an error while loading. Please reload this page.
dsh聊天框内的思考过程无法被正常折叠和隐藏。
这种问题常常在当上下文对话过长,聊天记录没有被完全加载时出现。
All reactions