Skip to content

approvalStopRows

approvalStopRows(parts, options?): string[]

Defined in: _worktrees/docs-release/gaunt-sloth/packages/core/src/core/shell/approvalStop.ts:268

The stop as terminal rows, for a surface that paints lines rather than components.

Every row is painted verbatim, one row per line, and never re-wrapped — that is the condition core/shell/framing states its column-0 guarantee over, and a caller that joins these and hands them to something that wraps has undone the whole point.

columns is what the surface reports (stdout.columns), not a frame width: it is resolved through frameWidthFor here so the plain surfaces, the Ink TUI and the approval dialog cannot come to disagree about how much of a command a human was shown. When it is below core’s floor the frame is wider than the terminal and the guarantee lapses — narrowTerminalNotice leads the block in that case, so it lapses out loud.

readonly ApprovalStopPart[]

number

string[]