fix: allow parent commands during write delegation

This commit is contained in:
2026-08-27 11:27:27 +09:00
parent 7aaf189247
commit 060f280fdf
7 changed files with 127 additions and 359 deletions
-12
View File
@@ -390,18 +390,6 @@ async fn bash_inherits_workdir_cwd() {
assert_eq!(actual, expected);
}
#[tokio::test]
async fn bash_uses_explicit_logical_cwd() {
let (dir, _spill, reg) = setup();
std::fs::create_dir_all(dir.path().join("nested")).unwrap();
let bash = reg.get("Bash");
let out = call(&bash, json!({ "command": "pwd", "cwd": "nested" })).await;
let body = out.content.unwrap();
let actual = std::fs::canonicalize(body.trim()).unwrap();
let expected = std::fs::canonicalize(dir.path().join("nested")).unwrap();
assert_eq!(actual, expected);
}
#[tokio::test]
async fn bash_provider_output_does_not_expose_internal_paths() {
let (_dir, spill, reg) = setup();