fix: add ts number annotations for app-server v2 types (#7492)

These will be more ergonomic to work with in Typescript.
This commit is contained in:
Owen Lin
2025-12-02 10:09:41 -08:00
committed by GitHub
parent 72b95db12f
commit c2f8c4e9f4
3 changed files with 15 additions and 3 deletions

View File

@@ -1152,7 +1152,9 @@ impl CodexMessageProcessor {
let cwd = params.cwd.unwrap_or_else(|| self.config.cwd.clone());
let env = create_env(&self.config.shell_environment_policy);
let timeout_ms = params.timeout_ms;
let timeout_ms = params
.timeout_ms
.and_then(|timeout_ms| u64::try_from(timeout_ms).ok());
let exec_params = ExecParams {
command: params.command,
cwd,