Throws for a prompt that can never match, so a runtime refuses it before it starts a child. Choices, ready texts and a notice are read from the screen; a bare prompt is matched in the output.
Optionalnotice: stringHow the watch ended, set once from the event that ended it.
The failure becomes the exit's diagnostic, because a TUI may never show it where an operator looks.
Optionalpane: { key(key: "Down" | "Enter"): void; read(): string | undefined }End confirmation authority before stopping the child or processing further output. A watch
disarmed before it ended records failed: no positive outcome without the read that ended it.
True once, for the chunk that completes the prompt; the runtime answers it with Enter.
Honors LaunchSpec.confirm for a runtime that owns the child's output. Both pty runtimes use it, so a gate that fails ends the seat the same way whichever one owns the child.