v0.3.2
中文
修复
- 推理列不再误导:opencode-go 由 DSH 的 pi-ai 适配器接入,该适配器把推理 token 并入输出、从不单独记录
reasoningTokens,此前推理列永远显示 0。现在未上报时显示 —,并在面板内附说明;单独上报推理的适配器(如 dsh-llm-deepseek)仍正常显示数值 - 步骤窗口真正保留「最近 400 次」:此前保留的是最旧 400 次调用,与界面文案矛盾;
dshSessionMessages新增stepCount,明细标题显示真实总调用数 - 明细竞态:展开明细按 sessionId 键控,快速切换会话时,迟到的响应不会再把 A 会话的步骤渲染到 B 会话卡片下
- 错误路径符合严格 schema:
dshSessionMessages的失败返回值补齐provider/createdAt,友好错误提示能真正到达界面(此前会被 typert 严格校验拦截)
优化
- 会话列表加载更快:
dshUsage不再为每个会话携带最多 400 条步骤明细(明细按需拉取),也不再为标题二次读取日志(本地折叠session/title事件) - 每次调用的明细行显示时间(模型与会话不一致时也显示模型)
- 「消息」列更名「调用」(统计的是模型调用次数)
升级
dsh plugin --profile web add github:yascitom/dsh-opencode-go-box
# 或离线:dsh plugin --profile web add file:/path/to/dsh-opencode-go-usage-0.3.2.tgz升级后重启 dsh web 并硬刷新页面(Ctrl+F5)。
English
Fixed
- Reasoning column no longer lies: opencode-go is served through DSH's pi-ai adapter, which folds reasoning into output tokens and never records
reasoningTokens— the column always showed a misleading 0. It now renders — (not reported) with an in-panel explanation; adapters that do report reasoning (e.g. dsh-llm-deepseek) still show real numbers - Step window really keeps the latest 400 calls (it kept the oldest 400, contradicting the UI copy);
dshSessionMessagesreturns the newstepCountso the detail header shows the true total - Detail race: the expanded-session detail is keyed by sessionId — a late response can no longer render one session's steps under another session's card
- Error paths satisfy the strict wire schema:
dshSessionMessagesfailure results now carryprovider/createdAtnulls, so the friendly error messages actually reach the UI
Changed
- Faster session list:
dshUsageno longer embeds up to 400 steps per session (fetched on demand) and foldssession/titlelocally instead of a second log read per session - Per-call rows show the call time (and model when it differs from the session's)
- The "Msgs" column is renamed "Calls"
Upgrade
dsh plugin --profile web add github:yascitom/dsh-opencode-go-box
# or offline: dsh plugin --profile web add file:/path/to/dsh-opencode-go-usage-0.3.2.tgzThen restart dsh web and hard-refresh the page (Ctrl+F5).
Asset: dsh-opencode-go-usage-0.3.2.tgz (npm pack tarball, 21820 bytes)
SHA-256: 975C47422266BC6D10A957806141837560957C8C61EEE503B17F9477B3A37A8F