Repository navigation
fix(host): producer-owned source kind for framing inject (dsh 0.1.7-rc.2) - #33
Merged
cloader merged 1 commit intoSep 26, 2026
Merged
Conversation
… 0.1.7-rc.2)
dsh 0.1.7-rc.2 retired the generic kind:'plugin' message source — the v4
session format now requires every durable message to carry a producer-owned
source kind (a non-empty string that is not 'plugin'). The opening inject()
framing line used source:{kind:'plugin',plugin:'dsh-taskboard'}, so every
scheduled/manual execution's turn failed with
'format v4 message requires a producer-owned source kind' (logged as
[dsh-taskboard] turn error detail).
Replace it with the plugin's own kind 'dsh-taskboard' (declared in
MessageSourceMap, matching the cordis-host-runner / runtime-context convention
where each producer owns its source kind). The followup() body already used
kind:'user' and is unchanged.
1254087415
pushed a commit
to 1254087415/dsh-taskboard
that referenced
this pull request
Sep 26, 2026
上游 8 个 commit(v0.8.1 → v0.8.3): - cloader#33 执行开场注入改用看板自身的 source kind(适配 DSH 0.1.7-rc.2 的 v4 会话格式) - cloader#35 定期任务完成策略(默认「完成后新建待办」) - cloader#37 会话跳转改走 uiWorkspace.openSession(sessions.open 在 DSH 0.1.6+ 已移除) - cloader#38 台账写入拒绝用旧快照覆盖新文件;cloader#39/cloader#40 结算与认领超时判定修正 - devDeps 升到 0.1.7-rc.2 冲突解决(仅 2 处源码,其余 lib/* 由 npm run build 覆盖): - src/client/index.ts:保留本 fork 的 mountSessionCardLinks 接线,同时引入上游的 UiWorkspaceFace / getUiWorkspace - src/shared/version.ts:采用上游 0.8.3 本地 5 项增强逐项核对保留:会话自动跟踪、会话导入、会话↔卡双向跳转、 侧边栏 4 数字统计、Agent 协议纪律 9/10。 测试:360/360 通过(本机 Node 26 需 NODE_OPTIONS=--localstorage-file 才不会被 Node 自带的 localStorage 全局遮住 jsdom 实现)。
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
On dsh 0.1.7-rc.2, every scheduled/manual task execution fails its opening turn:
dsh 0.1.7-rc.2 retired the generic
kind: 'plugin'message source. The v4 session format'ssource()validator now requires every durable message to carry a producer-ownedsource.kind— a non-empty string that is not'plugin'. The openinginject()framing line usedsource: { kind: 'plugin', plugin: 'dsh-taskboard' }, so the v4 format rejects it and the whole turn fails.Fix
src/host/execution.ts— replace the retiredkind: 'plugin'with the plugin's own kind'dsh-taskboard', and declare it inMessageSourceMapso the taskboard owns its attribution (matching thecordis-host-runner/runtime-contextconvention where each producer owns its source kind):The
followup()body already usedkind: 'user'and is unchanged.tests/execution.spec.tsupdated to assert the new kind.Verification (target: dsh 0.1.7-rc.2)
tsdownbuild (host + client) succeeds.vitest: 346/346 tests pass (including the execution specs that exercise the inject framing path).lib/host/execution.jscarrieskind: "dsh-taskboard"(no'plugin').The same class of bug + fix was confirmed in another scheduled-task plugin on 0.1.7-rc.2.