aaif-goose / aaif-goose/vscode-goose

fix(webview): keep chat pinned to bottom during streaming via ResizeObserver

Aberta Para iniciantes
#53 0 comentários 0 reações 0 responsáveis Ver no GitHub
Linguagem predominante
TypeScript
Estrelas
43
Forks
20
Métricas de merge de PRs
Nenhum PR com merge em 30d

Descrição

Extracted from #39. Auto-scroll currently only fires when the message count changes, so token growth inside an existing message (or content expanding) never re-pins the view.

Add an optional `contentRef` to `useAutoScroll` and a ResizeObserver that re-pins `scrollTop` on content height changes while streaming, unless the user has scrolled up. Reference implementation: `useAutoScroll.ts` / `MessageList.tsx` changes in #39.

**Size**: S | **Depends on**: nothing | **Tier**: 0 (quick win)

Guia de contribuição

Nenhum guia de contribuição indexado para este repositório

Direção de pesquisa

Look at the existing `useAutoScroll.ts` hook and `MessageList.tsx` component. The reference implementation from PR #39 shows how to add a `contentRef` and a ResizeObserver to trigger re-pinning on content height changes. Test by simulating streaming in the webview and verifying the chat stays pinned unless manually scrolled.

Escrita pelo modelo de indexação a partir do texto da issue.

Avaliação

Stack de tecnologia
react, typescript
Domínio
cli, frontend
Tipo de issue
Bug
Dificuldade
2/5
Tempo estimado
1-3 horas
Status de atividade
Pouca atividade
Clareza
Claramente especificada
Facilidade para iniciantes
75/100

Receba novas issues na sua caixa de entrada

Um resumo curto de issues do GitHub para quem está começando.