What happened?
I removed a room from the MemPalace config, but the files that had already been indexed for that room were still present in the palace after running init again.
I also noticed that MemPalace still mines files ignored by the project’s .gitignore, which causes over-indexing. In my case, files under storage/ and the fallback general room were still counted even though they were no longer in the room list.
What did you expect?
- A way to re-index a project after config changes.
- Re-indexing should re-read the current config and apply room additions/removals.
- Files excluded by the project’s
.gitignore should not be mined.
- If a room is removed, stale indexed content for that room should be removed or rebuilt.
How to reproduce:
- Create a project and run
mempalace init <project>.
- Remove a room from the generated config.
- Screenshot:

- Run
mempalace mine <project>.
- Screenshot:

- Observe that
storage/ and general/ are not in the room list, but the scan still counts files from those folders.
- Screenshot:

- Run
mempalace init <project> again.
- Observe that the previously indexed content from the removed room is still present.
Suggested improvement
- Add a re-index command or flag that reloads the current config.
- Re-indexing should remove stale drawers from deleted rooms/files.
- Re-indexing should optionally rebuild the palace from scratch.
- Mining should respect the project’s
.gitignore to avoid indexing ignored files and folders.
Environment:
- OS: Ubuntu 22.04.1 LTS on WSL2
- Kernel: Linux 6.6.87.2-microsoft-standard-WSL2
- Python version: 3.10.12
- MemPal version: 3.0.0
- Shell: fish 3.6.0
- Install location:
/home/hungpv/.local/lib/python3.10/site-packages
What happened?
I removed a room from the MemPalace config, but the files that had already been indexed for that room were still present in the palace after running
initagain.I also noticed that MemPalace still mines files ignored by the project’s
.gitignore, which causes over-indexing. In my case, files understorage/and the fallbackgeneralroom were still counted even though they were no longer in the room list.What did you expect?
.gitignoreshould not be mined.How to reproduce:
mempalace init <project>.mempalace mine <project>.storage/andgeneral/are not in the room list, but the scan still counts files from those folders.mempalace init <project>again.Suggested improvement
.gitignoreto avoid indexing ignored files and folders.Environment:
/home/hungpv/.local/lib/python3.10/site-packages