Skip to content

fix(sync): capture build and hook child output - #152

Merged
srnnkls merged 2 commits into
mainfrom
fix/sync-child-output
Nov 25, 2026
Merged

srnnkls merged 2 commits into
mainfrom
fix/sync-child-output

Conversation

@srnnkls

@srnnkls srnnkls commented Nov 22, 2026 •

Copy link
Copy Markdown
Owner

Summary

  • Build programs and hooks run with stdout/stderr captured (src/sync/child.rs) instead of writing through to the terminal.
  • The human sync view (src/cli/render/sync_view.rs) groups the run into Sources, Targets, Hooks and Warnings sections; each build (under Sources) and hook is a row with scope and duration; failed commands show their captured output below the row.
  • Removal rows carry their reason when it is not a prune, e.g. - b.md no longer in the linked source's offer.
  • Interactive conflict and trust prompts suspend the progress display while they read input.
  • Warning formatters return bare messages; only plain stderr lines carry the phora: prefix, so --json warning message fields no longer start with it.
  • indicatif replaced by console; goldens, scrut docs and the README hook example follow the new output.

Build programs and hooks now run with stdout/stderr captured instead of
writing through to the terminal. The sync renderer reports each command
as a row with scope and duration under its section, and shows captured
output only for failed commands. Interactive conflict and trust prompts
suspend the progress display while they read input.

Replaces indicatif with console for the progress renderer.
Warning formatters return the bare message; the plain-line emitters
prefix it, and the sync view renders it without stripping. JSON warning
messages no longer carry the prefix.
@srnnkls
srnnkls marked this pull request as ready for review November 25, 2026 20:57
Copilot AI balanced review requested due to automatic review settings November 25, 2026 20:57

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota. Try requesting a review at a lower effort level.

@srnnkls
srnnkls merged commit f0d745f into main Nov 25, 2026
16 of 18 checks passed
@srnnkls
srnnkls deleted the fix/sync-child-output branch November 25, 2026 21:04
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.

2 participants