@lyhue1991/dsh-soup 0.5.8 → 0.5.9

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/lib/host/speed.js CHANGED
@@ -127,8 +127,10 @@ export function createSpeedTracker() {
127
127
 
128
128
  function status(sessionId) {
129
129
  let pool = streams.get(sessionId) || []
130
- if (pool.length === 0) {
131
- // Cold-session fallback: pick the session with the freshest activity.
130
+ if (pool.length === 0 && !sessionId) {
131
+ // No-id fallback (badge could not resolve any session id): pick the
132
+ // session with the freshest activity. A real sessionId must never see
133
+ // another session's traffic, so an unknown id simply stays idle.
132
134
  let best = null
133
135
  for (const states of streams.values()) {
134
136
  const latest = states[states.length - 1]
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@lyhue1991/dsh-soup",
3
3
  "description": "DSH 项目资源管理器:右侧 details 列文件树(并列网格、宽度对齐宿主 details 合同 300-520px),有 Session log 时在其右侧、空白新会话在输入框上方右端提供 📁 切换按钮;支持多选、双击展开/打开、右键菜单(打开/系统打开/重命名/废纸篓/新建/复制路径)、拖拽移动、上传。文件「打开」在会话区新增「文件」标签页(原生 conversation.view,与对话/轨迹同级):文本可编辑 ⌘S 保存、图片预览、二进制提示。附带模型吞吐徽标:输入框正上方显示「正在等待模型...」与彩色 t/s 徽标(数据来自 llm/stream 真实流)。附带 GoalBar 多行展示:把原生单行截断 GoalBar 放开为多行完整显示,编辑用 textarea,工具与数据仍走原生 goal。",
4
- "version": "0.5.8",
4
+ "version": "0.5.9",
5
5
  "type": "module",
6
6
  "main": "lib/index.js",
7
7
  "scripts": {