Skip to content

[BUG] Chat history disappeared AND Plugin service crashes frequently #715

Description

@ygzzfyh123

Problem (one or two sentences)

ImageWhen compressing context
1.
Click the button to terminate the task
Switching models resumes the task again and then terminates it again
Then the chat history is gone and becomes empty. But let the model restore the task model to read the previous chat history normally, but people can't see it.

When he is using a tool, such as executing a command via SSH or using adb, repeatedly clicking "Terminate Dialogue" will prevent you from continuing the conversation.

Image

It will immediately throw a 400 error code. This is due to a context disorder caused by an interruption during the tool call, resulting in the upstream receiving an incomplete context and therefore rejecting the request. The biggest problem is that if this problem occurs, you will find that the plugin service keeps crashing and the Gradle daemon also crashes when you open a new conversation. You must manually delete the conversation before the chat history is fully loaded when you restart VS Code and open the plugin page to restore normal operation.

Image

This issue uses translation. Therefore, the expression may not be accurate.

Context (who is affected and when)

When interrupting the request

Reproduction steps

Switching models and interrupting the process multiple times while in a compressed context may trigger this bug.

This bug may be triggered if the AI ​​interrupts its multi-round tool calls.

Expected result

It can be interrupted normally without any problems.

Actual result

Unexpected problems may occur after the interruption.

Variations tried (optional)

No response

App Version

Latest version

API Provider (optional)

OpenAI Compatible

Model Used (optional)

ChatGPT5.4 5.5Codex | ClaudeOpus4.8

Zoo Code Task Links (optional)

No response

Relevant logs or errors (optional)

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    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