You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[gobby-cli-#121] fix(gsqz): Suppress outer compression header for */no-op strategy
Follow-up to #111. The inner [gsqz:low-savings] marker is suppressed
when adding it would grow output, but the outer
"[Output compressed by gsqz -- STRATEGY, X% reduction]" header was
still being prepended for the resulting */no-op strategy. That's
noise -- no compression actually happened, so the header is just
spurious.
Adds CompressionResult::is_passthrough() classifying passthrough,
excluded, and */no-op together. main.rs now uses it for both the
outer-header decision and the daemon savings report so the two stay
in sync. Adds a unit test for the classification and asserts the
existing low-savings-suppressed test result also reports as
passthrough.
Rolls into the unreleased 0.4.1 -- no version bump. Tests: 149 in
gsqz (+1 new), 268 across the workspace, all passing. Verified
end-to-end: the compound-git command that previously emitted
"git-mutation/low-savings, -1% reduction" now emits clean original
output (strategy=git-mutation/no-op, savings=0.0%, no header).
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Copy file name to clipboardExpand all lines: CHANGELOG.md
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -34,6 +34,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
34
34
#### gsqz
35
35
36
36
-**Low-savings marker** — Suppress `[gsqz:low-savings]` marker when prepending it would grow the output beyond the original. The marker now only annotates when the annotation itself doesn't make things worse. (#111)
37
+
-**Outer compression header for `/no-op` strategy** — When the low-savings marker is suppressed (above), the resulting `{pipeline}/no-op` strategy now also skips the outer `[Output compressed by gsqz — …, 0% reduction]` header and the daemon savings report. The user sees the original output verbatim. `CompressionResult::is_passthrough()` classifies `passthrough`, `excluded`, and `*/no-op` together so both call sites stay in sync. (#121)
Copy file name to clipboardExpand all lines: docs/guides/gsqz-user-guide.md
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -288,6 +288,7 @@ The `--stats` flag prints to stderr:
288
288
Strategy names to look for:
289
289
- A pipeline name (e.g. `git-status`, `pytest`, `cargo-test`) — matched and compressed
290
290
- `{name}/low-savings`— pipeline matched but compression was marginal (<5%)
291
+
- `{name}/no-op`— pipeline matched but adding the low-savings marker would have grown the output, so the original is surfaced verbatim (no header, no daemon report)
291
292
- `{name}/on_empty`— pipeline produced empty output, on_empty fallback used
0 commit comments