feat: improve non-interactive output for CI and agentic use - #8
Merged
Merged
Conversation
Rename --no-tui to --non-interactive to reflect its primary purpose: running under CI or being driven by an agent, not just avoiding the TUI. The status line no longer overwrites itself with a carriage return, which made no sense once output is captured to a log or read by a script/agent; it now prints one line per tick to stderr, on a configurable --status-interval, with change-suppression plus a periodic heartbeat so long runs do not flood the log with duplicate lines. Add -o/--output json for machine-readable JSON Lines output on stdout (status/log/summary events), so scripts and agents can consume progress and results without parsing human-oriented text.
golangci-lint's errcheck flagged the unchecked os.Stdout.Write call added for JSON Lines output; discard the return explicitly rather than adding error handling for a write that has nowhere useful to report a failure to.
boyvinall
force-pushed
the
non-interactive-output
branch
from
September 27, 2026 20:22
6293bf5 to
b93520c
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
--no-tuito--non-interactiveto reflect its primary purpose: running under CI or being driven by an agent, not just avoiding the TUI.--status-interval, with change-suppression plus a periodic heartbeat so long runs don't flood the log.-o/--output jsonfor machine-readable JSON Lines output on stdout (status/log/summaryevents), so scripts and agents can consume progress and results without parsing human-oriented text.--status-interval <= 0and a stdout write race in JSON mode; avoided an unnecessary fullSnapshot()call on each log line.