Skip to content

fix(chat): streaming reply never receives isStreaming #431

Closed

Description

@patrickab

ChatWindow renders streamState.streamingMessage through MessageView without isStreaming (since #259, fd28309). AssistantMessageView therefore treats the live reply as finished:

  • its live header, with the token-speed readout (components/MessageView.tsx ~781–799), never renders
  • the footer actions show while the reply streams

Fix: pass isStreaming={streamState.isStreaming}. A finished reply held until its saved row appears gets false. Test both cases.

Found in review of #332.

Activity

  1. andrebrait commented on Nov 8, 2026

    @andrebrait
    Collaborator

    Verified against current main (d9e2a44): ChatLiveTail renders the live MessageView (components/ChatWindow-live-tail.tsx:39-50) without isStreaming, so AssistantMessageView receives undefined. Confirmed consequences in components/MessageView.tsx: the live header and token-speed badge are gated by isStreaming (781-810), and the footer actions render whenever it is falsy (881).

    The fix also changes other isStreaming-driven behavior, which the test should account for: data-live (763), empty-thinking filtering (674), the thinking-duration timer (715-756), TextBlock/SafeMarkdownBody streaming mode (910, 931), and ToolCallBlock initial expansion and spinner (1083, 1159). The MessageView memo comparator already compares isStreaming and only compares liveTokensPerSecond while streaming (246, 267).

    Suggested scope: add an isStreaming prop to ChatLiveTail, have ChatWindow pass streamState.isStreaming, and forward it. Test both an actively streaming reply (header/speed shown, footer hidden) and a finished reply held until its saved row appears (isStreaming false: footer shown, no live header). Code-read only; no browser reproduction yet.

  2. added a commit that references this issue on Nov 10, 2026
    fae0341
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    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