[PR #5912] fix: Perform snapshot in cases finish-step is not reached #11641

Closed
opened 2026-02-16 18:16:32 -05:00 by yindo · 0 comments
Owner

Original Pull Request: https://github.com/anomalyco/opencode/pull/5912

State: closed
Merged: Yes


Fix for https://github.com/sst/opencode/issues/5911

When snapshots are enabled, we may have untracked files when a snapshot is set at start-step, but finish-step is never reached - for example due to a user cancellation.

This PR adds an explicit patch and updatePart at the end of the process method, if snapshot is still not undefined.

Tested against the script in https://github.com/sst/opencode/issues/5911

**Original Pull Request:** https://github.com/anomalyco/opencode/pull/5912 **State:** closed **Merged:** Yes --- Fix for https://github.com/sst/opencode/issues/5911 When snapshots are enabled, we may have untracked files when a snapshot is set at start-step, but finish-step is never reached - for example due to a user cancellation. This PR adds an explicit patch and updatePart at the end of the process method, if snapshot is still not undefined. Tested against the script in https://github.com/sst/opencode/issues/5911
yindo added the pull-request label 2026-02-16 18:16:32 -05:00
yindo closed this issue 2026-02-16 18:16:32 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#11641