Skip to content

A failed 'compact' operation should not clear the chat. #142

@zikajk

Description

@zikajk

To upvote this issue, give it a thumbs up. See this list for the most upvoted issues.

Describe the bug
When the context window is (almost) full and the compact operation fails (e.g., due to size constraints), the system still clears the existing context as if the operation succeeded. This bug prevents users from attempting a more minimalistic summarization or other corrective actions on the original context, resulting in data loss.

Expected behavior
Clear the context only when the /compact is successful.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    Projects

    Status

    Ready

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions