GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — TUI scroll freezes for seconds during fast-streaming responses (message.part.delta applied per-chunk with no batching) · Issue #36043 · anomalyco/opencode

TUI scroll freezes for seconds during fast-streaming responses (message.part.delta applied per-chunk with no batching) #36043

New issue
Copy link
New issue
Copy link
Closed as not planned
Closed as not planned
TUI scroll freezes for seconds during fast-streaming responses (message.part.delta applied per-chunk with no batching)#36043
Copy link
Assignees
kommander

Description

@YayoRazo
YayoRazo
opened on Jul 9, 2026
Issue body actions

Description

While the assistant is streaming, scrolling the conversation freezes the TUI for several seconds (input stops reacting, then catches up). With moderate stream rates (e.g. Claude models) it is barely noticeable; with fast-streaming models (GLM) it happens every time, even in a brand-new conversation with almost no history — so it scales with stream chunk rate, not with history size.

From the client code: every message.part.delta SSE event synchronously appends to the Solid store (packages/tui/src/context/sync.tsx, message.part.delta case), so each chunk triggers reactivity and a re-render of the growing text part. At high chunk rates the render loop saturates and queued scroll input stalls for seconds. There is a createDebouncedSignal util in packages/tui/src/util/signal.ts, but the delta path does not batch.

Happy to send a PR that accumulates deltas per part and flushes them on a short interval (~30-50ms) if that approach sounds right.

Plugins

None

OpenCode version

1.17.15

Steps to reproduce

  1. Start a new TUI session with a fast-streaming model (e.g. GLM)
  2. Send any prompt that produces a long streamed answer
  3. Scroll up/down while it streams
  4. TUI freezes for several seconds, then catches up

Operating System

Windows 11 (10.0.26200)

Reacted by Antonio Martínez

Activity

  1. github-actions
    assigned
    kommander
    on Jul 9, 2026
  2. anmarui74 commented on Aug 19, 2026

    @anmarui74
    anmarui74
    on Aug 19, 2026
    More actions

    Also affected here on v1.18.18. With fast-streaming reasoning models (DeepSeek V4 Flash via OpenCode Go, Qwen 3.5 local), the TUI freezes/stutters badly during streaming because every message.part.delta triggers a full store mutation with no batching. Combined with #36037 (one token per line) it looks like the agent is completely stuck. A ~30-50ms debounce flush for deltas (as suggested) would help a lot. Thanks!

  3. thdxr commented on Oct 11, 2026

    @thdxr
    thdxr
    on Oct 11, 2026
    Member
    More actions

    Thanks for the report! OpenCode 2.0 is now out and development is focused on V2, so we're closing issues filed against OpenCode 1. Please upgrade (opencode upgrade --major, details: https://anoma.ly/notes/opencode-2-0), and if this is still relevant on 2.0, reopen this issue or open a new one with your 2.0 version.

    — from 𝕺𝖕𝖊𝖓𝕮𝖔𝖉𝖊

  4. thdxr
    closed this as not plannedon Oct 11, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

  • @kommander
    kommander

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

    You are visitor 01402775 — GeezerVison does not store the pages you look up.
    Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.