From 8102ecb0bce5a51f3ebe2db415700026ebaa93f2 Mon Sep 17 00:00:00 2001 From: Anthony Ronning <101225832+AnthonyRonning@users.noreply.github.com> Date: Fri, 30 Oct 2026 23:25:07 +0000 Subject: [PATCH] test(agent): compare the quiet-shell cwd against the canonical folder The session stores its project root canonicalized, so on macOS a tempdir under /tmp reports /private/tmp. The assertion compared against the raw tempdir path and failed on every agent-full-macos run since #1378. Co-Authored-By: Claude Opus 5.5 --- apps/maple-agent/crates/maple-agent/src/agent/shell_tests.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/apps/maple-agent/crates/maple-agent/src/agent/shell_tests.rs b/apps/maple-agent/crates/maple-agent/src/agent/shell_tests.rs index afa033466..24e008168 100644 --- a/apps/maple-agent/crates/maple-agent/src/agent/shell_tests.rs +++ b/apps/maple-agent/crates/maple-agent/src/agent/shell_tests.rs @@ -107,7 +107,10 @@ async fn quiet_shell_reports_effective_folder_deadline_and_idle_time_until_stop( assert_eq!(tool.status.as_deref(), Some("running")); assert_eq!(tool.output.as_ref().unwrap()["text"], "fixture-output"); let progress = &tool.output.as_ref().unwrap()["structuredContent"]["shellExecution"]; - assert_eq!(progress["cwd"], json!(worktree.path())); + assert_eq!( + progress["cwd"], + json!(worktree.path().canonicalize().unwrap()) + ); assert_eq!(progress["timeoutSeconds"], 1800.0); assert!(progress["outputIdleSeconds"].as_u64().unwrap() >= 4); assert!(!progress.to_string().contains("fixture-private-command"));