Skip to content

fix(ai): follow streaming preview output without manual scrolling - #145

Merged
LeoStehlik merged 1 commit into
masterfrom
fix/ai-preview-autoscroll-20261121
Nov 21, 2026
Merged

LeoStehlik merged 1 commit into
masterfrom
fix/ai-preview-autoscroll-20261121

Conversation

@LeoStehlik

Copy link
Copy Markdown
Contributor

Long Ask AI responses previously streamed below the visible preview, requiring manual scrolling to see new text. The preview now follows incoming text while the reader is near the bottom, pauses when they scroll up, and resumes when they return to the bottom. A new generation resets following, and the final chunk stays visible without moving the document or taking focus.

The change is limited to the result preview; URL retrieval, generation settings, and editor insertion behavior are unchanged.

Validation:

  • User confirmed the deployed behavior with a real streamed response.
  • Paced SSE browser checks cover follow, pause, resume, completion, and retry in WebKit and Chromium without inference requests.
  • Both browsers also exercise Insert below and Replace, including server persistence and a fresh browser reload.
  • Client TypeScript/production build passes.

Review tightened the browser fixture so each browser must finish its own streams, waits are bounded, and the temporary server and pages are cleaned up. The browser checks require a running authenticated workspace and are run locally; the existing GitHub AI regression workflow runs separately.

Complements #144, which added explicit URL retrieval and fixed insertion into collaborative documents.

@LeoStehlik
LeoStehlik merged commit e8e739d into master Nov 21, 2026
2 checks passed
@LeoStehlik
LeoStehlik deleted the fix/ai-preview-autoscroll-20261121 branch November 21, 2026 01:47
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.

1 participant