Org-roam--update-file-name-on-title-change works discontinuously

Framework: - Emacs: GNU Emacs 26.3 (build 1, x86_64-apple-darwin18.2.0, NS appkit-1671.20 Version 10.14.3 (Build 18D109))
of 2019-09-02

  • Org: Org mode version 9.4 (9.4-elpa @ /Users/giulio/.emacs.d/elpa/org-20200914/)
  • Org-roam: 1.2.1

Changing the title sometimes updates the filename sometimes doesn’t. I cannot consistently reproduce. Most of the times it does not, but I have two files for which after fiddling long enough with the title it does.

TIA.

I’ll need more info than this.

What is the original title and file name? What are your expected results?

Original #+title: why books dont work
Filename: [date-time stamp]-why_books_dont_work.org

New #+title: why books dont always work

I expect the file name to be modified to:
Filename: [original date-time stamp]-why_books_dont_always_work.org

Are my expectations correct?

See https://github.com/org-roam/org-roam/pull/1113, hopefully that resolves the unexpected behaviour you are seeing.