Commit e889725
Fix file switching blocked by stale dirty state from previous file
When navigating via sidebar while editing a file, the global editorDirty
flag from the previous file incorrectly triggered the "File changed on
disk" defer logic for the newly opened file. Skip the defer check for
intentional frontend navigations and reset dirty state on switch.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>1 parent 92318db commit e889725
1 file changed
Lines changed: 4 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
914 | 914 | | |
915 | 915 | | |
916 | 916 | | |
917 | | - | |
| 917 | + | |
918 | 918 | | |
919 | 919 | | |
920 | 920 | | |
| 921 | + | |
| 922 | + | |
| 923 | + | |
921 | 924 | | |
922 | 925 | | |
923 | 926 | | |
| |||
0 commit comments