feat: add --log=interleaved|labeled|grouped modes#266
Draft
branchseer wants to merge 5 commits intomainfrom
Draft
feat: add --log=interleaved|labeled|grouped modes#266branchseer wants to merge 5 commits intomainfrom
--log=interleaved|labeled|grouped modes#266branchseer wants to merge 5 commits intomainfrom
Conversation
--log modes
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Remove stdio-detection, stdin-inheritance, and stdio-graph-criteria fixtures. Replace with interleaved-stdio, labeled-stdio, and grouped-stdio fixtures that systematically cover all stdio cases for each --log mode. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Add three output modes controlled by the --log flag: - interleaved (default): streams output directly, inherits stdio for uncached tasks - labeled: prefixes each line with [pkg#task], always piped - grouped: buffers output per task, prints as a block on completion Refactor reporter system: - Remove all_ancestors_single_node from reporter traits and execution - Rename LabeledReporter to InterleavedReporter (it was always interleaved) - Add new LabeledReporter with line-prefixing LabeledWriter - Add GroupedReporter with buffering GroupedWriter - Extract SummaryReporter as a decorator that wraps any mode reporter - Add Clone to CacheStatus and related types for summary tracking Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
--log modes--log=interleaved|labeled|grouped modes
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
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.

Summary
--logflag with three output modes:interleaved(default),labeled,groupedSummaryReporterdecoratorall_ancestors_single_nodegraph topology tracking — stdio inheritance is now mode-based--log=interleaved(default)Streams output directly. Uncached tasks inherit stdio (TTY), cached tasks pipe for capture/replay.
--log=labeledPrefixes each output line with
[pkg#task]. Always piped.--log=groupedBuffers all output per task and prints as a block on completion. Always piped.
Test plan
interleaved-stdio(8 cases),labeled-stdio(7 cases),grouped-stdio(7 cases)just lint-linux,just lint-windows)🤖 Generated with Claude Code