Skip to content

Path is duplicated on tool calls causing them to fail #4658

@the-destro

Description

@the-destro

It looks like the paths for files are getting double expanded. So if my home directory is /Users/my_user:

Here's the modified code I'll apply using the str_replace command:
─── text_editor | developer ──────────────────────────
path: ~/code/lore/lib/lore/service.ex
command: str_replace
diff: [REDACTED: 779 chars]

-32603: Mcp error: -32603: File '/Users/my_user/code/lore/lib/lore/Users/my_user/code/lore/lib/lore/service.ex' not found and patch doesn't create it 2025-09-16T19:15:52.756030Z WARN goose::providers::lead_worker: Technical failure with worker provider, retrying with default model (lead provider)
at crates/goose/src/providers/lead_worker.rs:386

2025-09-16T19:15:52.756078Z ERROR goose::providers::lead_worker: ❌ Default model (lead provider) also failed - returning original error
at crates/goose/src/providers/lead_worker.rs:399

2025-09-16T19:15:52.756091Z WARN goose::providers::lead_worker: Technical failure detected - API/LLM issue, will use default model
at crates/goose/src/providers/lead_worker.rs:187

Error: Execution error: content was missing: content was not specified but it is required when building ToolResultBlock
The tool calling loop was interrupted. How would you like to proceed?
error: The error above was an exception we were not able to handle.
These errors are often related to connection or authentication
We've removed the conversation up to the most recent user message

  • depending on the error you may be able to continue

A clear and concise description of what the bug is.

To Reproduce
Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Expected behavior
A clear and concise description of what you expected to happen.

Screenshots
If applicable, add screenshots to help explain your problem.

Please provide following information:

  • OS & Arch: macOS 15.6.1
  • Interface: CLI
  • Version: 1.8.0
  • Extensions enabled: [e.g. Computer Controller, Figma]
  • Provider & Model: AWS Bedrock Claude

Additional context
Add any other context about the problem here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions