Skip to content

[Bug] Agent read_file tool returns truncated #750

@peteloggin

Description

@peteloggin
  1. VSCode Version: 1.99.30039 (system setup)
    Void Version: 1.4.4
    Commit: da425ab
    Date: 2025-06-10T00:36:08.103Z
    Electron: 34.3.2
    ElectronBuildId: undefined
    Chromium: 132.0.6834.210
    Node.js: 20.18.3
    V8: 13.2.152.41-electron.0
    OS: Windows_NT x64 10.0.26100

I'm reading and writing from a local directory. (one folder on desktop, with one file sudoku_gui.py).
I'm using Qwen3-32B-Q4_K_M.gguf from a lmstudio server on my network

  1. I finally realized that when models tried to use the read_file tool they weren't getting the full file.

Excerpt from qwen3 when I asked it to read and explain my file.

First, I need to make sure I have the full content of the file. The last tool call used read_file on sudoku_gui.py, but the result seems cut off with "def __in...". That's probably because the file is large or there was a truncation.

the file is not large.

I've also had similar issues when I asked for simple edits like changing variable names and llms unable to use the search/replace tool because it didn't seem to know the original code.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Status

    👀 Improvements (B)

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions