Skip to content

[Bug]: Stop button clears unsent web chat draft input #35419

@mcaxtr

Description

@mcaxtr

Bug type

Behavior bug (incorrect output/state without crash)

Summary

Clicking Stop in web chat still clears the unsent draft input in current main.

Steps to reproduce

  1. Open web chat.
  2. Start a response stream.
  3. Type a new draft message in the input (do not send).
  4. Click Stop.

Expected behavior

Stopping generation should preserve the user draft in the input.

Actual behavior

handleAbortChat still clears input in main:

  • ui/src/ui/app-chat.ts:67 sets host.chatMessage = "" before abort completes.

OpenClaw version

main branch (checked on March 5, 2026)

Operating system

Cross-platform UI behavior (browser-based)

Install method

Source checkout / main branch verification

Logs, screenshots, and evidence

Code evidence on main:
- ui/src/ui/app-chat.ts:67

Related PR with fix: #26604
Previous issue that was closed completed: #22063

Impact and severity

Affected: Web chat users composing follow-up prompts while aborting a run.
Severity: Medium; repeated draft loss harms UX and productivity.
Frequency: High in stop-while-typing flow.
Consequence: User must retype content after stopping generation.

Additional information

This supersedes #22063 (closed as completed on February 26, 2026), but the code path is still present in main on March 5, 2026.

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