ZIm/crates/assistant_tool/src
Smit Barmase a9c44ac551
assistant_tool: Fix rejecting edits deletes newly created and accepted files (#35622)
Closes #34108
Closes #33234

This PR fixes a bug where a file remained in a Created state after
accept, causing following reject actions to incorrectly delete the file
instead of reverting back to previous state. Now it changes it to
Modified state upon "Accept All" and "Accept Hunk" (when all edits are
accepted).

- [x] Tests

Release Notes:

- Fixed issue where rejecting AI edits on newly created files would
delete the file instead of reverting to previous accepted state.
2025-08-05 06:02:42 +05:30
..
action_log.rs assistant_tool: Fix rejecting edits deletes newly created and accepted files (#35622) 2025-08-05 06:02:42 +05:30
assistant_tool.rs Allow edit tool to access files outside project (with confirmation) (#35221) 2025-07-28 14:01:34 -04:00
outline.rs Use anyhow more idiomatically (#31052) 2025-05-20 23:06:07 +00:00
tool_registry.rs Eliminate GPUI View, ViewContext, and WindowContext types (#22632) 2025-01-26 03:02:45 +00:00
tool_schema.rs tools: Ensure properties always exists in JSON Schema (#34015) 2025-07-07 15:34:14 +00:00
tool_working_set.rs Allow edit tool to access files outside project (with confirmation) (#35221) 2025-07-28 14:01:34 -04:00