anomalyco / anomalyco/opencode

pre-push hook (bun typecheck) crashes low-ram machines because of unbounded Turbo concurrency

Open
#38,386 1 comment 0 reactions 1 assignee View on GitHub

@jlongster is already working on this.

Since Jul 22, 2026.

Dominant language
TypeScript
Stars
209k
Forks
27.5k
PR merge metrics
PR metrics pending

Description

Description

My 8GB M1 MacBook Air crashes every time when pushing to my forked repo due to how the pre push hook runs turbo typecheck across every package without a concurrency limit set. Defaulting to 10 parallel tsgo processes, Turbo, completely exhausts the machine's RAM, freezing my machine on every push (use '--no-verify' to avoid). It would be helpful if concurrencies were capped or the task scope was limited to changed packages only.

Plugins

No response

OpenCode version

v1.18.4

Steps to reproduce
  1. Clone the repo with the default .husky/pre-push hook active
  2. Make a commit and run git push without --no-verify
  3. Watch memory spike as ~10 tsgo processes launch simultaneously
Screenshot and/or share link
Image Image Image
Operating System

macOS Sequoia 15.6.1, on a MacBook Air (M1, 2020)

Terminal

VSCode Integrated Terminal

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.