You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix: phantom grounding/retrieval exports, headless version/doctor; check all sibling seams
Extending the #999 guards to every sibling seam the meta-package
touches. The extended checks immediately found more live bugs, all
fixed here:
- openadapt/__init__.py lazy __getattr__ exported Grounder,
OmniGrounder, and GeminiGrounder from openadapt-grounding and
DemoRetriever/DemoLibrary from openadapt-retrieval. None of these
five names exist in those packages; every one always raised.
Replaced with the real exports (ElementLocator, OmniParserClient,
MultimodalDemoRetriever) and pointed DemoLibrary at openadapt-evals
where it actually lives.
- `openadapt version` imported each sibling package to read
__version__. Importing openadapt-capture takes a screenshot at
module scope (recorder.py), which crashes headless environments
including CI. Now reads importlib.metadata instead of executing
package code. Same fix for `openadapt doctor` (find_spec instead of
__import__).
- tests/test_import_integrity.py: EXTERNAL_PACKAGES extended from just
openadapt_ml to all six sibling packages.
- CI installs all six siblings so every seam is checked on every PR.
The capture-side import side effect (screenshot at module scope) gets
its own fix in openadapt-capture.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
0 commit comments