Skip to content

0.11.4 — Final release: Windows lease read retry

Latest

Choose a tag to compare

@william-ricchiuti william-ricchiuti released this 30 Oct 21:40
1ae8144

v0.11.4 — Final release: Windows lease read retry

Final release. This supersedes 0.11.3 as the last planned release of opencode-goal-plugin; it carries one bug fix found after 0.11.3 shipped. OpenCode ships a built-in /goal as of v2.2.1; on 2.2.1 and later use the built-in command unless you need this plugin's independent verifier, limits, agent tools or multi-goal sequences. The plugin keeps working on OpenCode 1 and OpenCode 2 and receives bug and security fixes only. With both installed the plugin takes over /goal; set commandName to keep both (see the README).

Install: "plugins": ["opencode-goal-plugin@0.11.4"] (OpenCode 2) or "plugin": [...] plus a goal command entry (OpenCode 1). npm. Versions below 0.11.4 are deprecated on npm in favour of this one.

Changes

  • On Windows, retry a claim read that fails with EPERM, EACCES or EBUSY with the same 10 ms to 160 ms backoff as claim renames and unlinks. Windows keeps a directory entry for a claim another handle still holds open after it was unlinked and refuses to open it until that handle closes, so two plugin instances racing to reclaim a stale lease could end with the loser failing on a permission error instead of reporting the lease as contended (seen once on windows-latest CI, test/persistence-lease.test.js "simultaneous stale observers cannot both acquire the replacement lease"). The test now names the loser's error when it fails.

Everything else is as in v0.11.3.