Skip to content

Conversation

@michaelneale
Copy link
Collaborator

@michaelneale michaelneale commented Jul 9, 2025

discovered when looking at: #3150

should also fix: #3249

this may be the cause of that other issue too.

Ran into this error: Request failed: Request failed with status: 400 Bad Request. Message: messages.45: `tool_use` ids were found without `tool_result` blocks immediately after: toolu_01Sf6TDaMKK1y49vjqzAziPa. Each `tool_use` block must have a corresponding `tool_result` block in the next message..

This seemed to happen at odd times, and I guess could happen when compacting the session when the threshold is set (but couldn't reliably reproduce).

Copy link
Collaborator

@DOsinga DOsinga left a comment

Choose a reason for hiding this comment

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

can you remove the comments? I don't think they are adding much. and in the spirit of slowly improving the code, we could extract some string constants here

@michaelneale
Copy link
Collaborator Author

@DOsinga done

* main:
  fix: resolve hamburger menu breakpoint bug in docs (#3318)
  Recipe library doc (#3329)
  docs: recipe parameters in desktop (#3326)
  switch to custom runner for rust build (#3325)
  fix the npx.cmd mapping issue (#3324)
  Structured output in Goose CLI and Goose Desktop (#3320)
  docs: add managing tools section and tool-router topic (#3310)
  docs: Remove Deeplink for Filesystem MCP Server (#3314)
@michaelneale michaelneale merged commit 9606948 into main Jul 10, 2025
8 checks passed
@michaelneale michaelneale deleted the micn/fix-anthropic-tool-order branch July 10, 2025 06:02
michaelneale added a commit that referenced this pull request Jul 10, 2025
* main:
  fix: correct tool use for anthropic (#3311)
  fix: resolve hamburger menu breakpoint bug in docs (#3318)
  Recipe library doc (#3329)
zanesq added a commit that referenced this pull request Jul 10, 2025
* 'main' of github.com:block/goose:
  refactor: abstract keyring logic to better enable DI (#3262)
  fix: correct tool use for anthropic (#3311)
ahau-square pushed a commit that referenced this pull request Jul 11, 2025
michaelneale added a commit to jackjackbits/goose that referenced this pull request Jul 14, 2025
* main: (51 commits)
  docs: reflecting benefits of CLI providers (block#3399)
  feat: fetch openrouter supported models in `goose configure` (block#3347)
  Add the ability to configure rustyline to use a different edit mode (e.g. vi) (block#2769)
  docs: update CLI provider guide (block#3397)
  Streamable HTTP CLI flag (block#3394)
  docs: Show both remote options for extensions in CLI (block#3392)
  docs: fix YouTube Transcript MCP package manager (block#3390)
  docs: simplify alby mcp (block#3379)
  docs: add max turns (block#3372)
  feat(cli): add cost estimation per provider for Goose CLI (block#3330)
  feat: Allow Ollama for non-tool models for chat only (block#3308)
  [cli] Add --provider and --model CLI options to run command (block#3295)
  Docs: Lead/worker model in Goose Desktop (block#3342)
  revert: refactor: abstract keyring logic to better enable DI (block#3358)
  Drop temporal-service binary (block#3340)
  docs: add fuzzy search (block#3357)
  Fix name of GPT-4.1 System Prompt (block#3348) (block#3351)
  docs: add goose-mobile (block#3315)
  refactor: abstract keyring logic to better enable DI (block#3262)
  fix: correct tool use for anthropic (block#3311)
  ...
atarantino pushed a commit to atarantino/goose that referenced this pull request Jul 14, 2025
s-soroosh pushed a commit to s-soroosh/goose that referenced this pull request Jul 18, 2025
kwsantiago pushed a commit to kwsantiago/goose that referenced this pull request Jul 19, 2025
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.

Session breaks when MCP server tool call responds with 2+ content elements

3 participants