Skip to content

write/edit tools silently abort for files >~6KB — no useful error, no fallback #29779

Closed as duplicate

Description

@Tony-111

Description

Description

When writing or editing files larger than ~6KB, both the write and edit tools silently abort with just Tool execution aborted — repeatedly, with no explanation.

Steps to Reproduce

  1. Ask the agent to write a file with content >~6KB (e.g. a large component, config, or HTML file)
  2. Observe the agent retrying endlessly:
    ~ Preparing write...
    Tool execution aborted
    ~ Preparing write...
    Tool execution aborted
    ~ Preparing write...
    Tool execution aborted

Expected Behavior

  • A clear error message explaining the size limit
  • OR: automatic chunking / skeleton-first strategy
  • OR: a higher limit

Actual Behavior

  • Silent abort, no error message, no hint what went wrong
  • The agent has no way to detect the failure reason and keeps retrying
  • Results in wasted tokens, wasted time, and a frustrating UX

Workaround (manual)

Write a small skeleton first (~1–2KB), then iteratively fill it with edit calls of ~3–4KB each — but this has to be done manually or via custom agent instructions.

Environment

  • OpenCode with claude-sonnet-4.6
  • Windows 11, pwsh

Plugins

No response

OpenCode version

No response

Steps to reproduce

No response

Screenshot and/or share link

No response

Operating System

Windows 11

Terminal

Windows Terminal

Activity

  1. github-actions commented on May 28, 2026

    @github-actions
    Contributor

    This issue might be a duplicate of existing issues. Please check:

    If this is the same issue, please consider adding a "+1" or additional context there rather than opening a new report.

  2. Tony-111 commented on May 28, 2026

    @Tony-111
    Author

    Yes - thank you seems to be the same issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

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