You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
write/edit freezes when writing long content ("Preparing write..." hangs) #20477
When writing or editing files with a large number of lines, the TUI freezes on "Preparing write..." / "Preparing patch..." for several seconds before the permission prompt appears.
Root cause: createTwoFilesPatch (Myers diff, O(N²) in line count) runs synchronously on the main thread before ctx.ask(), blocking the Node.js event loop when content has many lines.
Also observed on Windows: apply_patch throws EEXIST from fs.mkdir when the target directory already exists (Bun 1.3.x bug with recursive:true).
Activity
github-actions commentedon Apr 1, 2026
This issue might be a duplicate of existing issues. Please check:
If your issue is the same as one of these, please comment there instead so efforts can be consolidated.
github-actions commentedon Jul 4, 2026
To stay organized issues are automatically closed after 60 days of no activity. If the issue is still relevant please open a new one.