Skip to content
Developer Preview

PendingCommandView

The pending set as a consumer may READ and DRIVE it.

discardEphemeral, observedReclaim and observedUserMessage are Session’s to call: it drives them from folded events and reports what they returned. A consumer calling discardEphemeral() directly drains the set and latches it discarded, so the later real hostExited reports retiredCommands: [] — silently losing the very inputs the discharge exists to hand back. Same allowlist discipline as the fold view.

stopRetrying and replayAnswered are hidden for the same bookkeeping reason, re-exposed as Session methods: both can retire an entry the submit verb authored, and a retirement that bypasses TurnSubmitter.forgetRetired leaves that command’s turn/start params in the replay memory forever — unbounded over the sanctioned submit-then-abandon flow.

Source

clients/sdk-ts/src/facade/session.ts:166

{
"kind": "Type alias",
"canonicalPath": "PendingCommandView"
}