Skip to content

smelt.confirm

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

Classification: Supported - Primary alpha facade 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

Classification: Advanced - Documented low-level capability for plugins that need full control. It may evolve more freely than the Supported facade.

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 the bundled host bridge. Bails when no matching request is active (e.g. a newer prompt has superseded it). The host calls this Advanced override point; plugins may replace it but should not invoke it directly.