Skip to content

Commit 5b0aeaf

Browse files
edenreichclaude
andauthored
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

4 files changed

+133
-98
lines changed

.flox/env/manifest.lock

Lines changed: 77 additions & 89 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.flox/env/manifest.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ gh.version = "2.82.1"
2525
gh.pkg-group = "vcs"
2626

2727
golangci-lint.pkg-path = "golangci-lint"
28-
golangci-lint.version = "2.5.0"
28+
golangci-lint.version = "2.6.0"
2929
golangci-lint.pkg-group = "linting"
3030

3131
pre-commit.pkg-path = "pre-commit"

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ jobs:
6464
- name: Install golangci-lint
6565
uses: golangci/golangci-lint-action@v8.0.0
6666
with:
67-
version: v2.5.0
67+
version: v2.6.0
6868
args: --timeout=5m
6969

7070
vet:

0 commit comments

Comments
 (0)