Hooks (doc-opened, app-init, dialog-showing) never fire — even a bare alert() with no logic

Hooks (doc-opened, app-init, dialog-showing) never fire — even a bare alert() with no logic

Environment: pyRevit 6.1.0.26047+2255 (basepublic deployment), Revit 2026.4, running on CPython 3123 (IronPython 2.7.12).

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

Can you try either

  • turning off the old launcher
  • updating to sth > pyRevit 6.1

hooks was ported to the new launcher only in this PR i think, an is therefore missing in 6.1