MiMo-Code icon indicating copy to clipboard operation
MiMo-Code copied to clipboard

Bug: Desktop does not render assistant output until Stop on long turns (已处理 timer only; white-screen-up ThreadView)

Open NMDX0721 opened this issue 2 months ago • 0 comments

Summary

Long-running agent turns show a processing timer (e.g. 「已处理 12min」) but the assistant message content is not rendered in the Desktop thread view until the user presses Stop. After Stop, the UI reloads messages and the content appears.

This is a client render/stream-sync issue, distinct from request-size errors (#2535).

Environment

  • App: MiMo Desktop (Windows) FileVersion 26.923.232338
  • Engine: MiMo-Code 0.1.14 in-process
  • OS: Windows NT 10.0.26300
  • Date: 2026-09-25
  • Affected sessions observed: ses_fff4da3a1ffe6u2I9ZapIUz1Dp (铁路复兴), ses_-ffe5f4847982cffeq1KxkzneS (校外)

Reproduction

  1. Open a long conversation with large history (tens to hundreds of MB of parts, many images).
  2. Send a prompt that runs a long turn (tools / multi-step), or let a turn run ~10+ minutes.
  3. Observe the header showing 「已处理 Nmin」 while the thread body does not update with assistant output (or only shows incomplete streaming).
  4. Press Stop.
  5. The full assistant message loads/renders only after the stop / full message refetch.

Observed evidence (local logs)

Long turn

Desktop log 2026-09-25.log:

19:31:15 [intervention] {"stage":"closed",...,"elapsedMs":793040,"textChars":3,...}

elapsedMs=793040 ≈ 13.2 minutes, matching a 「已处理 12min」 UI state.

Also:

15:42:30 [harness] turn ended with 1 unconsumed steer(s) ... (user stopped)
19:04:12 [harness] turn ended with 1 unconsumed steer(s) ... (user stopped)

ThreadView white-screen / scroll errors during the turn

Repeated:

[sess-diag] [white-screen-up] {"id":"ses_fff4da3a1ffe6u2I9ZapIUz1Dp",...,
"stack":"Error: white-screen-up-scroll\n    at ... ThreadView-....js ..."}

Also for 校外 and this session. Suggests virtualized list fails to apply incremental stream updates on very tall threads.

Huge message list payloads

GET /session/{id}/message responses seen:

Session responseBytes
铁路复兴 ~103–113 MB
校外 (before cleanup) ~326 MB
校内2 ~108 MB

Parsing/refetching these full snapshots is slow; incremental SSE may drop or UI may only commit the final message after turn end + full reload.

Expected

  • Assistant text should stream into the thread view while the turn runs (or at least appear without requiring Stop).
  • If streaming fails, the UI should show a clear error and recover without needing Stop to reveal already-completed content.

Actual

  • Timer advances (「已处理 …」) but message body stays empty/incomplete.
  • After Stop, message refetch renders the content correctly.

Related

  • #2535 — HTTP 400 Param Incorrect / multi-modal payload (request rejected by gateway). Separate from this render bug.
  • Possibly aggravated by huge GET /message payloads when history contains many base64 images.

Suggested fixes

  1. Ensure SSE/stream parts apply to ThreadView incrementally even on very long lists; fix white-screen-up-scroll virtualization edge cases.
  2. On turn completion (not only Stop), force a message reload/patch so finished output always appears.
  3. Consider pagination or delta endpoints for /session/{id}/message when payload > a few MB, so refetch after each turn is not 100MB+.
  4. Surface stream disconnects (Invalid request parameters, abort) in the UI with retry, instead of a silent empty assistant bubble.

Logs

  • Desktop: AppData/Roaming/Xiaomi MiMo/logs/2026-09-25.log
  • Engine: ~/.mimocode_home/data/log/ (active + rotated)

Labels

bug, desktop

NMDX0721 avatar Sep 25 '26 13:09 NMDX0721