Skip to content

[BUG] Chat can remain stuck on "API Request..." and stop sending after task/context switch #257

Description

@edelauna

Problem (one or two sentences)

After a task switch (or certain project-path/worktree context transitions), chat can stay in an API-request state and user messages stop sending. The input appears locked as if a request is still active.

Context (who is affected and when)

Seen by users in active coding sessions, especially when moving between task contexts (e.g., different project path/worktree or external/internal context switches). Impact is high because chat appears available but messages do not send.

Reproduction steps

  1. Environment/setup: VS Code with Zoo Code extension, any provider/model (reported across multiple providers).
  2. Start Task A and trigger a request so chat enters API Request... / streaming state.
  3. Switch to a different task/context (Task B) without fully resetting session UI state.
  4. Try to send a normal follow-up message in Task B.
  5. Observe the message is not sent and chat remains effectively locked.

Expected result

After switching to a new task/context, chat input should re-enable and messages should send normally.

Actual result

Chat remains stuck in request/disabled state and new messages are not sent.

Variations tried (optional)

  • Reproduced with different providers/models (community reports mention this across setups).
  • Trigger seems correlated with context/task transitions rather than a single provider.

App Version

v3.55.x (reported; exact patch version unknown)

API Provider (optional)

Not Applicable / Other

Model Used (optional)

N/A

Zoo Code Task Links (optional)

N/A

Relevant logs or errors (optional)

Include UI/API history showing persistent api_req_started / locked send state after task switch.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions