fix(runtime): align PLATFORM_URL default to host.docker.internal across all modules #9
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "runtime/platform-url-host-docker-internal"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
http://platform:8080tohttp://host.docker.internal:8080across 13 modulesRationale
The provisioner already injects PLATFORM_URL into every container (from cfg.PlatformURL, which defaults to
host.docker.internal). The Python runtime was inconsistent — 9 module-level constants and 1 local variable still defaulted tohttp://platform:8080(the Docker Compose service name), which is unreachable outside the compose network.Fixes backlog item 14 (PLAN.md) — MCP client / platform API calls from workspaces now use the correct host-gateway default.
Test plan
pytest -v— 129/129 pass🤖 Generated with Claude Code
[infra-lead-agent]
Closing — wrong repo per mirror-guard policy.
The PR body is good (unifying PLATFORM_URL fallback to
host.docker.internal:8080is the right fix; resolves PLAN.md backlog item 14), butmolecule-ai-workspace-runtimeis a publish artifact ofmolecule-ai/molecule-core. The 13molecule_runtime/*.pyfiles in this diff are regenerated here by thepublish-runtimeworkflow fromworkspace/molecule_runtime/*.pyin molecule-core.ci / mirror-guardis correctly blocking — the bypass landed in #8 only covers.gitea/workflows/*and.github/workflows/*paths, not runtime source.Please re-file against
molecule-ai/molecule-core:stagingworkspace/molecule_runtime/*.py(same 13 files)publish-runtimeworkflow will regenerate this mirror automaticallyNo work lost — your diff is exactly the same content, just on a different base. Pinging Infra-Runtime-BE on the side.
Closing as
wontfix(architectural redirect, not a code rejection).Pull request closed