agent-infra / agent-infra/sandbox

watchPoll 返回结果错误

未关闭
#225 1 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
主要语言
Python
星标
5.9k
派生
529
平均合并
4 小时 8 分钟
30 天内合并 PR
4

描述

```
const response = await this.client.file.watchCreate({
path: this.baseDir,
recursive: true,
debounce: 250,
exclude,
});

const response = await this.client.file.watchPoll(this.watcherId, {
cursor: this.watchCursor,
timeout: 60,
});
```

watchPoll 返回结果不争取,项目文件没有任何变更,一直返回错误的 events 信息:

```
{
"seq": 801,
"watcher_id": "f53f1f1deffb",
"type": "remove",
"path": "/tmp/53d51ad2-52d4-448a-8fbf-a5012a3f09f4/src/enums/module.ts",
"relative_path": "src/enums/module.ts",
"old_path": null,
"is_dir": 0,
"timestamp": 1785163755.815348,
"mtime": null,
"size": null,
"inode": null
}

---

{
"seq": 1748,
"watcher_id": "f53f1f1deffb",
"type": "create",
"path": "/tmp/53d51ad2-52d4-448a-8fbf-a5012a3f09f4/src/common",
"relative_path": "src/common",
"old_path": null,
"is_dir": 1,
"timestamp": 1785164020.1007578,
"mtime": 1785164019.8409412,
"size": 4096,
"inode": 48175364
}

```

贡献指南

打开贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。