@hyzyn/dsh-docker 0.6.2 → 0.6.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.
package/README.en.md CHANGED
@@ -97,7 +97,10 @@ already open with `tail`, so history refills itself.
97
97
  and `rightbar.session` both declare `scope: 'session'`), so a tab opened in session A does not exist in session B.
98
98
  The panel inspects hosts, though, and losing it on a session switch is pure loss — so the plugin additionally
99
99
  keeps a "the user wants this open" intent: **switching sessions reopens the tab in the new session**, and only
100
- clicking the tab's ✕ stops that. The panel follows the person, not the session.
100
+ clicking the tab's ✕ stops that. The panel follows the person, not the session. That ✕ is executed by the
101
+ **host** (`sidebarRight` closes the tab itself), so the plugin learns about it through
102
+ `registerCloseHandler` — relying on the panel's own `onClose` alone would miss the close, and every session
103
+ switch would bring the tab back after the user had just dismissed it.
101
104
 
102
105
  **Dock fallback carrier** (right of the terminal):
103
106
 
package/README.md CHANGED
@@ -95,7 +95,9 @@ add。装完重启 `dsh web`,侧边栏出现「容器」入口;设置 →
95
95
  `rightbar.session` 都声明 `scope: 'session'`),A 会话开的标签在 B 会话里并不存在。可
96
96
  容器面板看的是主机,「切个会话它就没了」是纯损失,所以插件额外记了一个「用户希望它开着」
97
97
  的意图:**切会话时自动在新会话里把标签重开**,只有你点了标签的 ✕ 才停止——也就是
98
- 「面板跟人走,而不是跟会话走」。
98
+ 「面板跟人走,而不是跟会话走」。那个 ✕ 是**宿主**执行的(`sidebarRight` 自己摘标签),
99
+ 所以「用户关掉了」这件事必须经 `registerCloseHandler` 登记才收得到:只靠面板自己的
100
+ `onClose` 会漏掉它,于是刚关掉的标签会在每次切会话时自己回来。
99
101
 
100
102
  **dock 兜底形态**(终端右侧栏):
101
103