Skip to content

[BUG] OpenAI Compatible Qwen3.8:27B condense context token usage #1342

Description

@RemainIndoors1

Describe the bug
When using Qwen3.8:27B running in llama.cpp as an openai compatible endpoint, Although I have the max context window set to 262144 in the server, when I attempt to condense context at 181.1k tokens used, I get an error for Failed to condense context - (304897 tokens) exceeds the available context size 262144 tokens

To Reproduce
Steps to reproduce the behavior:

  1. Run Qwen3.8:27B server via llama.cpp using the following command:
llama-server.exe --ctx-size 262144 -m "C:\models\Qwen3.8-27B-Q4_K_M.gguf" --top-p 0.95 --top-k 20 --min-p 0.0 --presence-penalty 0.0 --repeat-penalty 1.0 --temp 1.0 --port 8080 --host 0.0.0.0 --chat-template-file "C:\models\chat_template.jinja" -ngl 99 -fa 1 --cache-type-k q4_0 --cache-type-v q4_0 --spec-type draft-mtp --spec-draft-n-max 2 --parallel 1
  1. setup OpenAI Compatible provider to connect to that server with Model Reasoning Effort High.
  2. Set Context Window Size in Zoo Code to 262144
  3. Continue a conversation until token usage bar at the top shows 181.1k / 262.0k
  4. Click the Intelligently Condense Context button
  5. See error Failed to condense context 304897 tokens used.

Expected behavior
If Token usage for the current conversation was actually that long, I believe my llama.cpp server would have rejected it before this point. Or if the reason for the error is the actual request to intelligently condense context would take that many tokens, then I would expect to be able to see that number somewhere so that I can condense before it grows beyond the point where I have to let it fail and truncate the conversation.

What version of zoo are you running
3.78.0

Additional context
I just wanted to say I appreciate what you guys are doing with this project. It's extremely helpful and intuitive.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions