chaitin / chaitin/MonkeyCode

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

Open
#1,206 0 comments 0 reactions 0 assignees View on GitHub

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

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.