Skip to main content

Module headless

Module headless 

Source
Expand description

Headless (non-PTY) terminal management used when PTYs are unavailable.

This module provides a lightweight fallback that relies on piped stdin/stdout instead of allocating a real PTY. It allows the ai-session crate to run inside restricted environments (CI sandboxes, containers without openpty, etc.) where creating a pseudo-terminal would otherwise fail with EPERM.

Structsยง

HeadlessHandle
Headless terminal handle that mimics the PTY interface with buffered IO.