Skip to content

[Bug]: [Windows] read_file tool cannot access local files - "File not found" for valid D: drive paths #17999

Closed as not planned

Description

@wangjian202501

Bug Description

Bug Description

On Windows, the read_file tool fails with "File not found" error even for valid file paths on D: drive. Terminal tool also fails to execute basic commands.

Steps to Reproduce

  1. Run hermes-agent v0.11.0 on Windows 10 (native, not WSL2)
  2. Ask: "Read the file D:\hermes jiyi\2026-04-29.md" (file exists)
  3. Or ask: "Run hostname && whoami && pwd"

Expected Behavior

  • read_file should successfully read local files on D: drive
  • Terminal should execute basic commands like hostname

Actual Behavior

  • read_file returns error: "File not found" for all paths tried
  • Terminal returns exit_code: 1

Environment

  • OS: Windows 10 Pro
  • Hermes: v0.11.0
  • Python: 3.11.9
  • Provider: custom (Xiaomi MiMo Token Plan via token-plan-cn.xiaomimimo.com)
  • Terminal backend: local

Additional Context

  • Skills system works normally (69 skills listed and callable)
  • LLM calls work normally (API responding)
  • This suggests hermes IS running locally, but file/terminal tools have Windows-specific bugs
  • File paths were tested with both Chinese characters and pure ASCII - both fail
  • Even renamed folder to pure ASCII D:\hermes jiyi\ but still fails

Steps to Reproduce

Bug Description

On Windows, the read_file tool fails with "File not found" error even for valid file paths on D: drive. Terminal tool also fails to execute basic commands.

Steps to Reproduce

  1. Run hermes-agent v0.11.0 on Windows 10 (native, not WSL2)
  2. Ask: "Read the file D:\hermes jiyi\2026-04-29.md" (file exists)
  3. Or ask: "Run hostname && whoami && pwd"

Expected Behavior

  • read_file should successfully read local files on D: drive
  • Terminal should execute basic commands like hostname

Actual Behavior

  • read_file returns error: "File not found" for all paths tried
  • Terminal returns exit_code: 1

Environment

  • OS: Windows 10 Pro
  • Hermes: v0.11.0
  • Python: 3.11.9
  • Provider: custom (Xiaomi MiMo Token Plan via token-plan-cn.xiaomimimo.com)
  • Terminal backend: local

Additional Context

  • Skills system works normally (69 skills listed and callable)
  • LLM calls work normally (API responding)
  • This suggests hermes IS running locally, but file/terminal tools have Windows-specific bugs
  • File paths were tested with both Chinese characters and pure ASCII - both fail
  • Even renamed folder to pure ASCII D:\hermes jiyi\ but still fails

Expected Behavior

Bug Description

On Windows, the read_file tool fails with "File not found" error even for valid file paths on D: drive. Terminal tool also fails to execute basic commands.

Steps to Reproduce

  1. Run hermes-agent v0.11.0 on Windows 10 (native, not WSL2)
  2. Ask: "Read the file D:\hermes jiyi\2026-04-29.md" (file exists)
  3. Or ask: "Run hostname && whoami && pwd"

Expected Behavior

  • read_file should successfully read local files on D: drive
  • Terminal should execute basic commands like hostname

Actual Behavior

  • read_file returns error: "File not found" for all paths tried
  • Terminal returns exit_code: 1

Environment

  • OS: Windows 10 Pro
  • Hermes: v0.11.0
  • Python: 3.11.9
  • Provider: custom (Xiaomi MiMo Token Plan via token-plan-cn.xiaomimimo.com)
  • Terminal backend: local

Additional Context

  • Skills system works normally (69 skills listed and callable)
  • LLM calls work normally (API responding)
  • This suggests hermes IS running locally, but file/terminal tools have Windows-specific bugs
  • File paths were tested with both Chinese characters and pure ASCII - both fail
  • Even renamed folder to pure ASCII D:\hermes jiyi\ but still fails

Actual Behavior

Bug Description

On Windows, the read_file tool fails with "File not found" error even for valid file paths on D: drive. Terminal tool also fails to execute basic commands.

Steps to Reproduce

  1. Run hermes-agent v0.11.0 on Windows 10 (native, not WSL2)
  2. Ask: "Read the file D:\hermes jiyi\2026-04-29.md" (file exists)
  3. Or ask: "Run hostname && whoami && pwd"

Expected Behavior

  • read_file should successfully read local files on D: drive
  • Terminal should execute basic commands like hostname

Actual Behavior

  • read_file returns error: "File not found" for all paths tried
  • Terminal returns exit_code: 1

Environment

  • OS: Windows 10 Pro
  • Hermes: v0.11.0
  • Python: 3.11.9
  • Provider: custom (Xiaomi MiMo Token Plan via token-plan-cn.xiaomimimo.com)
  • Terminal backend: local

Additional Context

  • Skills system works normally (69 skills listed and callable)
  • LLM calls work normally (API responding)
  • This suggests hermes IS running locally, but file/terminal tools have Windows-specific bugs
  • File paths were tested with both Chinese characters and pure ASCII - both fail
  • Even renamed folder to pure ASCII D:\hermes jiyi\ but still fails

Affected Component

Tools (terminal, file ops, web, code execution, etc.)

Messaging Platform (if gateway-related)

No response

Debug Report

## Bug Description
On Windows, the read_file tool fails with "File not found" error even for valid file paths on D: drive. Terminal tool also fails to execute basic commands.

## Steps to Reproduce
1. Run hermes-agent v0.11.0 on Windows 10 (native, not WSL2)
2. Ask: "Read the file D:\hermes jiyi\2026-04-29.md" (file exists)
3. Or ask: "Run hostname && whoami && pwd"

## Expected Behavior
- read_file should successfully read local files on D: drive
- Terminal should execute basic commands like `hostname`

## Actual Behavior
- read_file returns error: "File not found" for all paths tried
- Terminal returns exit_code: 1

## Environment
- OS: Windows 10 Pro
- Hermes: v0.11.0
- Python: 3.11.9
- Provider: custom (Xiaomi MiMo Token Plan via token-plan-cn.xiaomimimo.com)
- Terminal backend: local

## Additional Context
- Skills system works normally (69 skills listed and callable)
- LLM calls work normally (API responding)
- This suggests hermes IS running locally, but file/terminal tools have Windows-specific bugs
- File paths were tested with both Chinese characters and pure ASCII - both fail
- Even renamed folder to pure ASCII `D:\hermes jiyi\` but still fails

Operating System

windows 10

Python Version

No response

Hermes Version

当前最新版本

Additional Logs / Traceback (optional)

Root Cause Analysis (optional)

No response

Proposed Fix (optional)

No response

Are you willing to submit a PR for this?

  • I'd like to fix this myself and submit a PR

Activity

  1. added
    type/bugSomething isn't working
    P2Medium — degraded but workaround exists
    tool/fileFile tools (read, write, patch, search)
    tool/terminalTerminal execution and process management
    on Apr 30, 2026
  2. alt-glitch commented on Apr 30, 2026

    @alt-glitch

    Likely duplicate of #17753 — same symptom (read_file/terminal broken on native Windows), same code path (file tools path handling on Windows without WSL). PR #14545 addressed a related Windows path issue.

  3. alt-glitch commented on Apr 30, 2026

    @alt-glitch

    Likely duplicate of #17753 — same symptom (read_file/terminal broken on native Windows), same code path.

  4. added 2 commits that reference this issue on May 1, 2026
    d2f84ad
    b3abb0a
  5. konsisumer commented on Jun 12, 2026

    @konsisumer

    This issue appears to describe the same problem as #35819. Maintainer might want to consolidate or pick one as canonical.

  6. teknium1 commented on Jul 12, 2026

    @teknium1
    Collaborator

    Thanks for the native-Windows report. This is now implemented on main; this is an automated hermes-sweeper review.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2Medium — degraded but workaround existssweeper:implemented-on-mainSweeper: behavior already present on current maintool/fileFile tools (read, write, patch, search)tool/terminalTerminal execution and process managementtype/bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions