Commit 5b0aeaf
fix(cli): Add scrolling and text wrapping to task management view (#203)
## Summary
- ✅ Add viewport support for scrolling long task conversation histories
in task management view
- ✅ Implement keyboard shortcuts for easy navigation (↑↓/j/k, PgUp/PgDn,
g/G)
- ✅ Fix text wrapping to prevent content from being cut off at screen
edge
- ✅ Keep footer with keyboard hints fixed at bottom (non-scrolling)
- ✅ Bump golangci-lint from v2.5.0 to v2.6.0 (resolves false positive
linting issues)
## Changes
### Task Management View Enhancements
1. **Scrolling Support**
- Added Bubble Tea viewport component to enable scrolling through long
task histories
- Viewport updates dimensions on window resize
2. **Keyboard Navigation**
- `↑`/`k` and `↓`/`j` - Line-by-line scrolling
- `PgUp`/`b` and `PgDn`/`f`/`Space` - Page scrolling
- `g` - Jump to top
- `G` - Jump to bottom
3. **Text Wrapping**
- Applied responsive text wrapping using
`shared.FormatResponsiveMessage()`
- Adjusted text width calculation to account for indentation and
viewport margins
- Prevents text from being cut off at screen edge
4. **Fixed Footer**
- Separated footer from scrollable content
- Footer with keyboard hints always visible at bottom
### Linter Updates
- Updated flox environment manifest to use golangci-lint v2.6.0
- Updated CI workflow to use golangci-lint v2.6.0
- Resolves SA5011 false positive staticcheck issues in test files
## Test Plan
- [x] Built successfully with `go build`
- [x] Linting passes with `task lint`
- [x] Text wraps correctly within viewport bounds
- [x] Scrolling works with all keyboard shortcuts
- [x] Footer stays fixed at bottom
- [x] Window resize updates viewport dimensions properly
## Fixes
Resolves issue where:
- Long task conversation histories couldn't be scrolled
- Text was being cut off at the screen edge
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-authored-by: Claude <noreply@anthropic.com>1 parent 63c78b1 commit 5b0aeaf
File tree
4 files changed
+133
-98
lines changed- .flox/env
- .github/workflows
- internal/ui/components
4 files changed
+133
-98
lines changedSome generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
28 | | - | |
| 28 | + | |
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
64 | 64 | | |
65 | 65 | | |
66 | 66 | | |
67 | | - | |
| 67 | + | |
68 | 68 | | |
69 | 69 | | |
70 | 70 | | |
| |||
0 commit comments