Allow mocked Codex preflight sessions
This commit is contained in:
parent
7eae6bc950
commit
b9546ba123
|
|
@ -27,6 +27,8 @@ def run_codex_preflight(
|
||||||
session_factory: Callable[..., CodexAppServerSession] = CodexAppServerSession,
|
session_factory: Callable[..., CodexAppServerSession] = CodexAppServerSession,
|
||||||
) -> CodexPreflightResult:
|
) -> CodexPreflightResult:
|
||||||
binary = resolve_codex_binary(codex_binary)
|
binary = resolve_codex_binary(codex_binary)
|
||||||
|
if not binary and codex_binary and session_factory is not CodexAppServerSession:
|
||||||
|
binary = codex_binary
|
||||||
if not binary:
|
if not binary:
|
||||||
raise CodexAppServerBinaryError(codex_binary_error_message(codex_binary))
|
raise CodexAppServerBinaryError(codex_binary_error_message(codex_binary))
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue