Skip to content

Chat (Linux desktop): response never appears until app restart, though it completed server-side #1638

Open

Description

@AnthonyRonning

Report

A user on the Linux desktop app reports that responses sometimes never appear while they wait, even though they were generated.

  • Steps: send a message in a long conversation and wait.
  • What happens: nothing shows up: no streamed text and, per the report, no spinner or other sign that a response is in progress. After several minutes they quit and reopen the app, and the full response is in the conversation.
  • Expected: text streams in, or at least a visible in-progress indicator, and the final response appears without a restart.
  • Frequency: at least 3 times on Nov 17, 2026, all in the same long conversation.
  • Workaround: restart the app. No content is lost.

Environment: Maple Chat desktop 3.4.9, Linux Mint (x86_64 laptop), wired connection.

The reporter offered to note exact times on a recurrence, which would let us match server logs.

Quick look (not a diagnosis)

From apps/maple-research/frontend/src/components/UnifiedChat.tsx on master (35bd5bf6):

  • The send path awaits openai.responses.create({ stream: true, ... }) and then reads it with for await (const event of stream). There is no idle or stall watchdog on that loop, so if the SSE stream goes silent without closing (dropped proxy/connection, half-open socket, webview buffering), the run can sit in the streaming state indefinitely.
  • Response recovery by polling (responses.retrieve, responseIdForChatMessage in services/chatResponseReconciliation.ts) runs on stop, failed-POST and load paths, not while a stream is still nominally open. That matches "the answer was there after restart": the server finished and stored it, and the reload read it from the conversation.
  • The "no spinner" detail is worth checking separately: setAssistantStreaming(..., true) is only set after responses.create resolves, so if the hang is before the response headers arrive the UI may show nothing at all.

Open questions:

  1. Is the stall before headers (request never resolves) or mid-body (events stop arriving)?
  2. Is it specific to the Linux webview (WebKitGTK) or long conversations (slow first token, compaction, long reasoning), or does it reproduce elsewhere?
  3. Do the enclave/proxy logs for those requests show the stream completing normally on the server side?

Not looking at a fix yet. Likely directions once confirmed: a stream idle timeout that falls back to polling the response by ID, and an in-progress indicator from send time rather than from stream open.

Activity

  1. added
    bug
    on Nov 18, 2026
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

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions