Skip to content

Conversation

@dbraduan
Copy link
Contributor

  • Added configurable default context handling strategy via GOOSE_CONTEXT_STRATEGY environment variable.
  • Users can now set this to summarize, truncate, clear, or prompt to automatically handle context limits without manual intervention.
  • Default behavior remains unchanged: interactive mode prompts users, headless mode auto-summarizes.
  • When configured, Goose displays informative messages about the automatic action taken.
  • Documentation updated in Smart Context Management and Environment Variables guides.

@dbraduan dbraduan changed the title Add GOOSE_CONTEXT_STRATEGY setting cli(config): Add GOOSE_CONTEXT_STRATEGY setting May 26, 2025
@angiejones
Copy link
Collaborator

uh oh, a merge conflict. sorry about that! mind addressing that then pinging me? i'll make sure it gets merged once cleaned up

@michaelneale
Copy link
Collaborator

thanks @dbraduan - i have updated it to main and hopefully resolved the conflict as there was already a non interactive feature, but I replaced it with yours which is great, I like it. can you take a look again as this is great.

@michaelneale michaelneale self-requested a review June 2, 2025 23:29
Copy link
Collaborator

@michaelneale michaelneale left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks good - need to make sure still ok now updated to main

@dbraduan
Copy link
Contributor Author

dbraduan commented Jun 3, 2025

Should be good to go, @angiejones?

@angiejones angiejones merged commit 78234fb into block:main Jun 3, 2025
7 checks passed
katzdave added a commit to katzdave/goose that referenced this pull request Jun 3, 2025
* upstream/main:
  Feat: Refined the documentation for Goose (block#2751)
  mcp(developer): add fallback on .gitignore if no .gooseignore is present (block#2661)
  cli(ux): Show active context length in CLI (block#2315)
  cli(config): Add GOOSE_CONTEXT_STRATEGY setting (block#2666)
  fix: new models have different messages for context length exceeded (block#2763)
lifeizhou-ap added a commit that referenced this pull request Jun 4, 2025
* main:
  fix: pr comment build cli workflow (#2774)
  hotfix: don't always run prompt (#2773)
  Lifei/test workflow (#2772)
  chore: use hermit to install node, rust and protoc (#2766)
  Feat: Refined the documentation for Goose (#2751)
  mcp(developer): add fallback on .gitignore if no .gooseignore is present (#2661)
  cli(ux): Show active context length in CLI (#2315)
  cli(config): Add GOOSE_CONTEXT_STRATEGY setting (#2666)
  fix: new models have different messages for context length exceeded (#2763)
  fix: increase limit for direct to disk for performance (#2762)
  Revert "chore: use hermit in goose" (#2759)
  alexhancock/remove-settings-v1 (#2744)
  blog: Democratizing Detection Engineering at Block with Goose and Panther MCP (#2746)
michaelneale added a commit that referenced this pull request Jun 5, 2025
* main: (82 commits)
  feat: lead/worker model (#2719)
  fix: pass ref in pr comment workflow (#2777)
  feat: goose web for local terminal alternative (#2718)
  chore: run CI on merge_group (#2786)
  fix: Don't break from consuming subprocess output in shell tool until both streams are done (#2771)
  Add retries w/ exponential backoff for databricks provider (#2764)
  Fix paths in google drive mcp documentation (#2775)
  testing windows build (#2770)
  docs: Add Context7 YouTube Video (#2779)
  cli(command): Add `export` command to CLI for markdown export of sessions (#2533)
  fix(copilot): gh copilot auth token conflicts w/ gh mcp env var (#2743)
  feat(providers): Add support for Gemini 2.5 Flash Preview and Pro Preview models (#2780)
  fix: pr comment build cli workflow (#2774)
  hotfix: don't always run prompt (#2773)
  Lifei/test workflow (#2772)
  chore: use hermit to install node, rust and protoc (#2766)
  Feat: Refined the documentation for Goose (#2751)
  mcp(developer): add fallback on .gitignore if no .gooseignore is present (#2661)
  cli(ux): Show active context length in CLI (#2315)
  cli(config): Add GOOSE_CONTEXT_STRATEGY setting (#2666)
  ...
cbruyndoncx pushed a commit to cbruyndoncx/goose that referenced this pull request Jul 20, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants