Skip to content

chat/clear during streaming orphans server stream #2

Description

@ssjoleary

Where

lua/eca/sidebar.lua clear_chat() (after PRs editor-code-assistant#63 promptStop and editor-code-assistant#64 chat/clear merge upstream)

Symptom

User hits :EcaChatClear mid-stream. Local state reset (_is_streaming = false) but server keeps streaming chunks into void.

Fix

Before sending chat/clear, if self._is_streaming, call self:_finalize_streaming_response() — which (after editor-code-assistant#63 merges) sends chat/promptStop first.

Blocker

Needs both upstream PRs merged:

Size

3-line guard, trivial once blockers land.

Found

Code review on editor-code-assistant#64.

Metadata

Metadata

Assignees

No one assigned

    Labels

    blockedWaiting on external dependency

    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