Files
oak-gpui/crates
Thorsten BallandBennet 037cf1393c assistant: Undo workflow step when buffer is discarded (#16465)
This fixes a weird bug:

1. Use `/workflow` in assistant
2. Have it generate a step that modifies a file
3. Either (a) select the step in the assistant and have it auto-insert
newlines (b) select "Transform" to have the step applied
4. Close the modified file in the editor ("Discard")
5. Re-open the file
6. BUG: the changes made by assistant are still there!

The reason for the bug is that the assistant keeps references to buffers
and they're not closed/reloaded when closed/reopened.

To fix the bug we now rollback the applied workflow steps when
discarding a buffer.

(This does *not* yet fix the issue where a workflow step inserts a new
buffer into the project/worktree that does not show up on the file
system yet but in `/file` and hangs around until Zed is closed.)


Release Notes:

- N/A

Co-authored-by: Bennet <bennet@zed.dev>
2024-08-19 18:42:49 +02:00
..
2024-05-29 18:06:45 -07:00
2024-07-23 15:01:05 -07:00
2024-08-16 10:09:38 -07:00
2024-04-30 23:31:59 -06:00
2024-08-13 23:06:07 -07:00
2024-07-23 15:01:05 -07:00
2024-03-11 10:45:57 +01:00
2024-07-15 17:04:15 -06:00
2024-08-16 10:09:38 -07:00
2024-08-16 14:01:56 -04:00
2024-06-21 16:32:32 -07:00
2024-08-09 13:37:54 -04:00
2024-07-26 03:31:41 -04:00
2024-04-15 14:21:52 +02:00
2024-08-16 10:09:38 -07:00