Check for existing issues
Describe the bug / provide steps to reproduce it
In my custom filesystem (Acode.FS.extend), when I delete a file, Acode immediately removes it from the UI without calling lsDir().
However, after that:
If I create a new file, the UI shows both the new file AND the previously deleted file
The deleted file only disappears when I manually trigger or reopen lsDir()
This suggests Acode is updating the UI optimistically on delete instead of refreshing the directory from the filesystem.
🔁 Steps to reproduce
Open custom FS directory (bota://bots/{botId})
Load files via lsDir()
Delete a file using FS delete()
Observe: file disappears from UI (no lsDir() call happens)
Create a new file using FS createFile()
Observe: UI shows:
new file ✔
previously deleted file ❌ (ghost file)
Only fixed after manually triggering lsDir() again
❗ Expected behavior
After delete or create:
Acode should call lsDir() or fully refresh the directory
UI should always reflect actual filesystem state
❌ Actual behavior
delete() removes item from UI without re-reading FS
lsDir() is not called after delete
UI keeps stale directory state in memory
New file creation merges with stale list, causing ghost deleted entries
Environment
nightly
If applicable, add mockups / screenshots regarding your vision
VID_20260412_114747.mp4
If applicable, attach your Acode.log file to this issue.
No response
Check for existing issues
Describe the bug / provide steps to reproduce it
In my custom filesystem (Acode.FS.extend), when I delete a file, Acode immediately removes it from the UI without calling lsDir().
However, after that:
If I create a new file, the UI shows both the new file AND the previously deleted file
The deleted file only disappears when I manually trigger or reopen lsDir()
This suggests Acode is updating the UI optimistically on delete instead of refreshing the directory from the filesystem.
🔁 Steps to reproduce
Open custom FS directory (bota://bots/{botId})
Load files via lsDir()
Delete a file using FS delete()
Observe: file disappears from UI (no lsDir() call happens)
Create a new file using FS createFile()
Observe: UI shows:
new file ✔
previously deleted file ❌ (ghost file)
❗ Expected behavior
After delete or create:
Acode should call lsDir() or fully refresh the directory
UI should always reflect actual filesystem state
❌ Actual behavior
delete() removes item from UI without re-reading FS
lsDir() is not called after delete
UI keeps stale directory state in memory
New file creation merges with stale list, causing ghost deleted entries
Environment
nightly
If applicable, add mockups / screenshots regarding your vision
VID_20260412_114747.mp4
If applicable, attach your Acode.log file to this issue.
No response