core: exclude OS from env_context diffs; update tests for Windows/WSL OS block

This commit is contained in:
Dylan Hurd
2025-11-03 21:04:17 -08:00
parent 9f7097160d
commit 86d636cf33
2 changed files with 46 additions and 7 deletions
+6 -1
View File
@@ -122,7 +122,12 @@ impl EnvironmentContext {
} else {
None
};
EnvironmentContext::new(cwd, approval_policy, sandbox_policy, None)
// Diff messages should only include fields that changed between turns.
// Operating system is a static property of the host and should not be
// emitted as part of a per-turn diff.
let mut ec = EnvironmentContext::new(cwd, approval_policy, sandbox_policy, None);
ec.operating_system = None;
ec
}
}