дзеркало
https://github.com/l0ng-ai/openidea.git
синхронізовано 2026-12-04 01:01:17 +02:00
* feat(agents): roll back files with the conversation to an earlier message Each turn now keeps a record of the checkout as it started (HEAD, the changed files' stamps, and copies shared between turns by path and stamp). Rolling back to a message drops it and the later turns and puts the files changed since back as they were before it was sent; the message returns to the composer. Edit, Run Again From Here and Regenerate Response put the files back the same way before running again. The plan is read and checked before anything changes, so a file that can't be restored leaves the conversation and the files untouched. In the project's own checkout only files a turn of the task changed are restored. Tasks saved with only the last turn's record can roll back files to their last or first message. * fix(agents): harden turn rollback pre-checks, rename handling and confirmation - Plan and validate all files before truncating the conversation even when rolling back to turn 0 without a turn record - Record renamed_from paths in checkout snapshots and apply removals before writes so case-only renames restore cleanly on case-insensitive disks - Guard rollback against concurrent operations, move file I/O and restamping out of the task lock, and emit Truncated/Task after files and turn records settle - Scope local-mode turn rewind to the rolled-back turns' recorded changes so user edits to other turns' files stay untouched while committed files in rolled-back turns are reverted - Use a stable blake3 hash for persisted turn copy names - Confirm before Run Again From Here and Regenerate Response rewind files on later turns Generated with [Devin](https://devin.ai) Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com> --------- Co-authored-by: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>