MCPcopy Create free account
hub / github.com/Tron521/codex-console-temp / _runner

Function _runner

start_webui.py:228–235  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

226 return None
227
228 def _runner() -> None:
229 try:
230 wait_for_http(url, timeout_seconds)
231 except Exception as exc:
232 log(f"浏览器自动打开前的可访问性检测失败: {exc}", "WARN")
233 return
234 webbrowser.open(url)
235 log(f"已尝试打开浏览器: {url}")
236
237 thread = threading.Thread(target=_runner, name="webui-browser", daemon=True)
238 thread.start()

Callers

nothing calls this directly

Calls 2

wait_for_httpFunction · 0.85
logFunction · 0.85

Tested by

no test coverage detected