Skip to content

Stop Git status process storms - #47

Merged
budah1987 merged 4 commits into
bbamir/mainfrom
codex/git-status-process-storm
Aug 13, 2026
Merged

budah1987 merged 4 commits into
bbamir/mainfrom
codex/git-status-process-storm

Conversation

@budah1987

Copy link
Copy Markdown
Owner

Summary

  • remove one git diff --no-index --numstat process per untracked file from automatic workspace status
  • keep untracked line counts unknown until a bounded, on-demand diff requests them
  • apply the 5,000-file limit before per-file untracked diff work starts
  • cancel queued or active daemon status work when the server request times out
  • preserve shared status work while another subscriber still waits
  • bump the host-daemon protocol to 103

Performance

A repeatable status benchmark with 2,000 untracked files now uses 9 Git processes. The previous code path required 2,009 processes.

Three measured patched runs completed in 110 ms, 111 ms, and 119 ms. A final run completed in 128 ms.

Validation

  • @bb/host-workspace: 210 tests passed
  • @bb/host-daemon-contract: tests passed
  • @bb/host-daemon: 563 tests passed
  • server hub: 22 tests passed
  • Turbo typecheck passed for workspace, contract, daemon, and server
  • focused ESLint passed
  • Git whitespace check passed

Upstream report: get-bb#1489

@budah1987
budah1987 force-pushed the codex/git-status-process-storm branch from f962474 to 453d628 Compare August 13, 2026 05:37
@budah1987
budah1987 merged commit 1701a8a into bbamir/main Aug 13, 2026
10 checks passed
@budah1987
budah1987 deleted the codex/git-status-process-storm branch August 13, 2026 06:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant