Repository navigation
Closed
Labels
cliCLI commands and interfacecomplexHigh complexity featureenhancementNew feature or requestplannedImplementation plan approvedready-for-reviewReady for code reviewuiUser interface and visualization
Description
Summary
The CLI output uses dated formatting patterns — emoji-heavy status indicators, boxen borders, heavy dividers, and inconsistent visual language across commands. The sequential/chain mode display (ora spinners, phase counters, clean layout) is the modern baseline; parallel mode and most other commands haven't caught up.
Observed: Running sequant run in parallel mode produces noisy output with ● bullets, ⏳ Still running... heartbeats every 60s, and Progress: lines that get corrupted on long runs. Sequential/chain mode (ora ✔/✖, (1/3) counters) is already clean.
Scope
Priority 1: Run command parallel mode (src/commands/run.ts lines 818-957)
| Current | Target |
|---|---|
● #151: exec started |
Ora spinner or ▸ #151 exec with right-aligned timing |
● #151: exec ✓ (46s) |
✔ #151 exec 46s (ora succeed) |
Progress: #151 ⏳ #152 ✓ #153 ⏳ |
Compact status line: #151 ✔ #152 ▸ #153 · |
⏳ Still running... (2m elapsed) (every 60s) |
Suppress or reduce to every 5m; show only when no phase events in window |
✓ Issue #152 completed (2m 2s) |
Fold into phase progress, no separate line |
📂 Preparing worktrees from main... |
Preparing worktrees... (no emoji) |
✅ Branch rebased onto origin/main |
Rebased onto origin/main (no emoji) |
Priority 2: CLI UI foundation (src/lib/cli-ui.ts)
These changes propagate to all commands that use the ui namespace:
| Element | Current | Target |
|---|---|---|
headerBox() |
Boxen with ╭──╮ round borders |
Bold title only (e.g. sequant run) or minimal single-line rule |
divider() |
Heavy ━━━━━━━━━━ (U+2501) |
Light ───────── (U+2500) |
statusIcon() |
✓ / ✗ / ⚠ / ○ / ◐ |
✔ / ✖ / ! / · / ▸ — consistent with ora output |
phaseProgress() |
● / ○ / ✗ / - circles |
Align with new statusIcon set |
| Config display | Wall of indented chalk.gray() lines |
Columnar key-value alignment |
Priority 3: Run command summary (src/commands/run.ts lines 1071-1135)
| Current | Target |
|---|---|
Double ━━━━━━━━━ dividers around "Summary" |
Single light ───── divider |
Results: 3 passed, 0 failed |
3 passed · 0 failed (inline dot separator) |
✓ #151: exec → qa → PR #160 (13m 38s) |
Same structure but with new icon set |
📝 Log: .sequant/runs/... |
Log: .sequant/runs/... (no emoji) |
💡 Verify batch integration... |
Tip: Verify batch integration... |
Priority 4: Batch executor sequential display (src/lib/workflow/batch-executor.ts)
- Line 400:
chalk.blue(\\n Issue #${issueNumber}`)` → match new issue header style - Line 429:
⚠️ State tracking error→! State tracking error - Lines 454-461: Gray phase detection messages → align with config display style
Priority 5: Other commands
Each command should adopt the updated cli-ui primitives. Specific dated patterns:
| Command | File | Key Issues |
|---|---|---|
| init | src/commands/init.ts |
📦, ⚡, logDefault() uses 📦; wizard dependency status uses mixed symbols |
| sync | src/commands/sync.ts |
🔄, 📢, ✅, 📥, 📄 emojis throughout |
| update | src/commands/update.ts |
7+ emoji types (🔄, 📢, 📝, 🌐, ✨, 🔒, ✅); busiest output |
| state | src/commands/state.ts |
🔍 header, ✅ confirmations, |
| status | src/commands/status.ts |
Mixed modern phase symbols + dated |
| doctor | src/commands/doctor.ts |
Modern boxes but |
| logs | src/commands/logs.ts |
✓/✗/~ status indicators |
| conventions | src/commands/conventions.ts |
|
| dashboard | src/commands/dashboard.ts |
📊 header emoji |
| wizard | src/lib/wizard.ts |
Inconsistent !/✓/✗/○/→ symbols |
| bin/cli.ts | bin/cli.ts |
Priority 6: Worktree manager (src/lib/workflow/worktree-manager.ts)
- Verbose logging uses raw
chalk.gray()— should usecolors.muted()from cli-ui - Worktree creation/reuse summary messages — align with new style
Design Principles
- No emoji in structured output — use typographic symbols (
✔,✖,▸,·,!) that align properly in monospace - Ora is the source of truth — success/fail symbols should match what ora produces
- Columnar alignment — config key-value pairs should be padded for readability
- Minimal chrome — no boxes, light dividers, bold titles instead of bordered headers
- Quiet by default — heartbeats only when genuinely idle; phase events are the primary progress signal
- Graceful degradation — noColor, non-TTY, CI, and verbose modes must still work
Acceptance Criteria
- Parallel mode: Phase progress uses ora-consistent symbols; no
●bullets or⏳emoji - Parallel mode: Heartbeat interval increased to 5m or suppressed when phase events occur within window
- Parallel mode: Progress line uses new icon set (
✔/▸/·), no emoji - Header:
headerBox()produces a bold title without boxen borders - Divider:
divider()uses light─(U+2500) instead of heavy━(U+2501) - Status icons:
statusIcon()returns ora-consistent symbols across all types - Config display: Key-value pairs in run command use columnar alignment
- Summary: Light divider, no emoji in log/tip lines
- All commands: No decorative emoji (📦🔄📢📝🌐🔍📊💡📂✅) in structured output
- Sequential/chain mode: No regression — already-clean display stays clean
- No-color mode: All new symbols have text fallbacks
- CI mode: Minimal output still works
- Non-TTY: Text spinners use updated icon set
- Existing tests pass; update snapshot tests if any
Non-Goals
- Changing the information content or control flow of any command
- Adding new commands or features
- Changing the ASCII logo or brand colors
- Animated progress bars or complex TUI elements
Metadata
Metadata
Assignees
Labels
cliCLI commands and interfacecomplexHigh complexity featureenhancementNew feature or requestplannedImplementation plan approvedready-for-reviewReady for code reviewuiUser interface and visualization
Activity
admarble commentedon Apr 7, 2026
Spec Plan — #495: Modernize CLI output formatting
AC Quality Check
All 14 AC items are clear and testable. No vague or unmeasurable language detected.
Scope Assessment
Non-Goals (from issue):
Scope Metrics
Verdict: ❌ SCOPE_SPLIT_RECOMMENDED — 14 AC items across 21 files is high, but this is a single cohesive change (formatting consistency) with no behavioral changes. The issue explicitly defines 6 priority tiers for incremental implementation. Quality Loop: auto-enabled.
Acceptance Criteria
AC-1: Parallel mode phase progress symbols
Verification: Integration Test
run.tsparallel mode callbackonPhaseProgress▸/✔/✖instead of●bullets; no⏳emojiAC-2: Heartbeat interval
Verification: Unit Test
AC-3: Parallel progress line icons
Verification: Unit Test
renderProgressLine()in run.ts✔/▸/·— no emoji charactersAC-4: headerBox without boxen
Verification: Unit Test
headerBox("Title")╭──╮borders; boxen dependency can be removed from headerBox pathAC-5: Light divider
Verification: Unit Test
divider(50)─(U+2500) not━(U+2501)AC-6: statusIcon ora-consistent
Verification: Unit Test
statusIcon("success" | "error" | "warning" | "pending" | "running")✔/✖/!/·/▸respectively (matching ora output)AC-7: Config display columnar
Verification: Manual Test
sequant runconfig display section (lines 492-535)AC-8: Summary formatting
Verification: Unit Test
─divider;Log:without 📝;Tip:without 💡;3 passed · 0 failedinline formatAC-9: No decorative emoji
Verification: Integration Test (grep)
AC-10: Sequential/chain no regression
Verification: Integration Test
AC-11: No-color text fallbacks
Verification: Unit Test
configureUI({ noColor: true })[OK],[FAIL],[..],[-])AC-12: CI mode
Verification: Unit Test
configureUI({ isCI: true })AC-13: Non-TTY spinners
Verification: Unit Test
TextSpinnerclass, non-TTY mode▸/✔/✖/!(new icon set), not⏳/✓/✗/⚠AC-14: Tests pass
Verification: Integration Test
npm testImplementation Plan
Phase 1: CLI UI Foundation (Priority 2 — do first, others depend on it)
Update
statusIcon()insrc/lib/cli-ui.ts(line 566-594)✓→✔,✗→✖,⚠→!,○→·,◐→▸Update
divider()insrc/lib/cli-ui.ts(line 611-617)━(U+2501) →─(U+2500)Update
headerBox()insrc/lib/cli-ui.ts(line 427-430)Update
phaseProgress()insrc/lib/cli-ui.ts(line 644-665)●→✔,✗→✖,◐→▸,○→·Update
TextSpinnerclass (line 216-264)start():⏳→▸succeed():✓→✔fail():✗→✖warn():⚠→!Update
successBox/errorBox/warningBox(lines 403-422)✅,❌,⚠️)Update
cli-ui.test.ts— Adjust assertions for new symbolsPhase 2: Run Command Parallel Mode (Priority 1)
Update
onPhaseProgresscallback (run.ts lines 873-884)●with▸/✔/✖based on event type✓/✗emoji suffixesUpdate
renderProgressLine(run.ts lines 818-826)✓/⏳with✔/▸/·Update heartbeat (run.ts lines 888-895)
⏳with plain textUpdate per-issue completion (run.ts lines 843-860)
Phase 3: Run Command Summary + Config (Priority 3)
Update summary section (run.ts lines 1071-1135)
ui.divider()so Phase 1 covers this)📝 Log:→Log:💡 Verify...→Tip: Verify...3 passed · 0 failedUpdate config display (run.ts lines 492-535)
⚠️in dry run / warnings with!Phase 4: Batch Executor + Worktree Manager (Priority 4, 6)
Update
batch-executor.ts(line 429)⚠️with!Update
worktree-manager.ts(~38 emoji instances)📂→remove,🔄→remove,✅→✔,⚠️→!,📦→remove,📊→removecolors.muted()where rawchalk.gray()is usedUpdate
log-writer.ts(6 instances)📝prefixes with plain textPhase 5: All Other Commands (Priority 5)
init.ts(9 instances) — Replace📦→remove,⚠️→!,🔍→removesync.ts(8 instances) — Replace🔄→remove,📢→remove,✅→✔,📥→remove,📄→remove,⚠️→!update.ts(16 instances) — Replace all 7+ emoji types with text equivalentsstate.ts(3 instances) — Replace🔍→remove,🔄→remove,📊→removestatus.ts(9 instances) — Replace⚠️→!,📊→removedoctor.ts(1 instance) — Replace⚠️→!logs.ts(1 instance) — Replace📝→removedashboard.ts(1 instance) — Replace📊→removebin/cli.ts(1 instance) — Replace⚠️→!wizard.ts— Already mostly clean; verify!/✓/✗/○/→match new setphase-executor.ts,metrics-writer.ts,state-manager.ts,state-rebuild.ts,state-cleanup.tsPhase 6: Verification
Design Review
Where does this logic belong? Primarily
src/lib/cli-ui.ts(centralized UI primitives) plus consumers insrc/commands/andsrc/lib/workflow/. The cli-ui module is the single source of truth for symbols — commands that use raw chalk + emoji get migrated to use cli-ui exports.What's the simplest correct approach? Change the symbol constants in cli-ui.ts first, then find-and-replace emoji in consumers. No new abstractions needed. The existing
statusIcon(),divider(),phaseProgress()APIs stay the same — only return values change.What existing pattern does this follow? Sequential/chain mode already uses ora spinners with
✔/✖. This extends that pattern to parallel mode and all commands. TheTextSpinnerclass mirrors ora's API — aligning its symbols to match ora output.What would a senior reviewer challenge? (1) "Why not extract all symbols into a single config object?" — Overkill;
statusIcon()already centralizes access. (2) "Should boxen be fully removed?" — Only fromheaderBox();box()still uses it for success/error/warning boxes. (3) "Can the heartbeat suppression add complexity?" — Keep it simple: just track last phase event timestamp.Feature Quality Planning
Completeness Check
Error Handling
Code Quality
Test Coverage Plan
Best Practices
Derived ACs
None — the 14 AC items cover all required changes.
Open Questions
headerBox boxen removal scope
headerBox(). Keep it forsuccessBox/errorBox/warningBoxsince those are used for important notices.Heartbeat suppression vs interval increase
lastPhaseEventTime.Recommended Workflow
Phases: spec → exec → qa
Quality Loop: enabled (auto-enabled due to scope: 14 AC, 21 files)
Reasoning: No browser UI involved (CLI output formatting). Skip
/testphase. Quality loop warranted due to high file count — easy to miss an emoji in one of 21 files.Label Review
Current: enhancement, cli, ui, complex
Recommended: No changes needed.
complexlabel correctly reflects the scope.uilabel present but this is CLI-only (no browser test needed due to no.tsxchanges).Quality Loop: Auto-enabled due to
complexlabel.Conflict Risk Analysis
In-flight worktrees: #483, #485, #486 — all have zero diffs from main (just started). No file overlap risk.
feat(#495): modernize CLI output formatting across all commands
admarble commentedon Apr 7, 2026
QA Review for Issue #495
AC Coverage
▸/✔/✖in onPhaseProgress, no●or⏳✔/·in renderProgressLine, no emoji\u2500(─) replaces\u2501(━)✔/✖/!/·/▸for success/error/warning/pending/runningLog:andTip:without emoji, inlineN passed · N failed▸/✔/✖/!in start/succeed/fail/warnCoverage: 14/14 AC items fully met
Quality Metrics
Test Coverage
Note: Files without direct tests received only cosmetic changes (emoji→text). The core logic file cli-ui.ts has comprehensive test coverage.
Code Review
Strengths:
Issues:
Suggestions (non-blocking):
Self-Evaluation
CHANGELOG Verification
Verdict: READY_FOR_MERGE
All 14 AC items met. Purely cosmetic formatting changes with zero behavioral impact. Build, lint, and all 2410 tests pass. CI typecheck and validation checks passing; build checks in progress.
fix(#495): update wizard symbols and fix verbose message double-wording
admarble commentedon Apr 8, 2026
Documentation Generated
File:
docs/features/cli-output-formatting.mdSections Included:
Next Steps:
Documentation complete!
docs(#495): add CLI output formatting reference
fix(#529): broaden awk AC-header regex to match #### and **AC-N** styles
feat(#529): enforce manual-test AC gate in QA skill (#547)
fix(#529): broaden awk AC-header regex to match #### and **AC-N** styles