[bug]: Changed file diff stays blank in large repositories
Bug Description
In a large monorepo, a changed file diff does not open. The diff editor stays blank. It shows no content and no error.
There are two causes:
- The diff waits behind other git work. All git work for a repository runs one job at a time on one queue, and all worktrees share this queue. In a large repository,
git statusis slow, so the diff can wait for a long time. - The diff editor does not show errors. If a side does not load, the editor treats the error as loading and stays blank.
Steps to Reproduce
- Add a large monorepo as a project.
- Create two or more tasks so that the repository has several worktrees.
- Change a file in one task.
- Open the changed file from the Changes panel.
Actual vs Expected Behavior
Actual: The diff editor stays blank. It shows no loading state and no error.
Expected: The diff opens quickly. If a side cannot load, the editor shows an error message.
emdash Version
1.2.8 (commit ce0e5620d)
Operating System
macOS 26.6.2
Additional Context
The log has many Events were dropped by the FSEvents client. File system must be re-scanned. warnings for the worktrees. Each warning makes the checkout compute status again. This keeps the queue full.
The fix is in https://github.com/generalaction/emdash/pull/3386. Diff content reads use a bounded queue separate from background Git scans. The editor shows loading and error states, with regression tests for contention, cancellation, and recovery.