argszero/cordis-plugin-fork-inbox-guard

Cancels the phantom queued input a forked DSH session inherits from its copied prefix, and tells the child what it dropped.

A fork copies the source session's event prefix, and pending input is durable state committed before the turn that consumes it, so a prefix can end between an inbox insert and its removal. The child then holds a queued input addressed to the source session's next turn, and it runs ahead of the child's own first message. This plugin identifies what the copied prefix left behind by replaying it through the same fold the inbox projection uses, intersects that with the child's live inbox so it only ever touches input proved to come from the copy, and cancels the intersection item by item through the inbox's public removal rather than clearing the queue. It leaves one durable notice at the child's first admitted step naming the queue, quoting each cancelled input and naming the source session when known, so the behaviour is visible in the transcript and survives resume; a false announce setting cancels silently while the log line stays.

Sessions & Messages ★ 0
View on GitHub ↗

Install

dsh plugin add @argszero/cordis-plugin-fork-inbox-guard

The README's install line, which deliberately omits --profile: dsh plugin add is what records the package in the profile's bundle list, which is what makes the shipped patch take effect. An npm install alone leaves the package on disk and unmounted.

Compatibility

Mounted on the public agent/created event and built only on public seams — the child's inherited event count and the inbox's own next-step, next-turn and remove operations. The README tracks the upstream fix honestly: DSH narrowed the fork cut in 0.1.6-alpha.1 so that input queued for a turn after the selected one no longer reaches the child, which means the reported case is gone on 0.1.6 and later while every published 0.1.5 release still carries it, and the 0.1.2 and 0.1.3 lines never exhibited it. What remains on 0.1.6 and later — input already pending inside the selected turn — is exactly what upstream's decision says it leaves alone, and this guard still cancels it.

Details

Alternatives

argszero/cordis-plugin-prompt-audit · Totoro-qaq/dsh-plugin-bridge · zhaoyuntao-wl/dsh-plugin-thread

More plugins in Sessions & Messages

Browse more in Sessions & Messages

Guides for Sessions & Messages plugins