Skip to content

/compact triggers compact twice when context window reached 90% #7253

Description

@leset0ng

What happened?

when mannally trigger the command /compact and the context window is low,
auto compact will be triggered too
and when it finished,it will contine to try to compact again
however, it will never stop until you press esc.
after pressing esc ,it says Error: Compaction failed: Already compacted

Steps to reproduce

  1. wait for a agent to reach 90% context window
  2. /compact

Expected behavior

compact once

Version

0.82.1

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions