Skip to content

Goose stops responding without any error message once conversation hits context limit on openrouter. #1303

@myevolve

Description

@myevolve

Describe the bug
Goose will eventually just stop responding and not display the error message from the llm, in this case, openrouter using anthropic/claud-3.5-sonnet

To Reproduce
Steps to reproduce the behavior:

  1. Build for long enough to exceed 200K context.

Expected behavior
Expected behavior is that Goose would use the middle out transform and compress prompt to context limit or just below it so it doesn't fail.

Screenshots
Trace from langfuse:
This endpoint's maximum context length is 200000 tokens. However, you requested about 201326 tokens (197771 of text input, 3555 of tool input). Please reduce the length of either one, or use the "middle-out" transform to compress your prompt automatically.

Please provide following information:

  • OS & Arch: [Ubuntu 24.04 x86]
  • Interface: [CLI]
  • Version: [v1.0.7]
  • Extensions enabled: [Developer,Computer Controller, Memory,Fetch,Git,Github]
  • Provider & Model: [openrouter:anthropic/claude-3.5-sonnet]

Additional context
Add any other context about the problem here.

Metadata

Metadata

Assignees

Labels

enhancementNew feature or requestp0Priority 0 - Critical/Urgent

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions