Skip to content

fix: write CLI failures to Output and register MCP after install - #238

Merged
SebTardif merged 5 commits into
mainfrom
fix/improve-mpi-20260827-s1802
Aug 28, 2026
Merged

SebTardif merged 5 commits into
mainfrom
fix/improve-mpi-20260827-s1802

Conversation

@SebTardif

Copy link
Copy Markdown
Contributor

Summary

CLI results that already opened the Patchloom output channel now write stdout/stderr when trace.server is off (patch-merge hard errors and batch apply). Managed-install redirects stay on GitHub release hosts. Native MCP registers even if the CLI is installed later in the session. Empty batch plans no longer report success.

Why

After PR #237, success and conflict paths wrote to Output, but some failures still called show() on an empty channel. First-run Install never attached the native MCP provider until reload. Local docs called npm run check the full merge gate.

The change

  • Patch-merge errors and batch apply use presentCliResultInOutput
  • User-facing streams are line-split without a timestamp prefix
  • Redirect hops are resolved and allowlisted (GitHub + known release CDNs)
  • Native MCP provider always registers; binary path refreshes after managed install
  • Empty or whitespace-only batch plans warn and return
  • Settings and README no longer imply every CLI stream is trace-gated
  • AGENTS.md and CONTRIBUTING.md distinguish unit check / test from extension and UI CI
  • formatCliOutput says try <op> instead of suggested_op: <op>

Verification

  • npm run check (368 passed, 6 skipped)

Checklist

  • All commits in this pull request are signed off with git commit -s
  • I ran npm run check and it passes
  • I updated docs if user-facing behavior changed
  • I am contributing this work under the repository license (MIT)

Hard errors that already opened the channel now write stdout/stderr
when trace is off. Settings copy no longer implies every CLI stream
is trace-gated.

Signed-off-by: Sebastien Tardif <sebtardif@ncf.ca>
Followed Location headers must stay on GitHub release hosts.
Relative redirects are resolved against the current URL.

Signed-off-by: Sebastien Tardif <sebtardif@ncf.ca>
Signed-off-by: Sebastien Tardif <sebtardif@ncf.ca>
Always register the MCP server definition provider when the VS Code API
exists, resolve the binary path on demand, and refresh after managed
install/update/reinstall so native MCP works without a window reload.

Signed-off-by: Sebastien Tardif <sebtardif@ncf.ca>
Warn and return when a batch plan has no operations, surface suggested_op
as a try-next-step toast, and align CONTRIBUTING.md test script docs with
package.json (unit-only npm test; UI tests outside test:all).

Signed-off-by: Sebastien Tardif <sebtardif@ncf.ca>
@SebTardif
SebTardif marked this pull request as ready for review August 28, 2026 01:19
@SebTardif
SebTardif enabled auto-merge (squash) August 28, 2026 01:19
@SebTardif
SebTardif merged commit 1f6f06f into main Aug 28, 2026
22 checks passed
@SebTardif
SebTardif deleted the fix/improve-mpi-20260827-s1802 branch August 28, 2026 01:23
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