Skip to content

fix: show search, undo, and patch-merge results without trace - #237

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

fix: show search, undo, and patch-merge results without trace#237
SebTardif merged 3 commits into
mainfrom
fix/improve-mpi-20260827-s1659

Conversation

@SebTardif

Copy link
Copy Markdown
Contributor

Summary

Search, search -L, undo, and patch-merge now write CLI stdout/stderr to the Patchloom output channel even when patchloom.trace.server is off. Patch-merge conflict details (exit 8) are included. UI and agent-rules tests fail on leftover toasts or argv-blind mocks.

Why

With the default trace level, search and undo showed an empty output channel. Patch merge told users to check the output for conflict details and then opened that empty channel.

The change

  • writeUserVisibleOutput / presentCliResultInOutput write streams regardless of trace
  • Search, search -L, undo, and patch-merge (success and exit 8) go through exported presenters
  • Unit tests lock presenter outcomes (including exit 8 writes)
  • UI tests drain leftover Show Status toasts and assert real Settings / command results
  • Agent-rules up_to_date re-runs generate and checks the execFile argv

Verification

  • npm run check (357 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)

Signed-off-by: Sebastien Tardif <sebtardif@ncf.ca>
Search, search -L, and undo toasts point at the Patchloom channel, but
executePatchloom only writes stdout when patchloom.trace.server is
verbose (default off). Always append those user-facing streams via
writeUserVisibleOutput before show(). Other CLI I/O still follows
trace.server.

Signed-off-by: Sebastien Tardif <sebtardif@ncf.ca>
Present search, undo, and patch-merge CLI streams through a shared
helper so default trace=off still shows results, including exit 8
conflicts. Unit tests lock the presenters, not only the log helper.

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