Skip to content

After update, eca chat compacting doesn't work correctly anymore #357

@ovistoica

Description

@ovistoica

To upvote this issue, give it a thumbs up. See this list for the most upvoted issues.

Describe the bug

On latest eca version, autocompacting shows 0 / 200 context but then immediately baloons to 140k without any relevant reasons. In the screenshot below you see only a sub agent started that I stopped after 1 small step. This leads to unusable agents because they baloon context and have to compact 5 times in 5 minutes and having to restart the tasks they were doing

To Reproduce

Steps to reproduce the behavior:

  1. Start a session
  2. Give agent a relatively complex task
  3. See context baloon
  4. See autocompacting
  5. Immediately after 1 step after compacting, context goes to 140k

Expected behavior

After compaction, the context should be 20-30k tokens max.

Doctor

ECA version: 0.112.1

Server cmd: /home/ovistoica/.config/emacs/eca/eca server

Workspaces: /home/ovistoica/workspace/proj, /home/ovistoica/workspace/proj-worktrees/some-branch

Default model: anthropic/claude-sonnet-4-6 (Subscription (oauth), expires 2026-03-13 14:41)

Logged providers:
anthropic: Subscription (oauth), expires 2026-03-13 14:41

Relevant env vars:
DEBUGINFOD_URLS=https://debuginfod.archlinux.org

Credential files: None found

Screenshots
If applicable, add screenshots to help explain your problem.

Image

Additional context
Add any other context about the problem here.

Metadata

Metadata

Assignees

No one assigned

    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