Skip to content

Aider 'Unable to read staged files' on load and when adding files to chat #3885

@Trolann

Description

@Trolann

Issue

When accessing a git repo that has been working fine in the past, aider regularly gives a red warning of "Unable to read staged files". This is especially problematic when adding files (or read only files) to the chat and it pops up a new one with every character, also preventing you from backspacing if you made a mistake

Image

Version and model info

Unable to read staged files:
Unable to read staged files:
Unable to read staged files:
Aider v0.82.2
Main model: anthropic/claude-3-7-sonnet-20250219 with diff edit format, infinite output
Weak model: anthropic/claude-3-5-haiku-20241022
Git repo: .git with 228 files
Repo-map: using 4096 tokens, auto refresh
Added ../.aider.guidelines to the chat (read-only).
Unable to read staged files:
─────────────────────────────────────────────

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions