runInSession property
Runs command in the host's current interactive shell session (with
its PTY, cwd/env and cached credentials), returning its captured output and
exit code. Used by the AI agent so its commands behave like the user typed
them. null when the host has no live interactive session to run in (the
web client, non-interactive runs, or non-POSIX shells) — callers then fall
back to a one-off exec.
Implementation
final Future<SessionCommandResult> Function(String command)? runInSession;