Skip to content

feat(#244): Add animated spinners with elapsed time to sequant run - #246

Merged
admarble merged 1 commit into
mainfrom
feature/244-animated-spinners-elapsed-time
Feb 2, 2026
Merged

admarble merged 1 commit into
mainfrom
feature/244-animated-spinners-elapsed-time

Conversation

@admarble

@admarble admarble commented Feb 2, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Add PhaseSpinner utility class that provides animated spinners with elapsed time tracking for sequant run phase execution
  • Replace static "⏳ phase..." text with animated ora spinners showing progress and duration
  • Integrate with ShutdownManager for graceful Ctrl+C cleanup
  • Support pause/resume for verbose streaming output to prevent terminal corruption

Changes

New Files

  • src/lib/phase-spinner.ts - PhaseSpinner class with elapsed time tracking
  • src/lib/phase-spinner.test.ts - 35 unit tests for PhaseSpinner

Modified Files

  • src/commands/run.ts - Integrate PhaseSpinner into phase execution

AC Coverage

AC Description Status
AC-1 Phase execution shows animated ora spinner ✅ MET
AC-2 Spinner text includes elapsed time (5s updates) ✅ MET
AC-3 Active phase text is prominent (cyan) ✅ MET
AC-4 Phase progress shown (e.g., "spec (1/3)") ✅ MET
AC-5 Completion shows checkmark with duration ✅ MET
AC-6 Graceful fallback in CI/non-TTY ✅ MET (via cli-ui)
AC-7 Verbose mode uses text-only output ✅ MET (via cli-ui)
AC-8 Verbose mode pauses spinner during streaming ✅ MET
AC-9 Parallel mode uses sequential spinners ✅ MET
AC-10 Elapsed time interval cleaned up ✅ MET
AC-11 Spinner registered with ShutdownManager ✅ MET
AC-12 Auto-detect flow handles nested contexts ✅ MET
AC-13 Quality loop iterations show transitions ✅ MET
AC-14 Unit tests mock ora spinner ✅ MET

Test plan

  • Unit tests pass (35 tests for PhaseSpinner)
  • Build passes (npm run build)
  • All existing tests pass (1101/1104 - 3 pre-existing semgrep timeouts)
  • Manual test: Run sequant run <issue> and verify animated spinner appears
  • Manual test: Verify spinner shows elapsed time updating
  • Manual test: Verify Ctrl+C cleanly stops spinner

Closes #244

🤖 Generated with Claude Code

- Create PhaseSpinner utility class that wraps ora spinner
- Add elapsed time tracking with 5-second update interval
- Show phase progress indicator (e.g., "exec (2/3)")
- Format elapsed time as human-readable (45s, 2m 15s, 1h 5m)
- Integrate with ShutdownManager for graceful Ctrl+C cleanup
- Support pause/resume for verbose streaming output
- Add quality loop iteration display for retry visibility
- Include 35 unit tests for PhaseSpinner class

Closes #244

Co-Authored-By: Claude Opus 4.5 <[email protected]>
@admarble
admarble merged commit a7a541b into main Feb 2, 2026
6 checks passed
@admarble
admarble deleted the feature/244-animated-spinners-elapsed-time branch February 2, 2026 07:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat: Add animated spinners and elapsed time to sequant run phase execution

1 participant