mrbeandev/dsh-short-tool-ids
Shortens over-64-character tool-call IDs for the OpenAI-compatible providers you switch on, so those requests stop failing on length.
Works around a concrete failure: some OpenAI-compatible Chat Completions providers reject tool-call IDs longer than 64 characters, so a turn dies with maximum length 64, got length 81. The plugin shortens those IDs in outgoing requests, and only for providers you switch on individually in Settings → Short tool-call IDs, so it is off by default and scoped by you. It exists because the harness's own path is narrower than the failure: pi-ai shortens IDs only when history comes from a different model and only for a provider named exactly openai, so a custom provider — the README's example is one named cc — falls through the gap, and renaming it openai: cc does not match that exact-name check. The risk is stated rather than buried: this is a prototype wrapper around an adapter surface with no officially supported decorator API, zero regressions are not guaranteed, and a save that fails or conflicts shows an error instead of reporting false success.
Install
dsh plugin --profile web add dsh-short-tool-idsThe npm line. Before installing, check the version pairing — this is the plugin whose supported range depends on which plugin release you take. 0.4.0 and later covers DSH 0.1.5-rc.1 up to (not including) 0.3.0, which is the 0.1.5, 0.1.7 and 0.2 releases, on Node ^22.19.0 or >=24. 0.3.0 and older is 0.1.5-rc.2 only and refuses to load on 0.1.7 and 0.2, logging untested versions … refusing to patch.
Compatibility
Supported range is DSH 0.1.5-rc.1 to just below 0.3.0 with plugin 0.4.0+, and the README tabulates which releases were actually tested (0.2.0-rc.2, 0.2.0-rc.1, 0.1.7-rc.2, 0.1.5-rc.3) against which were not; a refused plugin logs a clear error and does not load, and allowUntestedHarness: true overrides the gate with the README's own "not recommended" attached. Settings live in different places across the range — the plugin's own entry in cordis.patch.yml on 0.1.7 and 0.2, the short-tool-ids section of settings.yaml on 0.1.5 — and existing switches carry over when you move. It changes only pi-ai providers using openai-completions, never edits saved sessions, and leaves compound Responses call_id|item_id identifiers untouched.
Details
- Repo: mrbeandev/dsh-short-tool-ids
- Category: Models & Providers
- Stars: 0
- Version: 0.4.0 (npm)
Alternatives
janpauldahlke/dsh-slot-health · ringoage/dsh-subagent-model-picker · deskomor/dsh-sub-providers