cline icon indicating copy to clipboard operation
cline copied to clipboard

Context window exceeded with command execution with long/verbose std output

Open Scar-on-gh opened this issue 6 months ago • 1 comments

What happened?

Cline executed a command that had verbose std output. This overran the context window and resulted in the task session erroring out with a retry option. Retry always failed.

Steps to reproduce

  1. Have Cline run a command with extremely verbose/large amounts of std output.
    • You can induce this quicker by already having your context_window nearly full.
  2. Wait for the command to run for some time with Cline reading the std output.

Relevant API REQUEST output


Provider/Model

anthropic/claude-4.0-sonnet

Operating System

RHEL8

System Info

Able to reproduce on several system types.

Cline Version

v3.17.13

Additional context

Relates to #4389

Scar-on-gh avatar Jun 24 '25 17:06 Scar-on-gh

This may already be addressed in v3.17.14

Add terminal output size constraint setting to limit how much terminal output is processed

Scar-on-gh avatar Jun 24 '25 17:06 Scar-on-gh

You can now limit the number of lines in the latest version, closing!

saoudrizwan avatar Jul 26 '25 13:07 saoudrizwan