modly icon indicating copy to clipboard operation
modly copied to clipboard

Model extension install can finish without runtime registration

Open DrHepa opened this issue 4 months ago • 0 comments

Describe the bug

A model extension can be shown as installed while its IDs are absent from the Python registry. Workflows then return Unknown model ID, and /extensions/errors remains empty.

When an extension with setup.py has no usable venv, the registry falls back to direct loading, does not add the extension root to sys.path, and drops discovery exceptions. Installer completion also does not validate the expected IDs.

Steps to reproduce

  1. Install a model extension whose root generator imports a sibling package.
  2. Interrupt setup or remove its platform venv executable.
  3. Start or reload Modly and request its node.

Expected behavior

The extension requires Repair, discovery errors are exposed, and installation only completes after all expected IDs are registered.

Actual behavior

Direct discovery fails with No module named 'pixal3d_extension'; load_errors() is empty; generation returns Unknown model ID: pixal3d/generate; a stale .modly-incomplete folder can appear as a blank duplicate card.

Modly version

v0.4.1 and dev 088b25b91ec41de8c944bee630140b9c5cf86f99.

Operating system

Reported on Windows 11; reproduced in an isolated Linux registry harness.

Screenshots & logs

[Registry] ERROR loading extension 'pixal3d': No module named 'pixal3d_extension'
{"detail":"Unknown model ID: pixal3d/generate"}

Confirmation

  • [x] I searched existing issues.
  • [x] I reproduced this on the latest dev branch.

DrHepa avatar Jul 25 '26 07:07 DrHepa