Merge pull request #225 from Molecule-AI/fix/issue-215-register-auth

fix(workspace-template): add auth_headers() to /registry/register POST
This commit is contained in:
Hongming Wang 2026-04-15 11:58:53 -07:00 committed by GitHub
commit 38fcb8a374
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -30,6 +30,7 @@ from initial_prompt import (
mark_initial_prompt_attempted,
resolve_initial_prompt_marker,
)
from platform_auth import auth_headers
def get_machine_ip() -> str: # pragma: no cover
@ -203,6 +204,7 @@ async def main(): # pragma: no cover
"url": workspace_url,
"agent_card": agent_card_dict,
},
headers=auth_headers(),
)
print(f"Registered with platform: {resp.status_code}")
# Phase 30.1 — capture the auth token issued at first register.