Skip to content

fix: stop Batch Apply when the plan changes after the dry run - #319

Merged
SebTardif merged 2 commits into
mainfrom
fix/improve-mpi-20261022-s1418
Oct 22, 2026
Merged

SebTardif merged 2 commits into
mainfrom
fix/improve-mpi-20261022-s1418

Conversation

@SebTardif

@SebTardif SebTardif commented Oct 22, 2026 •

Copy link
Copy Markdown
Contributor

Summary

  • Batch Apply dry-runs the open plan, then writes only if that text is unchanged. If you edit the plan after the dry run, Apply stops and asks for another dry run.
  • Quick Action preview reads the file on disk. Unsaved edits block the preview. If the file changes while the preview is open, Apply stops and asks for a new preview. A line-ending difference alone does not.

Test plan

The write used the text captured before the dry run. Edits in the
open plan were ignored. Apply now stops and asks for another dry run.

npm run check: 507 tests, 93.00% lines.

Signed-off-by: Sebastien Tardif <sebtardif@ncf.ca>
github-actions[bot]
github-actions Bot previously approved these changes Oct 22, 2026
The preview reads the file on disk, then Apply ran the command again
even if the editor or the disk copy had changed. Unsaved edits now
block the preview. A change while the preview is open blocks Apply.

npm run check: 508 tests, 92.99% lines.

Signed-off-by: Sebastien Tardif <sebtardif@ncf.ca>
@SebTardif
SebTardif marked this pull request as ready for review October 22, 2026 21:31
@SebTardif
SebTardif merged commit 7eb4906 into main Oct 22, 2026
24 of 25 checks passed
@SebTardif
SebTardif deleted the fix/improve-mpi-20261022-s1418 branch October 22, 2026 21:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant