Skip to content

Conversation

@brandonkachen
Copy link
Collaborator

Summary

Adds PageUp/PageDown keyboard shortcuts to scroll through chat history in the CLI.

Changes

  • cli/src/hooks/use-scroll-management.ts - New hook for managing scroll state with:

    • scrollOffset state tracking
    • scrollUp() / scrollDown() functions
    • resetScroll() to return to bottom
  • cli/src/hooks/use-chat-keyboard.ts - Added PageUp/PageDown key handlers

  • cli/src/utils/keyboard-actions.ts - Extended with scroll action types

  • cli/src/chat.tsx - Wired up scroll management hook

Usage

  • PageUp - Scroll up through chat history
  • PageDown - Scroll down through chat history

Testing

  • ✅ Typecheck passes

…history

- Add use-scroll-management.ts hook for scroll state management
- Update use-chat-keyboard.ts with PageUp/PageDown handlers
- Extend keyboard-actions.ts with scroll actions
- Wire up scroll management in chat.tsx
@brandonkachen brandonkachen merged commit 6034c19 into main Jan 12, 2026
26 checks passed
@brandonkachen brandonkachen deleted the brandon/cli-pageup-pagedown branch January 12, 2026 19:15
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.

2 participants