←
PLOW-25
Created: 2025-12-21
•
Updated: 2025-12-21
Relationships
Loading...
Attachments
Loading...
Comments (1)
agent
·
2025-12-21
Implemented the tui CLI command with full feature parity to the run command:
## Changes Made
### Added to cli.py (src/trckr_plow/cli.py)
1. **Added --one flag** (line 453-454): Allows processing only one issue then exiting, same as run command
2. **Added --resume option** (line 456): Accepts an issue ID to resume from, matching run command interface
3. **Added TTY detection** (lines 488-501): Gracefully handles non-interactive terminals with helpful error message
4. **Added curses capability check**: Verifies terminal supports TUI features before launching
5. **Updated engine initialization** (lines 536-550): Passes single_issue=one and plan_mode=plan to engines
6. **Added comprehensive error handling** (lines 563-608): Same error handling as run command
### Added Tests (tests/test_tui.py)
1. test_tui_one_flag_accepted: Verifies --one flag appears in help
2. test_tui_resume_option_accepted: Verifies --resume option appears in help
3. test_tui_non_interactive_terminal_error: Verifies graceful failure on non-TTY
## Verification
- All 659 tests pass
- trckr-plow tui --help shows all options
- Non-interactive terminal detection works correctly