pub struct PtyConfig {
pub enabled: bool,
pub default_rows: u16,
pub default_cols: u16,
pub max_sessions: usize,
pub command_timeout_seconds: u64,
pub stdout_tail_lines: usize,
pub scrollback_lines: usize,
pub max_scrollback_bytes: usize,
pub large_output_threshold_kb: usize,
pub preferred_shell: Option<String>,
pub shell_zsh_fork: bool,
pub zsh_path: Option<String>,
}Expand description
PTY configuration
Fields§
§enabled: boolEnable PTY support for interactive commands
default_rows: u16Default terminal rows for PTY sessions
default_cols: u16Default terminal columns for PTY sessions
max_sessions: usizeMaximum number of concurrent PTY sessions
command_timeout_seconds: u64Command timeout in seconds (prevents hanging commands)
stdout_tail_lines: usizeNumber of recent PTY output lines to display in the chat transcript
scrollback_lines: usizeTotal scrollback buffer size (lines) retained per PTY session
max_scrollback_bytes: usizeMaximum bytes of output to retain per PTY session (prevents memory explosion)
large_output_threshold_kb: usizeThreshold (KB) at which to auto-spool large outputs to disk instead of memory
preferred_shell: Option<String>Preferred shell program for PTY sessions (e.g. “zsh”, “bash”); falls back to $SHELL
shell_zsh_fork: boolFeature-gated shell runtime path that routes shell execution through zsh EXEC_WRAPPER hooks.
zsh_path: Option<String>Optional absolute path to patched zsh used when shell_zsh_fork is enabled.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for PtyConfig
impl<'de> Deserialize<'de> for PtyConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Source§impl JsonSchema for PtyConfig
impl JsonSchema for PtyConfig
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
$ref keyword. Read moreAuto Trait Implementations§
impl Freeze for PtyConfig
impl RefUnwindSafe for PtyConfig
impl Send for PtyConfig
impl Sync for PtyConfig
impl Unpin for PtyConfig
impl UnsafeUnpin for PtyConfig
impl UnwindSafe for PtyConfig
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more