Skip to content

[FIX] read_file file-not-found persistent regression — 780 failures/247 sessions, rate 0.036 despite 4 prior closed fixes #1787

Description

@Lexus2016

Problem (observed in real usage)

read_file fails with file-not-found at the highest per-session rate of any non-terminal tool reason. Despite multiple closed fixes (#1370, #1488, #1587, #1681), the rate remains at 0.036/session — the second-highest individual reason across all tools. This is a persistent regression: fixes keep getting closed but the problem keeps returning at near-peak rates.

Evidence (aggregated, anonymized)

Impact on real tasks

When the agent cannot read a file it needs, it either spirals (up to 20 retries) or gives up and works with incomplete information. The file-not-found rate of 3.6% per session is the single largest non-terminal blocker. The repeated close-and-regress cycle suggests previous fixes addressed one code path but left others open, or the fix was never deployed to the running environment (as documented in #1702).

Proposed direction

  1. Determine if the [FIX] read_file receives stringified-array and directory paths after coerce_tool_args drops malformed list params — file-not-found spiral #1681 fix (coerce_tool_args mangling list params into stringified arrays) is actually deployed — [BUG][REGRESSION] #1671 and #1672 fixes merged Aug 4 are INEFFECTIVE — error rates at/near peak post-merge #1702 documents that [FIX] Session DB append_message NoneType — guard write path + reconnect retry (~1700 errors) #1671/[FIX] coerce_tool_args JSON parse failure — wrap scalars in lists, improve fallback (~1300 errors) #1672 fixes were merged but not effective.
  2. If deployed, audit ALL entry points where paths reach read_file — the model may pass directory paths, array-as-string, or relative paths that resolve incorrectly.
  3. Enrich the file-not-found error with "did you mean?" suggestions (file_glob search of the parent directory) to prevent spirals on first failure.

Value

  • Impact: 0.8 (247 sessions, second-highest failure rate, blocks file access)
  • Effort: 0.5 (audit multiple code paths + error enrichment)
  • Priority Score: 0.8 × 2 × (1 − 0.4 × 0.5) = 1.28

Metadata

Metadata

Assignees

No one assigned

    Labels

    blockedNeeds human/infrastructure action — see commentbugSomething isn't workingintrospectionFound by session introspection

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions