You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Chat client: fix scrolling behavior when typing after scroll-up #15
When the user scrolls up in the chat history to read previous messages and then starts typing a new message, the viewport scrolling behaves unexpectedly.
Steps to reproduce
Start a chat session: docsclaw chat --agent-url <url>
Send a message and receive a long response
Scroll up in the viewport to review the response
Start typing a new message
Observe unexpected scroll jumps
Likely cause
The viewport and text input components both receive keyboard events. When the user types after scrolling up, the viewport may be consuming key events or failing to snap back to the bottom properly. The updateViewport() method calls GotoBottom() only when new messages are added, not when the user starts typing.
Possible fix
Snap viewport to bottom when text input receives a keypress
Disable viewport key navigation while input is focused
Or use viewport's SetYOffset to force bottom on input activity
Activity
refactor: remove built-in chat TUI in favor of external clients (#88)