Skip to content

v0.3.2

Choose a tag to compare

@yascitom yascitom released this 15 Aug 10:24
· 2 commits to main since this release

中文

修复

  • 推理列不再误导:opencode-go 由 DSH 的 pi-ai 适配器接入,该适配器把推理 token 并入输出、从不单独记录 reasoningTokens,此前推理列永远显示 0。现在未上报时显示 ,并在面板内附说明;单独上报推理的适配器(如 dsh-llm-deepseek)仍正常显示数值
  • 步骤窗口真正保留「最近 400 次」:此前保留的是最旧 400 次调用,与界面文案矛盾;dshSessionMessages 新增 stepCount,明细标题显示真实总调用数
  • 明细竞态:展开明细按 sessionId 键控,快速切换会话时,迟到的响应不会再把 A 会话的步骤渲染到 B 会话卡片下
  • 错误路径符合严格 schemadshSessionMessages 的失败返回值补齐 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); dshSessionMessages returns the new stepCount so 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: dshSessionMessages failure results now carry provider/createdAt nulls, so the friendly error messages actually reach the UI

Changed

  • Faster session list: dshUsage no longer embeds up to 400 steps per session (fetched on demand) and folds session/title locally 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.tgz

Then 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