Markdown Edits from agent not picked up until file is opened

So this one has been ongoing for a long time so i figured i should add a report. I have my IDE set to open MD files in preview mode automatically. This might be part of the issue. I am Using composer agent. New markdown files generate fine. updates to existing md files sometimes work but other times my IDE isnt showing any files being updated. if i then click on the file that was supposedly updated when it opens it will register as being unsaved. if i save it then git recognizes it, as it should, and things are fine. sometimes though because my md files open in preview mode first, the preview will have stale data, if i double click it to exit preview mode and see the working doc it will register as unsaved and then i can save and things work properly. so the main issue seems to be that the md files that get updated for some reason dont register as changed files and therefor don’t show any changes in git or even in the preview sometimes. so im not sure if this is because of my default preview mode setting or if its something markdown file specific. It seems cursor is updating the file correctly but something in the process causes it not to be picked up until the file is opened.