fix(macos-container): launch gateway as a module, not /app/gateway_init.py #428
Reference in New Issue
Block a user
Delete Branch "fix-gateway-package-paths"
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?
Closes #427.
bot_bottle/backend/macos_container/infra.pyspawned the gateway supervisor aspython3 /app/gateway_init.py.5ad3449movedbot_bottleinto a pip-installed package, so that file no longer exists — the supervisor never started, mitmdump never generated its CA, andbot-bottle startdied downstream withGatewayError: gateway CA not available, which points at TLS rather than at the supervisor.Same defect
127ba49fixed for firecracker. It survived on macOS because CI has no Apple Container runner (#426).test_macos_infraasserted the substring"gateway_init.py", which the broken path satisfies, so it stayed green. Tightened to the module form, matching the assertion127ba49already made intest_firecracker_infra_vm.Verification
Verified end to end on the macos-container backend: gateway image builds, CA is generated (fingerprint printed), agent registers, supervise MCP is wired, and a headless bottle runs a prompt to completion and exits 0.
Full unit suite: 1879 passing.
Note
This branch originally also carried fixes for
pyproject.toml,Dockerfile.gateway, andbot_bottle/backend/firecracker/infra_vm.py. All three had already been fixed independently onmain(0d69667,127ba49) — they were dropped when the branch was rebased. What remains is only the macOS-specific defect.83e8468927to44479f328e