dsh-toolcall-id-repair: Fixing Session Deadlock Caused by Empty tool_call IDs from OpenAI-Compatible Upstreams
When used with an OpenAI-compatible upstream that omits `tool_calls` id, DeepSeek Harness 0.2.x may allow empty strings to pass stream validation while still violating session format v4, preventing a turn from appending `tool`/`result` entries. The plugin `@dsh-local/dsh-toolcall-id-repair` (v0.1.1) backfills empty ids in the `llm/stream` stage and ships `repair-session.py` to synchronously rewrite all three id locations, along with `verify-session.mjs` to invoke the harness's native validation. Installation is supported via DSH Store or `cordis.patch.yml`; alternatively, `guard-plugin.js` can be manually mounted.
Read More