Files
ruflo/v3/@claude-flow
ReuvenandRuFlo 2804d85f17 fix(3.7.0-alpha.14): auto-compact statusline on narrow terminals
Closes #1153.

`ruflo hooks statusline` outputs 5+ lines of full-width formatted
content by default. On narrow terminals (≤80 cols, common in tmux
splits and side-by-side layouts) the lines wrap awkwardly and consume
6-7 lines of vertical space.

Fix: `commands/hooks.ts` statusline now reads `process.stdout.columns`
and auto-collapses to the existing single-line `compact` format when
the terminal is narrower than 100 cols. New `--full` flag overrides
this auto-detection for users who prefer the multi-line output even on
narrow terms. `--compact` and `--json` continue to work as explicit
overrides; default behavior on wide terminals is unchanged.

Verification (this repo, both modes):
  COLUMNS=80 statusline (no flag)  → "DDD:3/5 CVE:0/3 Swarm:1/15 Ctx:50% Int:10%"
  COLUMNS=80 statusline --full     → 5-line multi-line output preserved
  COLUMNS=200 statusline (no flag) → 5-line multi-line (auto-detected wide)

Build clean.

Published @claude-flow/cli@3.7.0-alpha.14, claude-flow@3.7.0-alpha.14,
ruflo@3.7.0-alpha.14 with all dist-tags.

Co-Authored-By: RuFlo <ruv@ruv.net>
2026-05-08 10:12:11 -04:00
..