You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
725 B
Markdown
16 lines
725 B
Markdown
---
|
|
# claudbg-4gtn
|
|
title: 'TUI: Space/PageDown scrolls past end of transcript'
|
|
status: completed
|
|
type: bug
|
|
priority: normal
|
|
created_at: 2026-03-31T23:45:06Z
|
|
updated_at: 2026-04-01T05:51:55Z
|
|
---
|
|
|
|
Space/PageDown in the transcript view continues scrolling past the last line. It should stop at the bottom of the transcript content.
|
|
|
|
## Summary of Changes
|
|
|
|
In `src/tui/screens/transcript.rs`, the PageDown/Space handler now clamps scroll to the actual content length: computes `total_lines = build_chat_lines(...).len()` and `max_scroll = total_lines.saturating_sub(page_height)`, then applies `.min(max_scroll)` to prevent scrolling into empty space. Updated 3 existing tests to populate entries before testing scroll behavior.
|