Skip to content

[BUG] Un-controllable Token Exceed with MCP results #648

@sihangchen97

Description

@sihangchen97

Problem (one or two sentences)

The conversation will get stuck when MCP tools return a large amount of context.

  • with “Compression API failed: OpenAI completion error: 400 request (359746 tokens) exceeds the available context size (128000 tokens), try increasing it”

Context (who is affected and when)

N/A

Reproduction steps

  1. Clone a rather large git repo
  2. Activate "Git Tools" from "Zoo Marketplace - MCP"
  3. Ask Zoo to check the diff and status of this git repo
  4. Zoo will use the MCP tool for the task
  5. The conversation gets stuck with a compression error

Expected result

Run normally with either trunc or compressed MCP result

Actual result

“Compression API failed: OpenAI completion error: 400 request (359746 tokens) exceeds the available context size (128000 tokens), try increasing it”

Variations tried (optional)

No response

App Version

3.60.0

API Provider (optional)

OpenAI Compatible

Model Used (optional)

Qwen3.6-27B

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