Skip to content

Agents misinterpret LSP diagnostics as failed edits #9102

Closed

Description

@Lyapsus

When an edit or write operation succeeds but triggers LSP diagnostics (errors/warnings), the tool output only shows the diagnostics. This can lead agents to believe the operation failed, causing them to retry unnecessarily or get stuck in a loop.

The output should clearly indicate that the edit/write was applied successfully, even if diagnostics are present.

Activity

  1. github-actions commented on Jan 17, 2026

    @github-actions
    Contributor

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

    Feel free to ignore if none of these address your specific case.

  2. pschiel commented on Jan 17, 2026

    @pschiel
    Contributor

    It sounds a bit like a bad model issue. Had zero problems with that. Tool calls show clearly successful, agent interprets the type errors correctly, also understands when it's not due to that edit. What model are you using?

  3. Lyapsus commented on Jan 17, 2026

    @Lyapsus
    Author

    Don't have transcripts at hand but I'm pretty sure Gemini 3 Pro and Codex 5.2 both at max thinking levels showed such behavior.
    And even if this is a matter of weak model - why not help it? This case is a free lunch to me in this regard

  4. github-actions commented on Mar 27, 2026

    @github-actions
    Contributor

    To stay organized issues are automatically closed after 90 days of no activity. If the issue is still relevant please open a new one.

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