Skip to main content

paste_startup

Function paste_startup 

Source
pub fn paste_startup<I: PaneIo>(
    io: &I,
    session: &str,
    startup: &str,
    attempts: u32,
) -> Result<()>
Expand description

Paste startup into a live codex tmux pane as a follow-on user turn. Dismisses codex’s per-cwd “Do you trust” dialog if present, then retries send-text + send-Enter until capture echoes the text or attempts is exhausted. Matches the retry pattern in bin/test-resident-codex (the smoke test paste of netsky channel drain).

Used by [post_spawn] to close the resident-codex /up parity gap (round-1 review B1): the rendered netsky prompt already occupies codex’s positional [PROMPT], so startup must be delivered as a second user turn rather than a CLI flag.