I have a hooks/ folder at my extension root (MyTools.extension\hooks\), containing doc-opened.py, app-init.py, and dialog-showing.py. As a diagnostic, I stripped doc-opened.py down to nothing but:
python
from pyrevit.forms import alert
alert("doc-opened hook FIRED")
This never fires, even opening a normal document with no other conditions. I’ve confirmed:
Folder is at the extension root, correctly named hooks, files correctly named/typed (.py, not hidden .txt)
Forced a full Ctrl+Shift cache-clearing reload
Searched the full pyRevit debug log (File Debug Logging enabled) for “hook” — zero matches anywhere in the session log