Skip to content

Conversation

axin7
Copy link
Contributor

@axin7 axin7 commented Sep 21, 2025

Summary

Fixes issue where streamed content bottom couldn't reach viewport during message streaming.

Changes

  • Implement dual-phase scrolling: virtualizer positioning + native scroll to bottom
  • Reduce excessive bottom padding from pb-40 to pb-20 for better viewport usage
  • Unify scroll behavior across auto-scroll, history loading, and manual scroll
  • Fix issue where streamed content bottom couldn't reach viewport

Technical Details

The fix implements a two-step scrolling approach:

  1. Use rowVirtualizer.scrollToIndex() to quickly position near the target
  2. Follow with scrollElement.scrollTo() to ensure absolute bottom is reached

This maintains virtualization performance while guaranteeing content visibility.

…ibility

- Implement dual-phase scrolling: virtualizer positioning + native scroll to bottom
- Reduce excessive bottom padding from pb-40 to pb-20 for better viewport usage
- Unify scroll behavior across auto-scroll, history loading, and manual scroll
- Fix issue where streamed content bottom couldn't reach viewport
- Add IME composition state tracking to prevent premature submission during input composition
- Handle onCompositionStart/End events in text inputs and textareas
- Replace onKeyPress with onKeyDown to better handle IME interactions
- Add proper IME detection in FloatingPromptInput for enhanced input handling
- Fix issues with Enter key triggering actions during IME composition in:
  - AgentExecution task input
  - ClaudeCodeSession fork dialog
  - TimelineNavigator checkpoint creation
  - WebviewPreview URL input
  - FloatingPromptInput main textarea

This ensures proper input behavior for users of CJK input methods and other IME systems.
@123vivekr 123vivekr merged commit 9f03d77 into winfunc:main Sep 26, 2025
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.

3 participants