Skip to content

Compression failure burnt through my tokens #32

Closed

Description

@Jordanm9936-FS

I've been getting a compression failure through OpenRouter which had been continuously retrying without me knowing. When manually switching the model to sonnet-4.5, my credits drained from $9 to 0 in about 3-4 minutes after running a single prompt. Here is a copy/paste of the error:

19:54:41 info [ClawRouter] Received model: "sonnet" -> normalized: "sonnet" -> alias: "anthropic/claude-sonnet-4"
19:54:41 info [ClawRouter] Request size 415KB exceeds threshold 180KB, applying compression...
19:54:41 warn [ClawRouter] Compression failed: content.replace is not a function
19:54:41 info [ClawRouter] Trying model 1/2: anthropic/claude-sonnet-4

Activity

  1. added a commit that references this issue on Feb 17, 2026
    d43fe48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions