pub fn choose_attach(
opts: &AttachOpts,
sessions: &[LiveSession],
cwd: Option<PathBuf>,
await_extensions: bool,
) -> Result<(Attach, Option<String>), String>Expand description
What to send: Existing for an explicit or sole live session, Create
for --new, --continue, or no live sessions. Errors are user-facing.
notice is a one-line stderr message when a live session was picked
implicitly (no id given).