@deepseek-ai/dsh-client-ui-chat 0.2.3-alpha.3 → 0.2.3-alpha.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (86) hide show
  1. package/README.i18n.yaml +6 -6
  2. package/README.md +4 -4
  3. package/README.zh.md +4 -4
  4. package/lib/client.js +6 -6
  5. package/lib/client.js.map +1 -1
  6. package/lib/types/client/apply.d.ts.map +1 -1
  7. package/lib/types/client/apply.js.map +1 -1
  8. package/lib/types/client/chat/AssistantMarkdown.d.ts.map +1 -1
  9. package/lib/types/client/chat/AssistantMarkdown.js.map +1 -1
  10. package/lib/types/client/chat/AssistantNodeView.d.ts +2 -2
  11. package/lib/types/client/chat/AssistantNodeView.d.ts.map +1 -1
  12. package/lib/types/client/chat/ChatNodeSeat.d.ts.map +1 -1
  13. package/lib/types/client/chat/ChatNodeSeat.js.map +1 -1
  14. package/lib/types/client/chat/ChatView.d.ts.map +1 -1
  15. package/lib/types/client/chat/ChatView.js.map +1 -1
  16. package/lib/types/client/chat/ContextBody.d.ts.map +1 -1
  17. package/lib/types/client/chat/ContextBody.js.map +1 -1
  18. package/lib/types/client/chat/ContextInjectionRow.d.ts.map +1 -1
  19. package/lib/types/client/chat/ContextInjectionRow.js.map +1 -1
  20. package/lib/types/client/chat/MessageItem.d.ts +3 -1
  21. package/lib/types/client/chat/MessageItem.d.ts.map +1 -1
  22. package/lib/types/client/chat/MessageItem.js.map +1 -1
  23. package/lib/types/client/chat/SystemPromptRow.d.ts.map +1 -1
  24. package/lib/types/client/chat/SystemPromptRow.js.map +1 -1
  25. package/lib/types/client/chat/TurnTailNodeView.d.ts.map +1 -1
  26. package/lib/types/client/chat/TurnTailNodeView.js.map +1 -1
  27. package/lib/types/client/chat/UserContent.js.map +1 -1
  28. package/lib/types/client/chat/register-node-renderers.d.ts +1 -5
  29. package/lib/types/client/chat/register-node-renderers.d.ts.map +1 -1
  30. package/lib/types/client/chat/register-node-renderers.js.map +1 -1
  31. package/lib/types/client/chat/text-interaction.d.ts.map +1 -1
  32. package/lib/types/client/chat/text-interaction.js.map +1 -1
  33. package/lib/types/client/chat/text-selection.d.ts +1 -0
  34. package/lib/types/client/chat/text-selection.d.ts.map +1 -1
  35. package/lib/types/client/chat/text-selection.js.map +1 -1
  36. package/lib/types/client/contract/slots.d.ts +18 -7
  37. package/lib/types/client/contract/slots.d.ts.map +1 -1
  38. package/lib/types/client/conversation-nodes/command.js.map +1 -1
  39. package/lib/types/client/conversation-nodes/fallback.js.map +1 -1
  40. package/lib/types/client/conversation-nodes/message.js.map +1 -1
  41. package/lib/types/client/conversation-nodes/tool.js.map +1 -1
  42. package/lib/types/client/index.d.ts +1 -1
  43. package/lib/types/client/index.d.ts.map +1 -1
  44. package/lib/types/client/presentation-policy.d.ts +2 -0
  45. package/lib/types/client/presentation-policy.d.ts.map +1 -1
  46. package/lib/types/client/presentation-policy.js.map +1 -1
  47. package/lib/types/client/settings/LinkOpeningRow.d.ts +0 -1
  48. package/lib/types/client/settings/LinkOpeningRow.d.ts.map +1 -1
  49. package/lib/types/client/settings/LinkOpeningRow.js.map +1 -1
  50. package/lib/types/client/settings/PerformanceUsageRow.d.ts.map +1 -1
  51. package/lib/types/client/settings/PerformanceUsageRow.js.map +1 -1
  52. package/lib/types/client/settings/PreferenceRow.js.map +1 -1
  53. package/lib/types/client/settings/TranscriptViewRow.d.ts.map +1 -1
  54. package/lib/types/client/settings/TranscriptViewRow.js.map +1 -1
  55. package/package.json +44 -44
  56. package/src/client/apply.ts +2 -1
  57. package/src/client/chat/AssistantMarkdown.tsx +3 -2
  58. package/src/client/chat/AssistantNodeView.tsx +2 -2
  59. package/src/client/chat/ChatGroupSeat.module.css +4 -2
  60. package/src/client/chat/ChatNodeSeat.tsx +4 -2
  61. package/src/client/chat/ChatView.module.css +37 -5
  62. package/src/client/chat/ChatView.tsx +13 -6
  63. package/src/client/chat/ContextBody.tsx +5 -2
  64. package/src/client/chat/ContextInjectionRow.tsx +3 -2
  65. package/src/client/chat/MessageItem.tsx +39 -28
  66. package/src/client/chat/SystemPromptRow.tsx +3 -2
  67. package/src/client/chat/TurnNavigator.module.css +9 -0
  68. package/src/client/chat/TurnTailNodeView.tsx +3 -2
  69. package/src/client/chat/UserContent.tsx +2 -2
  70. package/src/client/chat/register-node-renderers.ts +5 -8
  71. package/src/client/chat/text-interaction.ts +1 -2
  72. package/src/client/chat/text-selection.ts +20 -4
  73. package/src/client/contract/slots.ts +15 -8
  74. package/src/client/conversation-nodes/README.i18n.yaml +4 -4
  75. package/src/client/conversation-nodes/README.md +2 -1
  76. package/src/client/conversation-nodes/README.zh.md +2 -1
  77. package/src/client/conversation-nodes/command.ts +1 -1
  78. package/src/client/conversation-nodes/fallback.ts +1 -1
  79. package/src/client/conversation-nodes/message.ts +1 -1
  80. package/src/client/conversation-nodes/tool.ts +1 -1
  81. package/src/client/index.ts +2 -2
  82. package/src/client/presentation-policy.ts +6 -0
  83. package/src/client/settings/LinkOpeningRow.tsx +3 -1
  84. package/src/client/settings/PerformanceUsageRow.tsx +4 -1
  85. package/src/client/settings/PreferenceRow.tsx +4 -4
  86. package/src/client/settings/TranscriptViewRow.tsx +10 -3
package/README.i18n.yaml CHANGED
@@ -15,8 +15,8 @@
15
15
  en: 5ee429751fcbeb4f
16
16
  zh: 981a37018b6cae3a
17
17
  /deepseek-ai-dsh-client-ui-chat/reference-previews:
18
- en: 3c16a373c6fe2b06
19
- zh: d5285ae6ee3561dc
18
+ en: f5962452f4f3c633
19
+ zh: f022bca0411a375a
20
20
  /deepseek-ai-dsh-client-ui-chat/hidden-chat-rows:
21
21
  en: 9f31cb0c3cf9ab1e
22
22
  zh: d2379babf8db788e
@@ -24,8 +24,8 @@
24
24
  en: 46d7500962a8bb8b
25
25
  zh: 709f29cae742d604
26
26
  /deepseek-ai-dsh-client-ui-chat/inherited-history-divider:
27
- en: a191f90e9a64f6fe
28
- zh: 8e91b8660f9baa18
27
+ en: c46ffb5dce84c081
28
+ zh: 2e4b9022c28b8812
29
29
  /deepseek-ai-dsh-client-ui-chat/turn-token-usage:
30
30
  en: b36906686f3aefa7
31
31
  zh: 087741aa57c8988a
@@ -39,8 +39,8 @@
39
39
  en: 69dbaf34ddfaaee7
40
40
  zh: cfe4e13d84d71f9b
41
41
  /deepseek-ai-dsh-client-ui-chat/scroll-ownership:
42
- en: a78f34f9d3ec7c07
43
- zh: 093a0d8ea50f1322
42
+ en: 1ffd972d8f95942d
43
+ zh: 5a0764e8a3a4f3be
44
44
  /deepseek-ai-dsh-client-ui-chat/model-experience:
45
45
  en: c17b4dd43a61c569
46
46
  zh: f7414309810c3a08
package/README.md CHANGED
@@ -50,7 +50,7 @@ The session-scoped `conversation.chat.user.content` Factory renders only the use
50
50
 
51
51
  `UserStyleBubble` and the [source-specific wrappers](<src/client/chat/MessageItem.tsx#L164-L340>) retain the user row, keys, pending/echo markers, timestamps, copy controls, and other message actions. The content Factory reads neither source-specific models nor private Context, and is not a global user-content override entry point.
52
52
 
53
- The official user and steering renderer declares the session-scoped `conversation.chat.user.before` chain slot at its `user` registration and renders it directly above the bubble with `renderSlotChain`; the `steering` registration shares the renderer without owning the seat. Owner props carry the durable message `source` and row `kind`; each entry’s `select` matches its own sources, and the first non-null result reaches the elected component as `matched`. No match displays no content. Entries own their markup and copy; Chat does not interpret message sources.
53
+ The official user and steering renderer declares the session-scoped `conversation.chat.user.before` chain slot at its `user` registration and renders it directly above the bubble with `renderSlotChain`; the `steering` registration shares the renderer without owning the seat. Owner props carry the durable message `source` and row `kind`; each entry’s `select` matches its own sources, and the first non-null result reaches the elected component as `matched`. No match displays no content. Entries own their markup and copy; Chat does not interpret message sources. The same `user` registration declares the session-scoped `conversation.chat.user-actions` list slot and renders it in the message's action row, after copy, for a durable user message; a steering message or a synthetic projection without a `messageId` renders none. Owner props carry the message id, so an entry acts on the message by identity.
54
54
 
55
55
  Standalone Markdown images show contained previews and open the shared image lightbox; after settlement, an absolute local path loads as written and a relative one resolves against the Session’s current working directory, as a relative file link does. Image file links keep their sidebar activation and show a thumbnail after hover dwell or keyboard focus. Escape dismisses the thumbnail. Failed images retain a localized status and their description; no duplicate-image filtering is applied.
56
56
 
@@ -83,7 +83,7 @@ Chat adapts Markdown targets at `MarkdownDelegateProvider.getTriggerProps`. The
83
83
  <a id="inherited-history-divider"></a>
84
84
  ## Inherited history divider
85
85
 
86
- A forked Session, such as a fork subagent or a branched conversation, shows a divider labelled “Inherited history above” at its latest inherited `session/end-seed` marker, between the copied history and the Session's own messages. The caption starts with the branch glyph that the branch action uses. A cut inside a Turn keeps the divider outside that Turn's process folding. The divider appears once the history page that holds the marker is loaded, so a long inherited history may show it only after scrolling up. Sessions without inherited history show no divider.
86
+ A forked Session, such as a fork subagent or a branched conversation, shows a divider labelled “Inherited history above” at its latest inherited `session/end-seed` marker, between the copied history and the Session's own messages. The caption starts with the branch glyph that the branch action uses. A cut inside a Turn keeps the divider outside that Turn's process folding. The divider appears once the history page that holds the marker is loaded, so a long inherited history may show it only after scrolling up. Sessions without inherited history show no divider. While the Conversation [keeps inherited history folded](../ui-conversation/README.md#inherited-history-fold), the Chat starts at the divider, hides its **Load earlier** control, requests no older pages, and leaves the whole-log outline out of the turn rail.
87
87
 
88
88
  -----
89
89
 
@@ -166,7 +166,7 @@ Chat restores semantic anchors across history prepend and renderer remounts, wit
166
166
 
167
167
  The turn rail and back-to-bottom button sit outside the clipped transcript. The 34px back-to-bottom button centers a 16px chevron with a fixed 1px stroke. They use the shared conversation scrollport for sticky positioning, or the Chat frame for absolute positioning when Chat owns its scrollport. The rail sits at the scrollport's start edge, which leaves the end gutter to the [Session panel](../ui-session-panel/README.md), and its previews open toward the transcript. The rail hides when the transcript's available width, excluding its horizontal padding, is at most 900px; the browser viewport width is not the criterion.
168
168
 
169
- The `conversation.chat.aside` slot holds one Session-level occupant beside the transcript, such as the [Session panel](../ui-session-panel/README.md). Every Chat View occurrence, main or embedded, renders it in a zero-height layer at the top of the Chat frame, positioned like the turn rail, so it stays in place while the transcript scrolls and inherits `--dsh-composer-height` and `--dsh-conversation-viewport-height` from the shared scrollport. The layer stacks above the turn rail and the back-to-bottom button and passes pointer events through. The layer measures nothing: its stylesheet publishes the end gutter, the inline space between the transcript column and the frame's end edge, as the `--dsh-chat-aside-gutter` custom property. With the transcript centered that is `max(0px, (100% - var(--dsh-chat-content-width)) / 2)`. While the Conversation body keeps an [end reserve](../ui-conversation/README.md#end-reserve), the frame is narrower than the scrollport by `--dsh-chat-end-inset`; the layer reaches back across that inset to the scrollport's end edge, and the gutter counts it. The layer's margin follows the body's `--dsh-chat-end-reserve-transition`, so its end edge stays at the scrollport's while the inset animates. The percentage resolves against the layer in the inline sizes of an element whose containing block is the layer, so an occupant sizes and places itself in CSS, and the Chat View neither re-renders nor observes sizes for it.
169
+ The `conversation.chat.aside` slot holds one Session-level occupant beside the transcript, such as the [Session panel](../ui-session-panel/README.md). Every Chat View occurrence, main or embedded, renders it in a zero-height layer at the top of the Chat frame, positioned like the turn rail, so it stays in place while the transcript scrolls and inherits `--dsh-composer-height` and `--dsh-conversation-viewport-height` from the shared scrollport. The layer stacks above the turn rail and the back-to-bottom button and passes pointer events through. The layer measures nothing: its stylesheet publishes the end gutter, the inline space between the transcript column and the frame's end edge, as the `--dsh-chat-aside-gutter` custom property. With the transcript centered that is `max(0px, (100% - var(--dsh-chat-content-width)) / 2)`. While the Conversation body keeps an [end reserve](../ui-conversation/README.md#end-reserve), the frame is narrower than the scrollport by `--dsh-chat-end-inset`; the layer reaches back across that inset to the scrollport's end edge, and the gutter counts it. While the Session panel's entrance or exit plays, the layer's own stylesheet declares a margin transition over the same time and curve as the scrollport's padding, so its end edge stays at the scrollport's while the inset animates. The layer is also the inline-size query container of the dock probe inside it: its width is the frame's content width plus the inset the negative end margin reaches across, which is the scrollport's `clientWidth` before DOM rounds it to a whole pixel, at rest and throughout that transition (its padding box less the vertical scrollbar). The Session panel's probe reads it as `100cqw`. The percentage resolves against the layer in the inline sizes of an element whose containing block is the layer, so an occupant sizes and places itself in CSS, and the Chat View neither re-renders nor observes sizes for it.
170
170
 
171
171
  The transcript root uses `overflow-x: visible; overflow-y: clip`: vertical overflow is clipped without creating a scroll container. Sticky Markdown code banners therefore retain the actual conversation scrollport as their reference when no nearer scrolling ancestor exists. Capped process groups and terminal sections keep their own scrollports.
172
172
 
@@ -210,7 +210,7 @@ Active-Turn highlighting is approximate: `readVisibleTurn` binary-searches the f
210
210
 
211
211
  -----
212
212
 
213
- The Chat view detects selection and context-menu gestures on business nodes marked with `data-text-interaction-source`. Both selection endpoints must resolve to the same source container. Displayed user content and settled Assistant text or reasoning participate; tools, injected context, streaming or interrupted Assistant text, and Markdown controls do not.
213
+ The Chat view detects selection and context-menu gestures on business nodes marked with `data-text-interaction-source`. Both selection endpoints must resolve to the same source container. A selection that ends after its container, with only whitespace text in between, as triple-clicking the last paragraph produces, ends at the container instead. Displayed user content and settled Assistant text or reasoning participate; tools, injected context, streaming or interrupted Assistant text, and Markdown controls do not.
214
214
 
215
215
  `ctx.uiConversation.interactions` dispatches eligible gestures to plugin registrations and supplies their component to the Chat view. The action surface is absolutely positioned inside the existing Chat column, above the composer seat and its dock. Its wrapper preserves the component's outer stroke and shadow; components own internal scrolling. Scrolling the selection outside that visible region temporarily hides the surface; returning restores it. Chat owns viewport visibility, placement, outside pointer presses, Escape, new selections, source invalidation, and disposal; explicit dismissal preserves browser selection and layout changes do not reopen the surface. [Message quotes](../../session/message-quotes/README.md) owns quotation eligibility and insertion.
216
216
 
package/README.zh.md CHANGED
@@ -50,7 +50,7 @@ Session 作用域的 `conversation.chat.user.content` Factory 只渲染用户内
50
50
 
51
51
  `UserStyleBubble` 和[各来源包装层](<src/client/chat/MessageItem.tsx#L164-L340>) 保留用户行、key、pending/echo 标记、时间、复制控件及其他消息操作。内容 Factory 不读取来源专属模型或私有 Context,也不是全局用户内容替换入口。
52
52
 
53
- 官方 user 与 steering 共用的渲染器在 `user` 注册项上声明 session-scoped `conversation.chat.user.before` chain slot,并在气泡上方直接通过 `renderSlotChain` 渲染;`steering` 注册项复用该渲染器但不拥有该槽位。owner props 携带 Session 记录的持久化消息 `source` 与行 `kind`;各条目的 `select` 匹配自己负责的来源,首个非 null 结果作为 `matched` 交给获选组件。无匹配时不显示内容。条目自行拥有标记和文案;Chat 不解析消息来源。
53
+ 官方 user 与 steering 共用的渲染器在 `user` 注册项上声明 session-scoped `conversation.chat.user.before` chain slot,并在气泡上方直接通过 `renderSlotChain` 渲染;`steering` 注册项复用该渲染器但不拥有该槽位。owner props 携带 Session 记录的持久化消息 `source` 与行 `kind`;各条目的 `select` 匹配自己负责的来源,首个非 null 结果作为 `matched` 交给获选组件。无匹配时不显示内容。条目自行拥有标记和文案;Chat 不解析消息来源。同一个 `user` 注册项还声明 session-scoped 的 `conversation.chat.user-actions` list slot,并在消息操作行里、复制之后渲染它,对象是持久化的用户消息;steering 消息或没有 `messageId` 的合成投影不渲染。owner props 携带消息 id,因此条目按身份对该消息进行操作。
54
54
 
55
55
  独立的 Markdown 图片以内嵌预览显示,点击打开共享图片浮层;消息落定后,绝对本地路径按原样加载,相对路径与相对文件链接一样按 Session 的当前工作目录解析。图片文件链接保持点击打开侧栏,鼠标停留或键盘聚焦时显示缩略图,Esc 关闭缩略图。图片加载失败时保留本地化状态与图片说明;不执行重复图片过滤。
56
56
 
@@ -83,7 +83,7 @@ Chat 在 `MarkdownDelegateProvider.getTriggerProps` 接入处适配 Markdown 目
83
83
  <a id="inherited-history-divider"></a>
84
84
  ## 继承历史分隔线
85
85
 
86
- 分叉产生的会话(例如 fork 子智能体或分支出的对话)在最后一个继承的 `session/end-seed` 标记处显示一条标注“以上为继承的历史消息”的分隔线,把复制来的历史与该会话自己的消息分开。标注以“在新对话中分支”操作所用的分支图标开头。切点位于某个 Turn 内部时,分隔线留在该 Turn 的过程折叠之外。分隔线在包含标记的历史页加载后才出现,因此继承历史较长时,可能要向上滚动才能看到。没有继承历史的会话不显示分隔线。
86
+ 分叉产生的会话(例如 fork 子智能体或分支出的对话)在最后一个继承的 `session/end-seed` 标记处显示一条标注“以上为继承的历史消息”的分隔线,把复制来的历史与该会话自己的消息分开。标注以“在新对话中分支”操作所用的分支图标开头。切点位于某个 Turn 内部时,分隔线留在该 Turn 的过程折叠之外。分隔线在包含标记的历史页加载后才出现,因此继承历史较长时,可能要向上滚动才能看到。没有继承历史的会话不显示分隔线。当 Conversation [折叠继承历史](../ui-conversation/README.zh.md#inherited-history-fold)时,Chat 从分隔线开始显示,隐藏**加载更早**控件,不请求更早的页,轮次导航也不合并整段日志的大纲。
87
87
 
88
88
  -----
89
89
 
@@ -166,7 +166,7 @@ Chat 会在历史前插与 renderer 重新挂载时恢复语义锚点,并且
166
166
 
167
167
  轮次轨道与回到底部按钮位于正文裁剪层外。34px 的回到底部按钮居中容纳 16px 箭头,描边固定为 1px。它们相对共享会话滚动容器做 sticky 定位;Chat 自己持有滚动容器时,则相对 Chat 外框做 absolute 定位。轮次轨道贴在滚动容器的起始边,把末端留白让给[会话面板](../ui-session-panel/README.zh.md),预览朝正文方向弹出。正文扣除水平内边距后的可用宽度不超过 900px 时,隐藏轮次轨道;判断依据不是浏览器视口宽度。
168
168
 
169
- `conversation.chat.aside` slot 放一个位于正文旁边、面向整个会话的组件,例如[会话面板](../ui-session-panel/README.zh.md)。每个 Chat 视图实例(主正文区或嵌入的)都会渲染它:它位于 Chat 外框顶部的零高度图层中,定位方式与轮次轨道相同,因此不随正文滚动,并从共享滚动容器继承 `--dsh-composer-height` 与 `--dsh-conversation-viewport-height`。该图层叠在轮次轨道与回到底部按钮之上,自身不拦截指针事件。图层不做任何测量:它的样式表把末端留白(正文列到外框末端边缘之间的行向空间)发布为自定义属性 `--dsh-chat-aside-gutter`。正文居中时,它的值为 `max(0px, (100% - var(--dsh-chat-content-width)) / 2)`。Conversation 主体保留[末端预留](../ui-conversation/README.zh.md#end-reserve)时,外框比滚动容器窄 `--dsh-chat-end-inset`;图层越过这段内边距延伸到滚动容器的末端边缘,留白也把它计算在内。图层的外边距跟随主体的 `--dsh-chat-end-reserve-transition`,因此内边距过渡期间图层的末端边缘始终贴着滚动容器的末端边缘。其中的百分比在以该图层为包含块的元素的行向尺寸里按图层宽度解析,因此占位组件用 CSS 决定自身的尺寸与位置,Chat 视图既不为它重新渲染,也不为它观察尺寸。
169
+ `conversation.chat.aside` slot 放一个位于正文旁边、面向整个会话的组件,例如[会话面板](../ui-session-panel/README.zh.md)。每个 Chat 视图实例(主正文区或嵌入的)都会渲染它:它位于 Chat 外框顶部的零高度图层中,定位方式与轮次轨道相同,因此不随正文滚动,并从共享滚动容器继承 `--dsh-composer-height` 与 `--dsh-conversation-viewport-height`。该图层叠在轮次轨道与回到底部按钮之上,自身不拦截指针事件。图层不做任何测量:它的样式表把末端留白(正文列到外框末端边缘之间的行向空间)发布为自定义属性 `--dsh-chat-aside-gutter`。正文居中时,它的值为 `max(0px, (100% - var(--dsh-chat-content-width)) / 2)`。Conversation 主体保留[末端预留](../ui-conversation/README.zh.md#end-reserve)时,外框比滚动容器窄 `--dsh-chat-end-inset`;图层越过这段内边距延伸到滚动容器的末端边缘,留白也把它计算在内。会话面板播放进入或退出期间,图层自己的样式表以与滚动容器内边距相同的时长和曲线声明外边距过渡,因此内边距变化期间图层的末端边缘始终贴着滚动容器的末端边缘。该图层也是其中停靠探针的 inline-size 查询容器:它的宽度是外框内容宽加上负末端外边距所伸过的内缩量,无论在静止时还是整个过渡期间,这都是滚动容器经 DOM 取整为整像素之前的 `clientWidth`(padding box 减去竖向滚动条),会话面板的探针以 `100cqw` 读取它。其中的百分比在以该图层为包含块的元素的行向尺寸里按图层宽度解析,因此占位组件用 CSS 决定自身的尺寸与位置,Chat 视图既不为它重新渲染,也不为它观察尺寸。
170
170
 
171
171
  正文根节点使用 `overflow-x: visible; overflow-y: clip`:裁剪纵向溢出,但不创建滚动容器。因此,在没有更近的滚动祖先时,Markdown 代码块的 sticky 头栏仍以实际会话滚动容器为参照。限高过程组和终端区域保留各自的滚动容器。
172
172
 
@@ -210,7 +210,7 @@ Chat 会在历史前插与 renderer 重新挂载时恢复语义锚点,并且
210
210
 
211
211
  -----
212
212
 
213
- Chat view 在标记了 `data-text-interaction-source` 的业务节点上检测选区和右键手势。选区两端必须定位到同一个来源容器。已展示的用户内容和已完成的 Assistant 文本或 reasoning 参与交互;Tool、注入上下文、流式或中断的 Assistant 文本以及 Markdown 控件不参与。
213
+ Chat view 在标记了 `data-text-interaction-source` 的业务节点上检测选区和右键手势。选区两端必须定位到同一个来源容器。终点落在容器之后、且两者之间只有空白文本的选区(例如三击最后一段)按终点在容器末尾处理。已展示的用户内容和已完成的 Assistant 文本或 reasoning 参与交互;Tool、注入上下文、流式或中断的 Assistant 文本以及 Markdown 控件不参与。
214
214
 
215
215
  `ctx.uiConversation.interactions` 将有效手势分发给插件注册项,并把对应组件交给 Chat view。操作展示位置在已有 Chat 列内绝对定位,限制在 composer seat 及其 dock 上方。外层容器保留组件的外描边与阴影,内部滚动由组件负责。选区滚出该可见范围时暂时隐藏操作,滚回后恢复。Chat 负责视口可见性、定位、外部指针按下、Escape、新选区、来源失效与卸载清理;主动关闭保留浏览器选区,布局变化不会重新打开操作。[Message quotes](../../session/message-quotes/README.zh.md) 负责引用的接管条件和插入。
216
216