Skip to content

feat(bench-swe): add PTerm-based TUI progress component#43

Merged
aeneasr merged 3 commits intomainfrom
improve-iterm
Mar 17, 2026
Merged

feat(bench-swe): add PTerm-based TUI progress component#43
aeneasr merged 3 commits intomainfrom
improve-iterm

Conversation

@aeneasr
Copy link
Copy Markdown
Member

@aeneasr aeneasr commented Mar 16, 2026

Summary

  • Ports the PTerm-based Progress component from the main lumen module to bench-swe/internal/tui/
  • Provides progress bars, spinners, styled info/success/warn/error messages, and table rendering for bench-swe CLI commands
  • Automatically disables ANSI styling when output is not a terminal (piped/redirected)
  • Adds github.com/pterm/pterm and golang.org/x/term dependencies to bench-swe/go.mod
  • Resolves a .gitignore merge conflict, preserving all entries including .claude/*.local.json

Test plan

  • go build ./... passes in bench-swe/
  • All main module tests pass (go test ./...)

🤖 Generated with Claude Code

@aeneasr aeneasr enabled auto-merge (squash) March 16, 2026 21:31
aeneasr and others added 2 commits March 17, 2026 08:37
Port the lumen TUI progress component to the bench-swe module,
enabling structured terminal output with progress bars, spinners,
and styled status messages. Add pterm and golang.org/x/term
dependencies to bench-swe/go.mod.

Also resolve .gitignore merge conflict preserving all entries.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
…t leaks

- bench-swe run: replace streaming fmt.Print lines with progress bar +
  PTerm table output; add spinners for preflight and task loading phases
- bench-swe validate: use p.Error/Warn/Info/Complete instead of fmt.Printf
- bench-swe analyze: use p.Info/Complete instead of fmt.Printf
- cmd/index.go: route Done and UpToDate messages through p.Complete/p.UpToDate
  so all output goes to stderr via the TUI (fixes stdout leakage)

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Tests check stdout for "Done." and "up to date"; route only
progress/info through PTerm (stderr), keep final output on stdout.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@aeneasr aeneasr merged commit edb13dc into main Mar 17, 2026
4 checks passed
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.

1 participant