{"slug": "limitcast-0-20-11-fixes-a-windows-failure-when-commands-overlap", "title": "Limitcast 0.20.11: fixes a Windows failure when commands overlap", "summary": "Limitcast 0.20.11, a local-only CLI that forecasts when Claude Code, Codex and Grok usage limits run out, fixes a Windows bug where two concurrent commands could exit with status 1 and drop a settings change. The failure came from atomic file renames being refused with EPERM while another process held the destination open; the tool now retries those renames for up to two seconds. In testing, 22 of 960 concurrent-run tests failed on Windows before the fix (2.3%) and none failed afterward.", "body_md": "**Limitcast 0.20.11 is available on npm.** It fixes a Windows failure where two Limitcast commands running at the same time could exit with an error and lose a settings change. macOS and Linux are unchanged.\n\nAll features remain free under the MIT License. Limitcast runs locally on macOS, Linux and Windows with **Node.js 22 or later**. The Claude Code, Codex and Grok plugins have also been updated to 0.20.11.\n\nLimitcast saves its settings and state by writing a temporary file and then renaming it over the real one, so a hook that reads at the same moment never sees a half-written file. On Windows, that rename is refused with `EPERM` while another process has the destination file open. When two Limitcast commands overlapped, one of them could hit that refusal, exit with status 1 and drop its change.\n\nLimitcast's own tests include one that runs `limitcast trim keep` from eight processes at once. On the Windows runner it failed now and then. The test threw away the command's error output, so the failure only said that the command exited with 1.\n\nWith the error output kept, **22 of 960** runs of that test on Windows (2.3%) failed, and every failure was the same `EPERM: operation not permitted, rename` on the settings file.\n\nOn Windows, Limitcast now retries that rename for up to two seconds when it is refused with `EPERM`, `EACCES` or `EBUSY`, which is how the other process lets go of the file. Any other error, and every error on macOS and Linux, is still raised at once. Three unit tests cover the retry, its time limit and the errors that are not retried.\n\nWith the fix, the same 960 runs on Windows had **no failures**.\n\nThe 0.20.11 release commit passed **348 tests and all 11 CI jobs**: lint, security and the test suite on Ubuntu, macOS and Windows with Node.js 22, 24 and 26. The publication preflight confirmed that before the package was published. The tarball downloaded from npm has the same checksum as the tested package, and the GitHub release and the Homebrew formula use that file.\n\nOne limit on the evidence: the 960-run comparison used Windows with Node.js 24. Node.js 22 and 26 on Windows ran once each in the CI matrix.\n\n```\nnpm install -g limitcast@0.20.11\n# or\nbrew upgrade limitcast\n```\n\nThen run `limitcast doctor`, and restart Claude Code, Codex and Grok. The full list of changes is in the [0.20.11 release notes](https://github.com/SamStull9007/limitcast/releases/tag/v0.20.11).\n\n*Originally published at [limitcast.dev](https://limitcast.dev/blog/limitcast-0-20-11/?utm_source=devto&utm_medium=crosspost&utm_campaign=limitcast-0-20-11). limitcast is a local-only command-line tool that forecasts when your Claude Code, Codex and Grok usage limits run out.*", "url": "https://wpnews.pro/news/limitcast-0-20-11-fixes-a-windows-failure-when-commands-overlap", "canonical_source": "https://dev.to/samstull9007/limitcast-02011-fixes-a-windows-failure-when-commands-overlap-1nbf", "published_at": "2026-11-28 03:07:45+00:00", "updated_at": "2026-11-28 03:13:23.892184+00:00", "lang": "en", "topics": ["ai-tools", "developer-tools", "ai-agents"], "entities": ["Limitcast", "Claude Code", "Codex", "Grok", "npm", "Homebrew", "GitHub", "Node.js"], "also_reported_by": [], "takeaway": "On Windows, retry atomic file renames refused with EPERM, EACCES or EBUSY for up to two seconds instead of failing immediately, which eliminated all 22 of 960 concurrent-run failures in testing.", "recommendation": {"advice": "When writing shared state files on Windows, retry renames refused with EPERM, EACCES or EBUSY for a bounded window and keep command error output in tests so intermittent failures are diagnosable.", "playbook": "production-ops", "playbook_url": "https://wpnews.pro/playbooks/production-ops"}, "alternates": {"html": "https://wpnews.pro/news/limitcast-0-20-11-fixes-a-windows-failure-when-commands-overlap", "markdown": "https://wpnews.pro/news/limitcast-0-20-11-fixes-a-windows-failure-when-commands-overlap.md", "text": "https://wpnews.pro/news/limitcast-0-20-11-fixes-a-windows-failure-when-commands-overlap.txt", "jsonld": "https://wpnews.pro/news/limitcast-0-20-11-fixes-a-windows-failure-when-commands-overlap.jsonld"}}