Skip to content

Chat history compression increases the token usage #3533

@ShammiAnand

Description

@ShammiAnand

Chat history compression increases the token usage often even when the history is over 80% full

The following example from the bug is for a small history but the issue is not limited to that case.

What happened?

Image

on doing /compress

Chat history compressed from 1957 to 2247 tokens.

What did you expect to happen?

Image

on doing /compress

Chat history compressed from 1957 to 2247 tokens.

Client information

  • CLI Version: 0.1.9
  • Git Commit: 34935d6
  • Operating System: linux v22.8.0
  • Sandbox Environment: no sandbox
  • Model Version: gemini-2.5-pro
  • Memory Usage: 175.3 MB

Login information

No response

Anything else we need to know?

No response

Metadata

Metadata

Assignees

Labels

area/coreIssues related to User Interface, OS Support, Core Functionality

Type

No fields configured for Task.

Projects

Status

Closed

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions