Skip to content

Windows: MemoryWrite fails with sync ...\memory\v1\user\topics: Access is denied #1206

Description

@1558637518

环境

  • OS: Windows 10.0.22631.3296
  • OhMyAgent: 530f906
  • ohmyagent.exe --stdio
  • monkeycode-desktop 26090107.0.0
  • 进程用户: 当前登录用户

现象

MemorySearch 正常。
MemoryWrite 失败:
sync C:\Users\admin\AppData\Roaming\com.chaitin.baizhi.monkeycode\ohmyagent\memory\v1\user\topics: Access is denied

该目录 NTFS 可写、非 junction,无 Defender。本机直接写文件成功。
怀疑 Windows 上对目录 fsync/FlushFileBuffers 返回 ERROR_ACCESS_DENIED。

期望

Windows 上 MemoryWrite 成功;目录 sync 失败应忽略或只 fsync 文件。

Metadata

Metadata

Assignees

No one assigned

    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