diff --git a/packages/client/ui-session-panel/README.i18n.yaml b/packages/client/ui-session-panel/README.i18n.yaml
index d2af073c03..046ccc1665 100644
--- a/packages/client/ui-session-panel/README.i18n.yaml
+++ b/packages/client/ui-session-panel/README.i18n.yaml
@@ -15,14 +15,14 @@
en: d152484eb41ac6b4
zh: 09388d293f9be9cb
/deepseek-ai-dsh-client-ui-session-panel/use-this-package:
- en: d7818d67e981be3c
- zh: c7c0c704d5ef8b34
+ en: 395514000d22bf29
+ zh: 8a8e1f0dc91a21fa
/deepseek-ai-dsh-client-ui-session-panel/use-this-package/docking-and-the-overlay:
en: 77c0fdde17b1d115
zh: 73edb33c88e8e464
/deepseek-ai-dsh-client-ui-session-panel/use-this-package/contribute-a-section:
- en: 05353d77a7b8feb9
- zh: 01efa3b03c5a61d8
+ en: a297c196bb631928
+ zh: 523b71276d8f847e
/deepseek-ai-dsh-client-ui-session-panel/understand-the-implementation:
en: f996b40c78ce18ba
zh: d66ed6289f8eed50
diff --git a/packages/client/ui-session-panel/README.md b/packages/client/ui-session-panel/README.md
index 23c2e3529c..14e46b9f2a 100644
--- a/packages/client/ui-session-panel/README.md
+++ b/packages/client/ui-session-panel/README.md
@@ -25,7 +25,7 @@ English | [中文](README.zh.md)
## Use this package
-The `@deepseek-ai/dsh-web-app` bundle loads this package by default. The toggle is the first Session header utility, before change requests, sharing, and the schedule catalog. It is an icon button with the panel name and its indicators as its accessible name, a tooltip that says whether a press shows or hides the panel, and `aria-expanded` for whether the panel shows.
+The `@deepseek-ai/dsh-web-app` bundle loads this package by default. The toggle is the first Session header utility, before change requests, sharing, and the schedule catalog. It is an icon button with the panel name and its indicators as its accessible name, a tooltip that says whether a press shows or hides the panel, shown after 500ms of hover or at once on keyboard focus, and `aria-expanded` for whether the panel shows.
### Docking and the overlay
@@ -40,7 +40,7 @@ Other Views, such as the trajectory View, show no panel. While no Chat View show
A section is one `conversation.session.panel.section` list registration: `id` addresses it, `order` sorts it ascending, and the required `label` is its title, which the panel draws in the active locale. The section component receives `presentation` (`docked` or `overlay`) and `dismissOverlay()` as owner props; it renders its body and renders nothing when it has nothing to show, which hides its title too. Register trailing title controls, such as a count or a refresh button, in the keyed `conversation.session.panel.section.actions` slot under the section's `id`. A section without a label is reported to the console and not shown.
-Plugins share a title by registering rows in a section owner's row slot. The built-in Environment section (`id: 'environment'`, `order: 0`) declares `conversation.session.panel.environment.row`; its `project` row (`order: 0`) shows the Session's working folder: the current directory from the `workingDirectory` projection, or, before the projection arrives or when it records none, the directory the Session was created in, then the directory of the Workspace that lists the Session. The row shows the folder name followed by its parent folder in tertiary ink, which clips with an ellipsis; its tooltip names the working folder and gives the full path. Both abbreviate the Host home to `~`. Right-clicking the row or pressing its More button opens the shared `directory` context menu. A plugin that owns a shared section declares its own row slot the same way.
+Plugins share a title by registering rows in a section owner's row slot. The built-in Environment section (`id: 'environment'`, `order: 0`) declares `conversation.session.panel.environment.row`; its `project` row (`order: 0`) shows the Session's working folder: the current directory from the `workingDirectory` projection, or, before the projection arrives or when it records none, the directory the Session was created in, then the directory of the Workspace that lists the Session. The row shows the folder name followed by its parent folder in tertiary ink, which clips with an ellipsis; its tooltip, shown after 500ms of hover, names the working folder and gives the full path. Both abbreviate the Host home to `~`. Right-clicking the row or pressing its More button opens the shared `directory` context menu. A plugin that owns a shared section declares its own row slot the same way.
Marks that must stay visible while the panel is hidden, such as an attention dot, go in the `conversation.session.panel.indicator` list. Each occupant is one element: the toggle sizes it to a 6px dot at the glyph's corner, and the occupant sets its `background` and includes text that names it, which becomes part of the toggle's accessible name. Occupants overlap, and a higher `order` paints above a lower one. The `panelShown` owner prop lets a mark that only repeats the panel's content render nothing while the panel shows.
diff --git a/packages/client/ui-session-panel/README.zh.md b/packages/client/ui-session-panel/README.zh.md
index 21406c85c7..0940e82797 100644
--- a/packages/client/ui-session-panel/README.zh.md
+++ b/packages/client/ui-session-panel/README.zh.md
@@ -25,7 +25,7 @@ kind: "package-reference"
## 使用本包
-`@deepseek-ai/dsh-web-app` 套件默认加载本包。开关是会话标题栏的第一个工具按钮,位于变更请求、共享和计划任务目录之前。它是图标按钮:无障碍名称由面板名称和其角标组成,提示文字说明按下后是显示还是隐藏面板,`aria-expanded` 表示面板当前是否显示。
+`@deepseek-ai/dsh-web-app` 套件默认加载本包。开关是会话标题栏的第一个工具按钮,位于变更请求、共享和计划任务目录之前。它是图标按钮:无障碍名称由面板名称和其角标组成,提示文字说明按下后是显示还是隐藏面板(悬停 500ms 后显示,键盘聚焦时立即显示),`aria-expanded` 表示面板当前是否显示。
### 停靠与浮层
@@ -40,7 +40,7 @@ kind: "package-reference"
一个分栏是 `conversation.session.panel.section` 列表里的一次注册:`id` 用于寻址,`order` 升序排列,必填的 `label` 是标题,面板按当前语言绘制。分栏组件通过 owner props 收到 `presentation`(`docked` 或 `overlay`)和 `dismissOverlay()`;它负责渲染正文,没有内容时什么都不渲染,标题随之隐藏。标题尾部的控件(例如计数或刷新按钮)注册到以分栏 `id` 为键的 keyed slot `conversation.session.panel.section.actions`。缺少 label 的分栏会报告到控制台,并且不显示。
-多个插件共用一个标题时,把行注册到分栏拥有者的行 slot 中。内置「环境」分栏(`id: 'environment'`,`order: 0`)声明 `conversation.session.panel.environment.row`;其 `project` 行(`order: 0`)显示会话的工作目录:`workingDirectory` 投影记录的当前目录;投影尚未送达或没有记录时,依次取会话创建时所在的目录、列出本会话的工作区目录。该行先显示目录名,再以三级文字色显示父目录,放不下时以省略号截断;悬停提示写明工作目录并给出完整路径。两处都把宿主家目录缩写为 `~`。右键该行或点其「更多」按钮会打开共享的 `directory` 上下文菜单。拥有共享分栏的插件用同样方式声明自己的行 slot。
+多个插件共用一个标题时,把行注册到分栏拥有者的行 slot 中。内置「环境」分栏(`id: 'environment'`,`order: 0`)声明 `conversation.session.panel.environment.row`;其 `project` 行(`order: 0`)显示会话的工作目录:`workingDirectory` 投影记录的当前目录;投影尚未送达或没有记录时,依次取会话创建时所在的目录、列出本会话的工作区目录。该行先显示目录名,再以三级文字色显示父目录,放不下时以省略号截断;悬停 500ms 后出现的提示写明工作目录并给出完整路径。两处都把宿主家目录缩写为 `~`。右键该行或点其「更多」按钮会打开共享的 `directory` 上下文菜单。拥有共享分栏的插件用同样方式声明自己的行 slot。
面板隐藏时也要可见的标记(例如需要处理的红点)放进 `conversation.session.panel.indicator` 列表。每个占位是一个元素:开关把它定为图标角上的 6px 圆点,占位负责设置 `background`,并带有说明自身的文字,这些文字会成为开关无障碍名称的一部分。占位会重叠,`order` 高的画在低的上方。owner 属性 `panelShown` 让只是重复面板内容的标记在面板显示时不渲染。
diff --git a/packages/client/ui-session-panel/src/client/ProjectRow.tsx b/packages/client/ui-session-panel/src/client/ProjectRow.tsx
index 58ace294f7..6e3dd45b18 100644
--- a/packages/client/ui-session-panel/src/client/ProjectRow.tsx
+++ b/packages/client/ui-session-panel/src/client/ProjectRow.tsx
@@ -39,7 +39,7 @@ export function ProjectRow({
menu={renderFactorySlot('contextMenu.button', { target, label: t('project.actions') })}
data-session-panel-project=""
>
-
+ {name}
{parent !== '' && {parent}}
diff --git a/packages/client/ui-session-panel/src/client/SessionPanelToggle.tsx b/packages/client/ui-session-panel/src/client/SessionPanelToggle.tsx
index f578ec3e7d..8aa53f02a1 100644
--- a/packages/client/ui-session-panel/src/client/SessionPanelToggle.tsx
+++ b/packages/client/ui-session-panel/src/client/SessionPanelToggle.tsx
@@ -24,7 +24,7 @@ export function SessionPanelToggle({
const open = available && shown
const label = available ? t(open ? 'toggle.hide' : 'toggle.show') : t('toggle.unavailable')
return (
-
+