Skip to content

fix: stage outside patches under the gitignored directory - #318

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

SebTardif merged 3 commits into
mainfrom
fix/improve-mpi-20261022-s1327

Conversation

@SebTardif

@SebTardif SebTardif commented Oct 22, 2026 •

Copy link
Copy Markdown
Contributor

Summary

  • Patch apply and patch merge copy an outside patch under .patchloom/, which git already ignores. The old directory was .patchloom-<id>/ at the workspace root, so the copy showed up in source control during the preview and stayed if the editor quit before cleanup.
  • The unit test checks that the staged path is inside .patchloom/.
  • On Windows, a patchloom.cmd argument that ends in a backslash is quoted, and the trailing slashes are doubled, so cmd.exe does not swallow the next argument.
  • Dismissing the second-server warning cancels Configure MCP. Skip that file still drops only the VS Code workspace file.

Test plan

An outside patch was copied to .patchloom-<id>/ at the workspace root.
.gitignore only ignores .patchloom/, so the copy showed up in source
control during preview and stayed if the editor quit first.

npm run check: 505 tests, 92.97% lines.

Signed-off-by: Sebastien Tardif <sebtardif@ncf.ca>
github-actions[bot]
github-actions Bot previously approved these changes Oct 22, 2026
cmd.exe treats a trailing backslash as an escape. Through patchloom.cmd
that joined the path to the next argument, or ate the closing quote.
Those arguments are quoted and the trailing slashes are doubled.

npm run check: 505 tests, 92.96% lines.

Signed-off-by: Sebastien Tardif <sebtardif@ncf.ca>
github-actions[bot]
github-actions Bot previously approved these changes Oct 22, 2026
Escape on that question took the same path as Skip that file, so the
other selected configs were still written. Dismiss now cancels the
command. Skip still drops only the VS Code workspace file.

npm run check: 506 tests, 92.97% lines.

Signed-off-by: Sebastien Tardif <sebtardif@ncf.ca>
@SebTardif
SebTardif marked this pull request as ready for review October 22, 2026 21:13
@SebTardif
SebTardif merged commit 2c80211 into main Oct 22, 2026
25 of 26 checks passed
@SebTardif
SebTardif deleted the fix/improve-mpi-20261022-s1327 branch October 22, 2026 21:13
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