fix: handle EscalateRequest with large value

This commit is contained in:
Michael Bolin
2025-12-05 15:35:19 -08:00
parent e91bb6b947
commit 35a2cfd967

View File

@@ -258,12 +258,18 @@ mod tests {
}),
));
let mut env = HashMap::new();
for i in 0..10 {
let value = "A".repeat(1024);
env.insert(format!("CODEX_TEST_VAR{i}"), value);
}
client
.send(EscalateRequest {
file: PathBuf::from("/bin/echo"),
argv: vec!["echo".to_string()],
workdir: PathBuf::from("/tmp"),
env: HashMap::new(),
env,
})
.await?;