@deepseek-ai/dsh-client-ui-chat 0.2.2-rc.5 → 0.2.3-alpha.2

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 (91) hide show
  1. package/README.i18n.yaml +13 -10
  2. package/README.md +19 -5
  3. package/README.zh.md +19 -5
  4. package/lib/client.js +7 -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.js.map +1 -1
  9. package/lib/types/client/chat/ChatAside.d.ts +10 -0
  10. package/lib/types/client/chat/ChatAside.d.ts.map +1 -0
  11. package/lib/types/client/chat/ChatAside.js.map +1 -0
  12. package/lib/types/client/chat/ChatView.d.ts.map +1 -1
  13. package/lib/types/client/chat/ChatView.js.map +1 -1
  14. package/lib/types/client/chat/CommandNodeView.d.ts +3 -2
  15. package/lib/types/client/chat/CommandNodeView.d.ts.map +1 -1
  16. package/lib/types/client/chat/CommandNodeView.js.map +1 -1
  17. package/lib/types/client/chat/CommandStatusRow.d.ts +16 -0
  18. package/lib/types/client/chat/CommandStatusRow.d.ts.map +1 -0
  19. package/lib/types/client/chat/CommandStatusRow.js.map +1 -0
  20. package/lib/types/client/chat/CompactionCommandCard.d.ts +3 -1
  21. package/lib/types/client/chat/CompactionCommandCard.d.ts.map +1 -1
  22. package/lib/types/client/chat/CompactionCommandCard.js.map +1 -1
  23. package/lib/types/client/chat/CompactionItem.d.ts +12 -3
  24. package/lib/types/client/chat/CompactionItem.d.ts.map +1 -1
  25. package/lib/types/client/chat/CompactionItem.js.map +1 -1
  26. package/lib/types/client/chat/GenericCommandCard.d.ts.map +1 -1
  27. package/lib/types/client/chat/GenericCommandCard.js.map +1 -1
  28. package/lib/types/client/chat/MessageItem.d.ts +5 -2
  29. package/lib/types/client/chat/MessageItem.d.ts.map +1 -1
  30. package/lib/types/client/chat/MessageItem.js.map +1 -1
  31. package/lib/types/client/chat/compaction-preview.d.ts +10 -0
  32. package/lib/types/client/chat/compaction-preview.d.ts.map +1 -0
  33. package/lib/types/client/chat/compaction-preview.js.map +1 -0
  34. package/lib/types/client/chat/register-node-renderers.d.ts.map +1 -1
  35. package/lib/types/client/chat/register-node-renderers.js.map +1 -1
  36. package/lib/types/client/contract/slots.d.ts +19 -2
  37. package/lib/types/client/contract/slots.d.ts.map +1 -1
  38. package/lib/types/client/conversation-nodes/chat-snapshot-builder.d.ts.map +1 -1
  39. package/lib/types/client/conversation-nodes/chat-snapshot-builder.js.map +1 -1
  40. package/lib/types/client/conversation-nodes/command.d.ts.map +1 -1
  41. package/lib/types/client/conversation-nodes/command.js.map +1 -1
  42. package/lib/types/client/conversation-nodes/compaction.d.ts +14 -2
  43. package/lib/types/client/conversation-nodes/compaction.d.ts.map +1 -1
  44. package/lib/types/client/conversation-nodes/compaction.js.map +1 -1
  45. package/lib/types/client/conversation-nodes/inherited-history.d.ts +20 -0
  46. package/lib/types/client/conversation-nodes/inherited-history.d.ts.map +1 -0
  47. package/lib/types/client/conversation-nodes/inherited-history.js.map +1 -0
  48. package/lib/types/client/conversation-nodes/process-activity.js.map +1 -1
  49. package/lib/types/client/conversation-nodes/register.d.ts.map +1 -1
  50. package/lib/types/client/conversation-nodes/register.js.map +1 -1
  51. package/lib/types/client/file-path.d.ts.map +1 -1
  52. package/lib/types/client/file-path.js.map +1 -1
  53. package/lib/types/client/index.d.ts +1 -0
  54. package/lib/types/client/index.d.ts.map +1 -1
  55. package/lib/types/client/index.js.map +1 -1
  56. package/lib/types/client/locale.d.ts +40 -16
  57. package/lib/types/client/locale.d.ts.map +1 -1
  58. package/lib/types/client/locale.js.map +1 -1
  59. package/package.json +44 -43
  60. package/src/client/apply.ts +39 -22
  61. package/src/client/chat/AssistantMarkdown.module.css +7 -4
  62. package/src/client/chat/AssistantMarkdown.tsx +1 -1
  63. package/src/client/chat/ChatAside.tsx +15 -0
  64. package/src/client/chat/ChatGroupSeat.module.css +3 -3
  65. package/src/client/chat/ChatView.module.css +34 -0
  66. package/src/client/chat/ChatView.tsx +9 -4
  67. package/src/client/chat/CommandNodeView.tsx +6 -3
  68. package/src/client/chat/CommandStatusRow.tsx +60 -0
  69. package/src/client/chat/CompactionCommandCard.tsx +4 -2
  70. package/src/client/chat/CompactionItem.tsx +67 -37
  71. package/src/client/chat/GenericCommandCard.tsx +4 -51
  72. package/src/client/chat/MessageIconActions.module.css +4 -4
  73. package/src/client/chat/MessageItem.module.css +53 -55
  74. package/src/client/chat/MessageItem.tsx +31 -5
  75. package/src/client/chat/TurnNavigator.module.css +8 -7
  76. package/src/client/chat/compaction-preview.ts +76 -0
  77. package/src/client/chat/register-node-renderers.ts +7 -3
  78. package/src/client/contract/slots.ts +16 -2
  79. package/src/client/conversation-nodes/README.i18n.yaml +4 -4
  80. package/src/client/conversation-nodes/README.md +2 -2
  81. package/src/client/conversation-nodes/README.zh.md +2 -2
  82. package/src/client/conversation-nodes/chat-snapshot-builder.ts +3 -1
  83. package/src/client/conversation-nodes/command.ts +0 -8
  84. package/src/client/conversation-nodes/compaction.ts +29 -5
  85. package/src/client/conversation-nodes/inherited-history.ts +41 -0
  86. package/src/client/conversation-nodes/process-activity.ts +1 -1
  87. package/src/client/conversation-nodes/register.ts +2 -0
  88. package/src/client/file-path.ts +2 -6
  89. package/src/client/index.ts +1 -0
  90. package/src/client/locale.ts +40 -16
  91. /package/src/client/chat/{GenericCommandCard.module.css → CommandStatusRow.module.css} +0 -0
package/README.i18n.yaml CHANGED
@@ -12,17 +12,20 @@
12
12
  en: 4f2d50107db6c4f8
13
13
  zh: ea7ccfcce8f1849e
14
14
  /deepseek-ai-dsh-client-ui-chat/table-of-contents:
15
- en: 41cd21266011d571
16
- zh: 3172d1a2acbb27b7
15
+ en: 5ee429751fcbeb4f
16
+ zh: 981a37018b6cae3a
17
17
  /deepseek-ai-dsh-client-ui-chat/reference-previews:
18
- en: c07a50787d77a7cd
19
- zh: 70ee4e32d664e88e
18
+ en: 0501fb835108d448
19
+ zh: e402464e08fadf3c
20
20
  /deepseek-ai-dsh-client-ui-chat/hidden-chat-rows:
21
21
  en: 8ca277dc7fed699f
22
22
  zh: 167478dba50f3904
23
23
  /deepseek-ai-dsh-client-ui-chat/command-and-failure-rows:
24
- en: c5b23d0ed29a0425
25
- zh: 689bab2c8253294a
24
+ en: 46d7500962a8bb8b
25
+ zh: 709f29cae742d604
26
+ /deepseek-ai-dsh-client-ui-chat/inherited-history-divider:
27
+ en: a191f90e9a64f6fe
28
+ zh: 8e91b8660f9baa18
26
29
  /deepseek-ai-dsh-client-ui-chat/turn-token-usage:
27
30
  en: d363057b5c0b2571
28
31
  zh: 0f6fe864d9673576
@@ -33,11 +36,11 @@
33
36
  en: 7cc6692b879aa500
34
37
  zh: e924733c88b526c9
35
38
  /deepseek-ai-dsh-client-ui-chat/grouped-rendering:
36
- en: f6d8bbae13a1a8f8
37
- zh: 96c8f400c215e33d
39
+ en: 535345a2de07109e
40
+ zh: 39580c340f5ae558
38
41
  /deepseek-ai-dsh-client-ui-chat/scroll-ownership:
39
- en: 1b12aa6c505dde3b
40
- zh: 88e1654dd63816d7
42
+ en: 8788af5842549072
43
+ zh: 85febf8508a28c4e
41
44
  /deepseek-ai-dsh-client-ui-chat/model-experience:
42
45
  en: c17b4dd43a61c569
43
46
  zh: f7414309810c3a08
package/README.md CHANGED
@@ -19,6 +19,7 @@ File-mention providers receive the viewed Session ID with the closing-turn owner
19
19
  - [Reference previews](#reference-previews)
20
20
  - [Hidden Chat rows](#system-prompt-row)
21
21
  - [Command and failure rows](#command-and-failure-rows)
22
+ - [Inherited history divider](#inherited-history-divider)
22
23
  - [Turn token usage](#turn-token-usage)
23
24
  - [Completed-turn footer](#completed-turn-footer)
24
25
  - [Turn Process Folding](#turn-process-folding)
@@ -51,7 +52,7 @@ The session-scoped `conversation.chat.user.content` Factory renders only the use
51
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
54
 
54
- Standalone Markdown images show contained previews and open the shared image lightbox; local paths resolve against the viewed workspace after settlement. 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.
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.
55
56
 
56
57
  Settings → General → Open chat links in selects the destination for ordinary clicks on Chat HTTP(S) links: In-App Sidebar (default) opens a new right-Sidebar Browser tab, while Default Browser opens an external tab. The setting follows Keyboard shortcuts and is shown only while the Sidebar Browser is available. If the Sidebar Browser is not registered, both choices use the external browser; modified clicks retain native behavior. The `ui-chat.linkOpening` preference persists on the Host for authenticated browsers and stays process-local when settings cannot persist writes. Sent file references and skills confirmed by the message’s logged invocation also open in the right Sidebar. File paths use the viewed Session; skill names resolve through its current input-trigger source. Both use the prose file-link dotted underline on hover or focus. Sessions, directories, and command labels remain non-navigating references.
57
58
 
@@ -69,9 +70,18 @@ Text and reasoning contribute to Assistant visibility only when they contain a n
69
70
 
70
71
  Subagent result notices use the Users icon and show only the localized execution outcome in their heading, without a task description or child ID. Completed means that execution ended normally, not that its output passed validation. Historical notices without a readable outcome retain the generic title; unfamiliar outcomes display “Subagent run ended unexpectedly”. Expanded notices preserve their original model-facing body.
71
72
 
72
- Generic command rows retain the ordinary command glyph in every lifecycle state; failure remains explicit through the row state and summary. Every terminal Turn failure renders its inline red-dot row; a quota failure's row states the neutral `message.failure.quota` copy instead of the provider message. The transient notice for a newly appended `QUOTA` or `ACCOUNT_QUOTA` comes from this package's frame-wide entry in `shell.overlay`, which outlives the Chat panel: it offers the one live notice to the `shell.quota-notice` chain and falls back to its own warning Toast, while an entry that claims the code replaces that fallback. Only Sessions this Client has bound and materialized publish; quota failures in Sessions it never opened do not. A newer notice replaces the current one unless a claiming entry retains it with `keepOpen()`: that call returns a release the caller owns and must run on unmount, any live hold keeps the claiming entry mounted and drops later notices, and releasing resumes later notices without replaying the dropped ones. The fallback Toast has no deferral of its own: while the Desktop account's opaque native Platform page covers the document, it still runs underneath and its display timer may elapse unseen, dismissing the notice itself, so only the persistent failure row remains. A release drops only its own hold, so one that runs after a dismissal or a newer hold leaves that newer hold intact. Dismissal and sign-out clear every hold, and dropped notices are not queued while their persistent failure rows still render. History replacement and pagination never publish a notice. Intermediate retries do not create a terminal row; output-token limits use the amber warning dot. A Turn that restart recovery closed as `interrupted` renders a localized stopped row stating that the DSH process exited mid-Turn, without a code chip, and its process summary reads Stopped.
73
+ Automatic compaction shows a progress row until a checkpoint lands or the operation ends. Completed automatic and manual rows show the replaced item and token counts. Chat opens the recorded `compaction/summary` text in a temporary sidebar tab. Rows disable the opener while the document viewer or summary sequence is unavailable; the row displays read errors.
73
74
 
74
- Chat adapts Markdown targets at `MarkdownDelegateProvider.getTriggerProps`. The assistant-node Slot obtains `useContextMenu` directly and passes a file-path adapter to the optional mention service; intermediate flow and node owners carry no menu callbacks. Paths resolve against the originating Session’s current working directory when the gesture begins. Menus retain that captured path and line even if focus changes. Undeclared plugin links keep native behavior.
75
+ Generic command rows retain the ordinary command glyph in every lifecycle state; failure remains explicit through the row state and summary. Every terminal Turn failure renders its inline red-dot row; a quota failure's row states the neutral `message.failure.quota` copy instead of the provider message. The transient notice for a newly appended `QUOTA` or `ACCOUNT_QUOTA` comes from this package's frame-wide entry in `shell.overlay`, which outlives the Chat panel: it offers the one live notice to the `shell.quota-notice` chain and falls back to its own warning Toast, while an entry that claims the code replaces that fallback. Only Sessions whose `conversation` retain facet a rendering reference currently holds publish; quota failures in Sessions this Client never opened, or that occur while a Session is kept only as a recent view, do not, and resuming the facet does not replay them. A newer notice replaces the current one unless a claiming entry retains it with `keepOpen()`: that call returns a release the caller owns and must run on unmount, any live hold keeps the claiming entry mounted and drops later notices, and releasing resumes later notices without replaying the dropped ones. The fallback Toast has no deferral of its own: while the Desktop account's opaque native Platform page covers the document, it still runs underneath and its display timer may elapse unseen, dismissing the notice itself, so only the persistent failure row remains. A release drops only its own hold, so one that runs after a dismissal or a newer hold leaves that newer hold intact. Dismissal and sign-out clear every hold, and dropped notices are not queued while their persistent failure rows still render. History replacement and pagination never publish a notice. Intermediate retries do not create a terminal row; output-token limits use the amber warning dot. A Turn that restart recovery closed as `interrupted` renders a localized stopped row stating that the DSH process exited mid-Turn, without a code chip, and its process summary reads Stopped.
76
+
77
+ Chat adapts Markdown targets at `MarkdownDelegateProvider.getTriggerProps`. The assistant-node Slot obtains `useContextMenu` directly and passes a file-path adapter to the optional mention service; intermediate flow and node owners carry no menu callbacks. Paths resolve against the originating Session’s current working directory when the gesture begins: an absolute target names its file wherever the Session works, and a relative target follows later directory changes. Opening a file addresses it by the resolved absolute path, so its Sidebar tab keeps that file after the Session moves. Menus retain that captured path and line even if focus changes. Undeclared plugin links keep native behavior.
78
+
79
+ -----
80
+
81
+ <a id="inherited-history-divider"></a>
82
+ ## Inherited history divider
83
+
84
+ 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.
75
85
 
76
86
  -----
77
87
 
@@ -129,6 +139,8 @@ The process group uses a stable `div` layout box, a scroll body, and an uncapped
129
139
 
130
140
  Running group titles, reasoning previews, tool and command rows, the active retry line, and the bottom running status use the shared [TextShimmer](../ui-primitives/README.md#component-catalog). Each row’s text shares one left-to-right highlight, including collapsed group titles; icons and hover chevrons retain their base appearance. Ordinary flow rows sit 4px apart, including adjacent reasoning rows of one Assistant message. An expanded group title has 8px before its content, Assistant responses have 12px from adjacent process rows, and completed-Turn duration/status controls have 16px from their input and from a directly following visible row. A reply that follows the control after folded rows keeps the 12px reply gap, so folding never changes its spacing. Hidden and empty rows, including retained empty slot anchors, add no gap. The running “Deep diving” text retains its blue base while its theme-specific highlight sweeps across it.
131
141
 
142
+ Closing assistant messages use 16px SVG boxes for copy and branch actions at the default content font size, with fixed 1px strokes and 28px click targets. SVG boxes do not shrink in the flex row; their size and targets follow the content font-size delta.
143
+
132
144
  The running status shows a whale whose APNG mask inherits the text color. CSS selects the static SVG when reduced motion or forced colors are active, or alpha masks are unsupported. The APNG is a [package asset](../AGENTS.md#dependency-declaration) referenced by the plugin stylesheet; React does not pass image data through DOM styles.
133
145
 
134
146
  Scroll-edge fades initialize when `ResizeObserver` reports the open group's layout; opening the group performs no immediate scroll-dimension read in a layout effect.
@@ -150,9 +162,11 @@ Chat waits for initial history before automatic content, scroll, or size updates
150
162
 
151
163
  Chat restores semantic anchors across history prepend and renderer remounts, with browser scroll anchoring disabled on its scrollport only while following the tail. Pinned scroll deliveries without reader movement, and reader input that reaches the floor within subpixel rounding, update follow ownership immediately, before subsequent layout changes can invalidate their floor. Other reader movement remains pending until the sampling interval or `scrollend`, even inside the follow threshold, so layout growth cannot erase small scroll gestures. Under completion-time folding, submitting transcript input or steering immediately restores tail following and clears an older pending reader sample. Under next-message folding, transcript input that no fold batch carries lands on one native animation; steering lands at once under either timing, because the running Turn keeps streaming above its echo. While the reader is pinned to the floor, `ResizeObserver` follows the new floor and selects the latest loaded Turn without reading row geometry. Once the reader moves away, flow-height changes preserve the top position and the reading-line geometry selects the active Turn. Turn-rail previews paint above sticky Markdown code-block banners, while the rail frame remains inside the transcript band above the composer.
152
164
 
153
- The turn rail and back-to-bottom button sit outside the clipped transcript. They use the shared conversation scrollport for sticky positioning, or the Chat frame for absolute positioning when Chat owns its scrollport. 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.
165
+ 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.
166
+
167
+ 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.
154
168
 
155
- The transcript root uses `overflow-x: visible; overflow-y: clip`: vertical overflow is clipped without creating a scroll container. Sticky Markdown code banners and expanded compaction headers 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.
169
+ 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.
156
170
 
157
171
  Outer transcript following and each open capped group's following are independent. Native animation progress retains follow intent; only that scrollport's own `scrollend` settles its animation. Browsers without `scrollend` may retain the native follow target until a later bottom-aligned update or reader gesture. A reader gesture interrupts the animation, and actual movement determines whether following remains enabled. Scroll chaining can move the outer transcript, which then applies its own distance threshold. The back-to-bottom button restores only outer following.
158
172
 
package/README.zh.md CHANGED
@@ -19,6 +19,7 @@ kind: "package-reference"
19
19
  - [引用预览](#reference-previews)
20
20
  - [Chat 隐藏的行](#system-prompt-row)
21
21
  - [指令与失败行](#command-and-failure-rows)
22
+ - [继承历史分隔线](#inherited-history-divider)
22
23
  - [轮次 token 用量](#turn-token-usage)
23
24
  - [已完成轮次的页脚](#completed-turn-footer)
24
25
  - [轮次过程折叠](#turn-process-folding)
@@ -51,7 +52,7 @@ Session 作用域的 `conversation.chat.user.content` Factory 只渲染用户内
51
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
54
 
54
- 独立的 Markdown 图片以内嵌预览显示,点击打开共享图片浮层;本地路径在消息落定后基于当前查看的工作区解析。图片文件链接保持点击打开侧栏,鼠标停留或键盘聚焦时显示缩略图,Esc 关闭缩略图。图片加载失败时保留本地化状态与图片说明;不执行重复图片过滤。
55
+ 独立的 Markdown 图片以内嵌预览显示,点击打开共享图片浮层;消息落定后,绝对本地路径按原样加载,相对路径与相对文件链接一样按 Session 的当前工作目录解析。图片文件链接保持点击打开侧栏,鼠标停留或键盘聚焦时显示缩略图,Esc 关闭缩略图。图片加载失败时保留本地化状态与图片说明;不执行重复图片过滤。
55
56
 
56
57
  设置 → 通用设置 → 网页链接默认打开方式控制普通点击 Chat HTTP(S) 链接时的目标:「应用内侧边栏」(默认)打开新的右侧 Sidebar Browser tab,「默认浏览器」打开外部标签页。该设置项位于快捷键之后,仅在 Sidebar Browser 可用时显示。若 Sidebar Browser 未注册,两种选择均使用外部浏览器;带修饰键的点击保留原生行为。已认证浏览器的 `ui-chat.linkOpening` 偏好在 Host 上持久化,设置无法持久化写入时仅在当前进程内生效。已发送的文件引用及消息日志确认调用的 skill 也可在右侧栏打开预览。文件路径使用当前查看的 Session;skill 名称由该 Session 当前的输入触发源解析。两者悬停或聚焦时均使用正文文件链接的虚线下划线。会话、目录和命令标签仍只作为引用展示。
57
58
 
@@ -69,9 +70,18 @@ Assistant 尝试结束且没有可见消息时,Chat 隐藏已发布的 Node,
69
70
 
70
71
  子智能体结果通知使用 Users 图标,标题仅显示本地化的执行状态,不附加任务描述或子智能体 ID。完成表示执行正常结束,不表示输出已通过验证。历史通知没有可读取的结束状态时保留通用标题;未知状态显示“子智能体异常结束”。展开后的通知保留原始模型可见正文。
71
72
 
72
- 通用指令行在所有生命周期状态中都保留普通指令图标;失败仍通过行状态与摘要表达。每个终止轮次都渲染自己的红点行;欠费失败的行使用中立的 `message.failure.quota` 文案,而不是提供方消息。新追加的 `QUOTA` 或 `ACCOUNT_QUOTA` 产生的瞬时提示来自本包注册在 `shell.overlay` 的全局条目,它不随 Chat 面板消失:该条目把唯一一条实时提示交给 `shell.quota-notice` 链,并在无人接管时回退到自己的警告 Toast,接管该错误码的条目会替换该回退。只有本 Client 已绑定并已物化的 Session 会发布提示;它从未打开的 Session 中的欠费不会发布。更新的提示会替换当前提示,除非认领条目用 `keepOpen()` 保持住当前提示:该调用返回一个由调用方持有、必须在卸载时调用的释放函数,只要存在保持,认领条目就继续挂载,后续提示被丢弃,释放后恢复后续提示但不重放已丢弃的提示。回退 Toast 自身没有延后策略:当 Desktop 账号的不透明原生 Platform 页盖住本页时,它仍会在下方运行,其显示计时器可能在不可见时走完并自行撤下提示,因此只留下持久化失败行。释放只移除自己的保持,因此它在关闭或更新的保持之后执行时不会影响更新的保持。关闭与退出登录会清空所有保持;被丢弃的提示不排队,其对应的持久化失败行仍会渲染。历史替换和分页不会发布提示。中间重试不会创建终止行;输出 token 上限使用琥珀色警告点。重启恢复以 `interrupted` 结束的轮次会渲染本地化的停止行,说明 DSH 进程在轮次中途退出,不显示代码标签,其过程摘要显示“已停止”。
73
+ 自动压缩从开始到生成 checkpoint 或结束期间显示进度行。自动和手动压缩完成后显示替换条目数与 token 数。Chat 在临时侧栏标签中打开 `compaction/summary` 记录的正文。文档预览或摘要序号不可用时按钮禁用,读取错误显示在压缩行中。
73
74
 
74
- Chat 在 `MarkdownDelegateProvider.getTriggerProps` 接入处适配 Markdown 目标。助手节点 Slot 直接获取 `useContextMenu`,向可选的文件引用服务传入路径适配函数;消息流和节点中间层不再携带菜单回调。手势发生时按原始 Session 的当前工作目录解析路径,菜单保留捕获的路径和行号,不受焦点变化影响。未声明的插件链接保留原生行为。
75
+ 通用指令行在所有生命周期状态中都保留普通指令图标;失败仍通过行状态与摘要表达。每个终止轮次都渲染自己的红点行;欠费失败的行使用中立的 `message.failure.quota` 文案,而不是提供方消息。新追加的 `QUOTA` 或 `ACCOUNT_QUOTA` 产生的瞬时提示来自本包注册在 `shell.overlay` 的全局条目,它不随 Chat 面板消失:该条目把唯一一条实时提示交给 `shell.quota-notice` 链,并在无人接管时回退到自己的警告 Toast,接管该错误码的条目会替换该回退。只有当前被渲染方引用保留了 `conversation` retain 子要素的 Session 会发布提示;本 Client 从未打开的 Session,以及仅作为最近访问会话保留期间发生的欠费都不会发布,恢复保留后也不补发。更新的提示会替换当前提示,除非认领条目用 `keepOpen()` 保持住当前提示:该调用返回一个由调用方持有、必须在卸载时调用的释放函数,只要存在保持,认领条目就继续挂载,后续提示被丢弃,释放后恢复后续提示但不重放已丢弃的提示。回退 Toast 自身没有延后策略:当 Desktop 账号的不透明原生 Platform 页盖住本页时,它仍会在下方运行,其显示计时器可能在不可见时走完并自行撤下提示,因此只留下持久化失败行。释放只移除自己的保持,因此它在关闭或更新的保持之后执行时不会影响更新的保持。关闭与退出登录会清空所有保持;被丢弃的提示不排队,其对应的持久化失败行仍会渲染。历史替换和分页不会发布提示。中间重试不会创建终止行;输出 token 上限使用琥珀色警告点。重启恢复以 `interrupted` 结束的轮次会渲染本地化的停止行,说明 DSH 进程在轮次中途退出,不显示代码标签,其过程摘要显示“已停止”。
76
+
77
+ Chat 在 `MarkdownDelegateProvider.getTriggerProps` 接入处适配 Markdown 目标。助手节点 Slot 直接获取 `useContextMenu`,向可选的文件引用服务传入路径适配函数;消息流和节点中间层不再携带菜单回调。手势发生时按原始 Session 的当前工作目录解析路径:绝对目标无论 Session 在哪个目录都指向同一个文件,相对目标随之后的目录变化而变化。打开文件时用解析出的绝对路径作为地址,因此 Session 移动后侧边栏 tab 仍显示该文件。菜单保留捕获的路径和行号,不受焦点变化影响。未声明的插件链接保留原生行为。
78
+
79
+ -----
80
+
81
+ <a id="inherited-history-divider"></a>
82
+ ## 继承历史分隔线
83
+
84
+ 分叉产生的会话(例如 fork 子智能体或分支出的对话)在最后一个继承的 `session/end-seed` 标记处显示一条标注“以上为继承的历史消息”的分隔线,把复制来的历史与该会话自己的消息分开。标注以“在新对话中分支”操作所用的分支图标开头。切点位于某个 Turn 内部时,分隔线留在该 Turn 的过程折叠之外。分隔线在包含标记的历史页加载后才出现,因此继承历史较长时,可能要向上滚动才能看到。没有继承历史的会话不显示分隔线。
75
85
 
76
86
  -----
77
87
 
@@ -129,6 +139,8 @@ Chat Builder 按节点发布 `bottomSource`:节点可见且属于已加载的
129
139
 
130
140
  运行中的分组标题、思考预览、工具与命令行、当前重试行以及底部运行状态使用共享的 [TextShimmer](../ui-primitives/README.zh.md#component-catalog)。每行的文字共用一道从左到右的高光,包括折叠的分组标题;图标和悬停箭头保留底色。普通流程行之间相隔 4px,同一条 Assistant 消息里相邻的推理行也是如此;展开的分组标题与内容之间相隔 8px;Assistant 回复与相邻过程行之间相隔 12px;每轮完成/耗时控件与其输入、以及紧随其后的可见行之间保留 16px。控件与回复之间隔着已收起的行时,回复保持 12px 回复间距,因此折叠不会改变它的间距。隐藏行与空行(包括保留的空 slot 锚点)不产生间距。“深度求索”运行文字保留蓝色底色,并使用主题专用高光扫过文字。
131
141
 
142
+ 助手收尾消息的复制与分支操作在默认内容字号下使用 16px SVG 框、固定 1px 描边与 28px 点击区域。SVG 框不会在 flex 行中收缩;图标与点击区域尺寸均跟随内容字号增量。
143
+
132
144
  运行状态显示一只鲸鱼,其 APNG 遮罩继承文字颜色。启用减少动态效果或强制颜色模式、或浏览器不支持 alpha 遮罩时,CSS 选择静态 SVG。APNG 是插件样式表引用的[包资源](../AGENTS.md#dependency-declaration);React 不通过 DOM 样式传递图片数据。
133
145
 
134
146
  滚动边缘渐隐在 `ResizeObserver` 报告已展开组的布局后初始化;展开组时不会在 layout effect 中立即读取滚动尺寸。
@@ -150,9 +162,11 @@ Chat 等待初始历史就绪后,才允许自动内容、滚动或尺寸更新
150
162
 
151
163
  Chat 会在历史前插与 renderer 重新挂载时恢复语义锚点,并且只在跟随底部时禁用自己滚动区域的浏览器自动锚定。没有读者移动的贴底滚动事件,以及到达底部(容许小于 1px 的取整误差)的读者输入,会立即更新跟随归属,避免后续布局变化使其底部位置失效。其他读者移动即使位于跟随阈值内,也保持待处理直到采样周期或 `scrollend`,防止布局增长抵消小幅滚动操作。采用完成时收起时,提交正文输入或 steering 会立即恢复跟随底部,并清除先前待处理的读者滚动采样。采用下次消息时收起时,没有折叠批次承载的正文输入用一次原生动画落到底部;steering 在两种时机下都立即落到底部,因为运行中的 Turn 仍在其回显上方持续输出。读者跟随底部时,`ResizeObserver` 追随新的底部,并且无需读取行几何就选中最后一个已加载轮次;读者离开底部后,高度变化会保持顶部位置,再由阅读线几何选择活跃轮次。轮次导航预览位于 Markdown 代码块粘性头栏上方,而导航外框始终处于 composer 上方的 transcript 区域内。
152
164
 
153
- 轮次轨道与回到底部按钮位于正文裁剪层外。它们相对共享会话滚动容器做 sticky 定位;Chat 自己持有滚动容器时,则相对 Chat 外框做 absolute 定位。正文扣除水平内边距后的可用宽度不超过 900px 时,隐藏轮次轨道;判断依据不是浏览器视口宽度。
165
+ 轮次轨道与回到底部按钮位于正文裁剪层外。34px 的回到底部按钮居中容纳 16px 箭头,描边固定为 1px。它们相对共享会话滚动容器做 sticky 定位;Chat 自己持有滚动容器时,则相对 Chat 外框做 absolute 定位。轮次轨道贴在滚动容器的起始边,把末端留白让给[会话面板](../ui-session-panel/README.zh.md),预览朝正文方向弹出。正文扣除水平内边距后的可用宽度不超过 900px 时,隐藏轮次轨道;判断依据不是浏览器视口宽度。
166
+
167
+ `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 视图既不为它重新渲染,也不为它观察尺寸。
154
168
 
155
- 正文根节点使用 `overflow-x: visible; overflow-y: clip`:裁剪纵向溢出,但不创建滚动容器。因此,在没有更近的滚动祖先时,Markdown 代码块的 sticky 头栏和展开的压缩摘要头栏仍以实际会话滚动容器为参照。限高过程组和终端区域保留各自的滚动容器。
169
+ 正文根节点使用 `overflow-x: visible; overflow-y: clip`:裁剪纵向溢出,但不创建滚动容器。因此,在没有更近的滚动祖先时,Markdown 代码块的 sticky 头栏仍以实际会话滚动容器为参照。限高过程组和终端区域保留各自的滚动容器。
156
170
 
157
171
  外层文本记录与每个已展开限高组的跟随状态彼此独立。原生动画的中间滚动保留跟随意图;只有该滚动容器自身的 `scrollend` 才结束其动画。不支持 `scrollend` 的浏览器可能保留原生跟随目标,直到后续贴底更新或读者手势将其结束。读者手势中断动画,是否继续跟随由实际位移决定。滚动传递可以带动外层,外层再按自身离底距离判断。回到底部按钮只恢复外层跟随。
158
172