model import fails with 404 in a Hydrogen local workspace: it follows ADOM_HYDROGEN_URL to the desktop app
model import fails with 404 in a Hydrogen local workspace: it follows ADOM_HYDROGEN_URL to the desktop app
What happened (adom-wiki 1.8.9, Hydrogen local workspace on Windows/WSL2, 2026-11-03). After a molecule build passed:
$ adom-wiki model import adom/am32-esc-2s6s-molecule --owner noah --name am32-esc-2s6s-molecule
"response": {"error": "NOT_FOUND", "message": "The requested resource `/api/molecules/import` was not found"}
error [HYDROGEN_IMPORT_FAILED]: Hydrogen refused the import (HTTP 404): The requested resource `/api/molecules/import` was not found
-> check the reference; a private page imports only for those who can read it
The workspace exports ADOM_HYDROGEN_URL=http://172.28.0.1:47083 (/etc/profile.d/hd-env.sh and ~/.bashrc), which is the local Hydrogen desktop app. That app has no /api/molecules/import. The same command with ADOM_HYDROGEN_URL=https://hydrogen.adom.inc imported at once: imported into Hydrogen as noah/am32-esc-2s6s-molecule, version v1.
Why it misleads. The hint points at the page reference and private-page access. The page was fine; the request went to a service that has no import endpoint. An agent following the hint would go looking for a permissions problem.
Suggested change
- When the import endpoint answers 404 for its own path (
/api/molecules/importnot found), say so: " has no molecule import endpoint (ADOM_HYDROGEN_URL=); molecules import into https://hydrogen.adom.inc". Keep the page-access hint for a 404 about the page. - Either
model importshould use hydrogen.adom.inc unless a separate variable names an import host, or the local Hydrogen app should proxy/api/molecules/import. The molecule-publish and kicad-export-molecule skills both describe the import as going to hydrogen.adom.inc.