Templates are only added to an existing note if executed twice in reading-mode

Steps to reproduce

template-file templates/books:

categories: “[[books]]”

  1. setup: create template file; add the templates folder to the templates core plugin
  2. view an existing note in reading-mode (not previously opened in editor-mode)
  3. add the template (core-plugin) above
  4. see, that nothing happens
  5. do step 2 again
  6. see, that the property and value are added

Did you read and follow the Troubleshooting Guide ? [Yes/No]

yes

Expected result

The template should be added at the first time.

Actual result

The template is added at the second time of command execution.

Environment

  • macOS
  • no console output

Additional information

  • if the editor mode is opened first, the template is added at the first time

Note: HTML-formatting from text-editor broke content:

`template file: templates/books`:
`—`
`categories: “[[books]]”`
`—`

I’m surprised templates are applied at all in reading view. I would think they shouldn’t be, since it’s not an editing mode. But on the other hand, reading view seems to have exceptions for properties (there’s a feature request asking to change this) and task list checkboxes.

I was surprised as well that the Templates: Insert template command showed up in Reading view; I don’t think I’ve ever tried to insert a template in while in Reading view.

Can confirm; both notes are in Reading view and require running the command twice. I thought maybe there would be a difference if the note had any content or not, but that doesn’t seem to be the case.

CleanShot 2026-10-31 at 09.34.07

SYSTEM INFO:
	Obsidian version: 1.15.0
	Installer version: 1.14.5
	Operating system: Darwin Kernel Version 27.2.0: Thu Oct 15 00:02:46 PDT 2026; root:xnu-13432.41.4~25/RELEASE_ARM64_T6000 27.2.0

Yes this feels strange.