pi-harness-runtime 0.9.19 → 0.9.20

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/index.ts +11 -4
  2. package/package.json +1 -1
package/index.ts CHANGED
@@ -290,10 +290,17 @@ export default function (pi: ExtensionAPI) {
290
290
  syncOptions: { cachePath: cookieCachePath },
291
291
  onEvent: (event) => {
292
292
  if (event.kind === "sync-error" || event.kind === "watcher-error") {
293
- console.error(
294
- "[pi-harness] cookie-sanitizer:",
295
- "message" in event ? event.message : "",
296
- );
293
+ const msg = "message" in event ? event.message : "";
294
+ if (msg.includes("ENOSPC")) {
295
+ console.error(
296
+ "[pi-harness] cookie-sanitizer: ENOSPC — inotify watchers exhausted.\n" +
297
+ " Fix (run once as sudo):\n" +
298
+ " echo fs.inotify.max_user_watches=524288 | sudo tee /etc/sysctl.d/99-watch.conf\n" +
299
+ " sudo sysctl --system",
300
+ );
301
+ } else {
302
+ console.error("[pi-harness] cookie-sanitizer:", msg);
303
+ }
297
304
  }
298
305
  // A successful sync means the canonical cache is fresh; the
299
306
  // next autoFetchQuota() should pick it up immediately. Reset
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pi-harness-runtime",
3
- "version": "0.9.19",
3
+ "version": "0.9.20",
4
4
  "description": "[BETA] Codex-style /usage status + autonomous coding harness for pi. Not production ready — expect breaking changes.",
5
5
  "type": "module",
6
6
  "scripts": {