feat: monitor role (#12364)

This commit is contained in:
jif-oai
2026-02-22 14:13:56 +00:00
committed by GitHub
parent 55fc075723
commit 4666a6e631
5 changed files with 57 additions and 10 deletions

View File

@@ -1076,7 +1076,7 @@ pub struct ConfigToml {
/// Maximum poll window for background terminal output (`write_stdin`), in milliseconds.
/// Default: `300000` (5 minutes).
pub background_terminal_timeout: Option<u64>,
pub background_terminal_max_timeout: Option<u64>,
/// Optional absolute path to the Node runtime used by `js_repl`.
pub js_repl_node_path: Option<AbsolutePathBuf>,
@@ -1804,7 +1804,7 @@ impl Config {
.transpose()?
.unwrap_or_default();
let background_terminal_max_timeout = cfg
.background_terminal_timeout
.background_terminal_max_timeout
.unwrap_or(DEFAULT_MAX_BACKGROUND_TERMINAL_TIMEOUT_MS)
.max(MIN_EMPTY_YIELD_TIME_MS);