Repository navigation
fix: Realign wt delete Human Copy to Stderr - #38
Merged
Merged
Conversation
There was a problem hiding this comment.
Pull request overview
This PR realigns wt delete CLI output to follow the toolkit stream-discipline rule (“stdout is data, stderr is diagnostics”) by moving all non-error human-facing copy from stdout to stderr, and updates tests/docs to pin and document the new behavior.
Changes:
- Redirected all non-error
wt deleteprogress/summary/hint output insrc/cmd/wt/delete.gofrom stdout to stderr (including the SIGINT framing newline). - Updated
delete_test.goto assert empty stdout on a representative successful non-interactive delete path, and switched the two “No idle worktrees …” assertions to stderr. - Added/updated fab change artifacts and memory docs to record the closed
[ohwb]gap and the newwt deleteoutput contract.
Reviewed changes
Copilot reviewed 9 out of 9 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
| src/cmd/wt/delete.go | Moves non-error human output from stdout to stderr across delete handlers. |
| src/cmd/wt/delete_test.go | Updates assertions to reflect stderr output; adds explicit stdout-emptiness guard. |
| fab/changes/260717-ohwb-delete-copy-stderr-realign/plan.md | Captures requirements/tasks/acceptance for the stream realignment. |
| fab/changes/260717-ohwb-delete-copy-stderr-realign/intake.md | Introduces intake record describing the motivation and scope. |
| fab/changes/260717-ohwb-delete-copy-stderr-realign/.status.yaml | Tracks fab change status/metrics for this work item. |
| fab/changes/260717-ohwb-delete-copy-stderr-realign/.history.jsonl | Records fab stage transition history for the change. |
| docs/memory/wt-cli/toolkit-standards-conformance.md | Updates principle №2 record to reflect [ohwb] gap closure. |
| docs/memory/wt-cli/idle-staleness-contract.md | Notes that the stale empty-state message is now emitted on stderr. |
| docs/memory/wt-cli/create-output-phases.md | Extends stream-discipline documentation to cover full wt delete realignment. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Move all non-error progress/summary output in delete.go to stderr, closing the toolkit principle No.2 gap deferred from 260709-6end. Wording, colors, and framing are unchanged — only the stream flips. stdout is now empty on every wt delete path.
sahil87
force-pushed
the
260717-ohwb-delete-copy-stderr-realign
branch
from
July 18, 2026 05:04
6124f1c to
3f38cb7
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.
Meta
ohwbexcludes
fab/,docs/· generated by fab-kit v2.15.5Pipeline: intake ✓ → apply ✓ → review ✓ → hydrate ✓ → ship → review-pr
Summary
wt deleteviolated toolkit principle No.2 (stdout is data, stderr is diagnostics) by printing all of its progress/summary copy to stdout. This closes the gap deferred from the toolkit-standards conformance audit (260709-6end) by moving every non-error human-copy call site indelete.gofromfmt.Printf/fmt.Printlntofmt.Fprintf/fmt.Fprintln(os.Stderr, ...), leavingwt delete's stdout empty on every path.Changes
src/cmd/wt/delete.go— stdout → stderr at every non-error human-copy call sitemenu.go), no copy rewording or behavior changessrc/cmd/wt/delete_test.go(and integration guard)