Skip to content

Control UI: input text reappears briefly when streaming response begins #66907

@dustin-nowak

Description

@dustin-nowak

Description

When sending a message in the control UI, the input field clears as expected. However, once the AI's "thinking" / streaming response begins, the previously sent text briefly flashes back into the input field (sometimes as a fragment), then disappears again after the response completes.

Steps to Reproduce

  1. Open the control UI in a browser
  2. Type a message and send it
  3. Observe the input field clears
  4. When the streaming response starts (thinking indicator appears), the sent text briefly reappears in the input field or as a duplicate chat bubble fragment
  5. After the response finishes, it disappears again

Expected Behavior

Input field should stay empty after sending. Streaming state updates should not cause stale input values to flash back.

Likely Cause

Lit component re-render issue — when the streaming/thinking state updates trigger a parent component re-render, the input component briefly restores a stale value before settling.

Screenshot

input-reappear-bug

Screenshot shows a "That" fragment appearing as a separate bubble — a piece of the user's prior message that briefly resurfaced during streaming.

Environment

  • OpenClaw 2026.4.14 (323493f)
  • Model: claude-opus-4-6
  • Runtime: direct (Claude Code CLI)
  • macOS Darwin 24.6.0

🤖 Generated with Claude Code

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions