core-agent-ide/codex-rs/mcp-server
Gabriel Peal 1f3318c1c5
Add a TurnDiffTracker to create a unified diff for an entire turn (#1770)
This lets us show an accumulating diff across all patches in a turn.
Refer to the docs for TurnDiffTracker for implementation details.

There are multiple ways this could have been done and this felt like the
right tradeoff between reliability and completeness:
*Pros*
* It will pick up all changes to files that the model touched including
if they prettier or another command that updates them.
* It will not pick up changes made by the user or other agents to files
it didn't modify.

*Cons*
* It will pick up changes that the user made to a file that the model
also touched
* It will not pick up changes to codegen or files that were not modified
with apply_patch
2025-08-04 11:57:04 -04:00
..
src Add a TurnDiffTracker to create a unified diff for an entire turn (#1770) 2025-08-04 11:57:04 -04:00
tests Fix flaky test_shell_command_approval_triggers_elicitation test (#1802) 2025-08-03 10:19:12 -04:00
Cargo.toml Auto format toml (#1745) 2025-07-30 18:37:00 -07:00