argszero/cordis-plugin-stream-ceiling

An absolute bound on one model call that SSE keep-alives cannot extend, reporting the duration it actually measured.

Bounds something the harness leaves open: adapters limit silence between transport events, SSE keep-alive comments count as events, and the watchdog re-arms from now rather than accumulating, so a provider that comments forever without a terminal event keeps a call alive indefinitely — the upstream report records a complete payload sitting for 10.0, 17.3 and 17.7 minutes against a five-minute idle timeout, with the failure text naming only the threshold. Because a stream consumer sees only payload chunks, every bound here is defined on the payload stream, where the re-arming bug is unreproducible by construction. Each trip emits one terminal finish whose message names the measured duration beside the bound it breached.

Models & Providers ★ 0 updated 2026-09-18
View on GitHub ↗

Install

dsh plugin add @argszero/cordis-plugin-stream-ceiling

The bundle-patch line, mounted on the llm/stream waterfall, with the row id stream-ceiling. Tune it from a profile layer with - set: on that id. The README's example sets maxStalledMs: 600000, maxCallMs: 1800000, payloadGraceMs: 60000 and skipPurposes: [compaction]; leaving maxCallMs and payloadGraceMs at their defaults of 0 leaves those bounds off.

Compatibility

The provider's own watchdog is left alone — the plugin decides when the caller stops waiting and never reconfigures an adapter. Choosing code changes the consequence: TIMEOUT is in the retry policy's default retryable set, so a false trip costs one attempt rather than the turn, while a code outside that list fails the call outright to stop a provider that hangs on every attempt. payloadGraceMs is off by default because how long a provider legitimately pauses between blocks is behaviour, not error.

Details

Alternatives

yuioi666/dsh-plugin-model-capability · GooDAnDReaDY/dsh-clinebot · kinoward/dsh-plugin-subhub

More plugins in Models & Providers

Browse more in Models & Providers

Guides for Models & Providers plugins