anomalyco / anomalyco/opencode
typecheck workflow has no concurrency group, so stale runs are never cancelled
@nexxeln is already working on this.
Since Aug 24, 2026.
- Dominant language
- TypeScript
- Stars
- 209k
- Forks
- 27.5k
- PR merge metrics
- PR metrics pending
Description
Description
typecheck.yml has no concurrency block, so pushing again to a PR leaves the previous typecheck run going instead of cancelling it. test.yml already handles this.
This is visible in the run history. For one push to the zed-acp-docs PR:
testrun32718073842was cancelled after 9m37s when the next push arrived, which is its concurrency group working.typecheckrun32718073884, from that same push, ran to completion (1m9s) and was never cancelled, then32718860388started on top of it.
So every extra push to a PR burns another full typecheck on a blacksmith-4vcpu-ubuntu-2404 runner for a result nobody looks at.
test.yml already has a group expression that handles the dev-branch case correctly — it keeps every run on dev so cancelled checks don't pollute the default branch history, while letting PR runs cancel stale ones. The same expression applied to typecheck.yml would fix this.
containers.yml, generate.yml and docs-locale-sync.yml also run without a concurrency group, but I left those alone since cancelling them mid-run may not be safe in the same way.
Steps to reproduce
- Push to a PR branch twice in quick succession
gh run list --workflow=typecheck.yml— the earlier run is still in progress or completed rather than cancelled- Compare with
gh run list --workflow=test.ymlfor the same pushes, where the earlier run is cancelled
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.