app-server: preserve command item cwd

This commit is contained in:
Adam Perry
2026-06-16 17:39:01 +00:00
parent bd47c95c4c
commit 4a4c8fad12
36 changed files with 154 additions and 65 deletions
@@ -823,7 +823,7 @@ fn sample_command_execution_item_with_id(
ThreadItem::CommandExecution {
id: id.to_string(),
command: "echo hi".to_string(),
cwd: test_path_buf("/tmp").abs(),
cwd: serde_json::from_value(json!("/tmp")).expect("API cwd should deserialize"),
process_id: Some("pid-1".to_string()),
source: CommandExecutionSource::Agent,
status,