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.
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
/compactis successful.