Windows: MemoryWrite fails with sync ...\memory\v1\user\topics: Access is denied
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 4.7k
- Forks
- 719
- Avg merge
- 4h 30m
- Merged PRs (30d)
- 83
Description
环境
- 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 文件。
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the ohmyagent.exe --stdio entry point and reproduce MemoryWrite on Windows 10 using the reported memory path; compare it with the working MemorySearch path. Trace the directory sync or flush operation and verify that MemoryWrite succeeds when directory syncing returns Access is denied, while file persistence remains correct.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- operating-systems
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Active
- Clarity
- Mostly clear
- Newbie friendliness
- 62/100