Skip to content
mercury framework
GitHub

detectPendingConfirmation

detectPendingConfirmation(step): PendingConfirmation | null

Defined in: types/channel-types/index.ts:48

Returns the first confirm-required staging in step (in tool-call order), or null. Keys on the pendingConfirmation flag a tool sets on its result, not on a tool name. Used by the core to stop the loop and by channels to build their confirm UI.

StepInfo

PendingConfirmation | null