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
Commit 55076fa
Browse filesBrowse the repository at this point in the historyBrowse files
AGI Developer
committed
fix: background editing bugs with PREVENT_FOCUS_DISRUPTION flag
Root cause fixes for user-reported issues:
1. Files opening in editor tabs during background editing
2. 'Unsaved changes' prompts when closing tabs after background edits
Changes:
- WriteToFileTool: add missing saveDirectly() call (primary bug - code fell
through to duplicated else-branch that opened diff view instead)
- EditFileTool: fix openFile parameter from isNewFile (true for new files) to false
- ApplyDiffTool, SearchReplaceTool, EditTool: add isWriteProtected parameter
for consistency across all tool implementations
- ApplyPatchTool: add isWriteProtected + remove broken duplicate function stub
(syntax error on lines 232-255)
- DiffViewProvider.saveDirectly(): add content verification with retry logic,
user edit detection via getText(), protected file override, auto-approval check
- Tests: update saveDirectly tests with fs/promises mocks
All 8 files changed are directly related to background editing behavior and
work in conjunction with the PREVENT_FOCUS_DISRUPTION experiment flag.
0 commit comments