cline
cline copied to clipboard
Context window exceeded with command execution with long/verbose std output
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
- 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.
- 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
This may already be addressed in v3.17.14
Add terminal output size constraint setting to limit how much terminal output is processed
You can now limit the number of lines in the latest version, closing!