Skip to content

Allocate local viewer ports atomically through the container engine - #429

Open
Sinkleberg wants to merge 1 commit into
TIGER-AI-Lab:mainfrom
Sinkleberg:codex/local-viewer-port
Open

Sinkleberg wants to merge 1 commit into
TIGER-AI-Lab:mainfrom
Sinkleberg:codex/local-viewer-port

Conversation

@Sinkleberg

Copy link
Copy Markdown

What does this PR do?

Lets the container engine allocate and hold each local viewer port on loopback, then resolves the published port for noVNC URLs and run metadata. Removes the bind-and-close selection race, preserves explicit mappings and Podman network flags, and cleans up a newly started container if port lookup fails. Default batch concurrency is unchanged.

Corpus

  • not applicable

Test plan

  • Ruff lint/format, Pyright, Markdown links, package/twine checks and CLI help passed.
  • Host tests: 351 passed, 2 optional SDK skips; 42 focused regressions passed.
  • Real Docker baseline collision reproduced; three concurrent synthetic human/agent pairs received distinct loopback ports with correct routing, reservation and release. Explicit-port probe passed with a validation-only loopback binding; actual Podman runtime was unavailable.

Related issues

Fixes #425.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Concurrent Docker runs can be given the same noVNC port

1 participant