pub enum ReadyProbe {
None,
Text(&'static [&'static str]),
PromptLine,
}Expand description
How the worker decides a TUI CLI is ready for its first input.
The gate exists because TUI CLIs drop keystrokes typed before their input
UI is initialized, so the first input of a fresh session waits for one of
these signals. Keeping the signal structural (ReadyProbe::PromptLine)
rather than a literal prompt character means a CLI that restyles its
composer (› -> ❯ -> ->) keeps working without a code change.
Variants§
None
No gate: the CLI takes the initial prompt via spawn args, or the adapter gates itself.
Text(&'static [&'static str])
Ready when any of these substrings appears in the viewport (case-insensitive), e.g. a CLI’s welcome banner.
PromptLine
Ready when a composer input line appears in the viewport: the leading
non-whitespace cell of a line is a prompt glyph (codex ›, traex ❯,
kimi >), optionally behind a box border.