Skip to content

smelt.confirm

Tier: UiHost - Requires a terminal UI; calling these from headless mode raises.

Visibility: Public - Stable Lua API intended for user config and plugins.

Confirm dialog primitives - preview dispatch, back-tab cycling, and choice resolution. UiHost-only.

smelt.confirm.open

fun(handle_id: string): nil

Visibility: Internal - Runtime implementation detail. Bundled Lua may call it, but user config and plugins should not depend on it.

Drive the bundled tool-permission confirm dialog for handle_id. Reads the matching request out of the confirm_requested signal, builds the header + preview + option leaves, dispatches the user's choice through smelt.confirm.__resolve. Bails when no matching request is active (e.g. a newer prompt has superseded it). Called by the host; plugins should not invoke directly.