Skip to content

fix(cli): bound server readiness polling#801

Open
Ghraven wants to merge 1 commit into
apache:mainfrom
Ghraven:fix-cli-open-ready-timeout
Open

fix(cli): bound server readiness polling#801
Ghraven wants to merge 1 commit into
apache:mainfrom
Ghraven:fix-cli-open-ready-timeout

Conversation

@Ghraven
Copy link
Copy Markdown
Contributor

@Ghraven Ghraven commented Jun 5, 2026

Problem

open_when_ready() polls the local server readiness URL before opening the browser, but the requests.get() call has no timeout. If the readiness endpoint accepts a connection and then stalls, the polling thread can block indefinitely instead of retrying.

Before / After

Before, a stalled readiness request could hang inside requests.get().

After, the readiness poll uses a small named timeout and keeps the existing retry behavior for request exceptions.

Verification

  • python -m pytest tests/cli/test_main.py

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.

1 participant