Patches applied on top of the upstream anomalyco/opencode tag when
engine-release.yml builds a v<upstream>-openwork.N release.
dev— pristine mirror ofanomalyco/opencode#dev(fast-forwarded daily byupstream-sync.yml; never commit here).openwork-dev— default branch: upstreamdev+ this directory + the OpenWork workflows. Patches and workflow changes land here via PRs.
- Branch off the upstream tag you target:
git checkout -b fix v1.16.2 - Commit your fix with a clear message.
- Export it:
git format-patch -1 --zero-commit -o openwork/patches/ - Commit the
.patchfile toopenwork-devand re-runengine-release(bump the-openwork.Nsuffix).
Patches are applied with git am in filename order. Keep them small,
upstream them when possible, and delete them once upstream ships the fix.
Actions → engine-release → run with upstream_ref (e.g. v1.16.2) and
version (e.g. 1.16.2-openwork.1).
The OpenWork repo pins opencodeVersion (and repo) in constants.json;
release assets keep upstream naming (opencode-darwin-arm64.zip, ...).