Repository navigation
Closed
Labels
cliCLI commands and interfaceenhancementNew feature or requestplannedImplementation plan approveduiUser interface and visualization
Description
Summary
The sequant run command shows static grayed-out text during phase execution with no visual feedback that work is happening. With phases taking 2-30+ minutes, users need clear indication the tool is working.
Current Behavior
Running spec to determine workflow...
⏳ spec...
█ ← just a cursor, no animation
- Static hourglass emoji (⏳) - no animation
- Text is faded gray - looks inactive/disabled
- No elapsed time indicator
- No phase progress (1/3, 2/3, etc.)
Expected Behavior
Issue #240
Worktree: /Users/tony/.../240-fix-loop-skill...
⠋ spec (1/3)... 2m 15s ← animated spinner + elapsed time
✓ spec completed (5m 30s)
⠋ exec (2/3)... 0:45
- Animated ora spinner (⠋ ⠙ ⠹ ⠸ cycling)
- Elapsed time updates every few seconds
- Phase progress indicator (1/3, 2/3, 3/3)
- Active text in prominent color, not grayed out
- Clear completion states with duration
Acceptance Criteria
Core Functionality
- Phase execution shows animated
oraspinner while running - Spinner text includes elapsed time, updating every 5-10 seconds
- Active phase text is prominent (cyan/white), not grayed out
- Phase progress shown (e.g., "spec (1/3)")
- Completion shows checkmark with total duration
Compatibility
- Graceful fallback to static text in CI/non-TTY environments
- Verbose mode uses text-only output (no spinner animation)
Plan Gap AC (Technical Edge Cases)
- Verbose mode pauses/hides spinner during SDK streaming output (line 1022-1024 conflict)
- Parallel mode uses sequential spinners (one at a time) - multiple ora spinners corrupt terminal
- Elapsed time interval cleaned up in all exit paths (success, fail, timeout, interrupt)
- Spinner registered with ShutdownManager for graceful Ctrl+C cleanup
- Auto-detect flow handles nested spinner contexts (spec first, then remaining phases)
- Quality loop iterations show clear spinner transitions between retries
- Unit tests mock ora spinner to verify start/succeed/fail calls
Technical Notes
src/lib/cli-ui.tsalready hasui.spinner()usingoralibrary- Changes needed in
src/commands/run.ts:executePhase()function (~line 892) - spinner lifecyclerunIssueWithLogging()function (~line 2104) - spinner per phase- Replace
chalk.gray("⏳ ${phase}...")withui.spinner() - Add elapsed time tracking with
setInterval() - Integrate with
ShutdownManagerfor cleanup
Key Code Locations
| Line | Current Code | Issue |
|---|---|---|
| 1022-1024 | process.stdout.write(chalk.gray(textContent)) |
Verbose streaming corrupts spinners |
| 2175 | chalk.gray("\⏳ spec...") |
Static emoji for auto-detect spec |
| 2343 | chalk.gray("\⏳ ${phase}...") |
Static emoji for phase loop |
Related Issues
- feat: Enhanced CLI UI with spinners, boxes, tables and ASCII branding #215 (completed CLI UI enhancement - added infrastructure but didn't wire up spinners in run.ts)
- AC-7 from feat: Enhanced CLI UI with spinners, boxes, tables and ASCII branding #215 was marked MET but spinners were never implemented or tested
Priority
High - This is the primary user-facing command and current UX feels broken/unresponsive during long operations.
Metadata
Metadata
Assignees
Labels
cliCLI commands and interfaceenhancementNew feature or requestplannedImplementation plan approveduiUser interface and visualization
Activity
admarble commentedon Feb 2, 2026
📋 Plan: Animated Spinners for Phase Execution
Acceptance Criteria
oraspinner while runningImplementation Plan
Phase 1: Create PhaseSpinner Utility
src/lib/phase-spinner.tswrappingui.spinner()setInterval(5s updates){phase} ({index}/{total})... {elapsed}Phase 2: Integrate in run.ts
Phase 3: ShutdownManager Integration
Phase 4: Quality Loop Transitions
Phase 5: Unit Tests
src/lib/phase-spinner.test.tsKey Files
src/lib/phase-spinner.ts(new)src/commands/run.ts(modify)src/lib/phase-spinner.test.ts(new)Assumptions
Generated by
/spec- Phase 1 Planningfeat(#244): Add animated spinners with elapsed time to sequant run
feat(#244): Add animated spinners with elapsed time to sequant run (#246
docs: Add animated phase spinners to changelog and what-weve-built
feat(#618): unified run renderer — two-zone live grid + events log (#620