Skip to main content

Module bash_session

Module bash_session 

Source
Expand description

Persistent-session bash tool (pack-routed ShellSession backend). Persistent-session bash tool — the coding-omp-v1 routed bash implementation backed by ShellSession.

Schema-compatible with the legacy BashTool (command/timeout/cwd/env), but every call executes in one long-lived bash session: the working directory and exported environment persist across calls, matching the OMP compatibility target. The session init merges stderr into stdout and traps SIGINT so a cancel aborts only the foreground command (exit code 130) while the session survives.

The pack picks this variant when the host provides a ShellSession service and falls back to the legacy per-invocation tool otherwise.

Structs§

SessionBashTool
bash agent tool routed through a persistent ShellSession.