fix(tui): handle images with codex app-server

This commit is contained in:
Fewmanism
2026-05-15 04:28:44 +09:00
committed by Teknium
parent 7ce6b504a2
commit 83f6a83b24
3 changed files with 78 additions and 2 deletions

View File

@@ -3350,6 +3350,8 @@ def _run_prompt_submit(rid, sid: str, session: dict, text: Any) -> None:
_read_main_model(),
_cfg,
)
if getattr(agent, "api_mode", "") == "codex_app_server":
_mode = "text"
except Exception as _img_exc:
print(
f"[tui_gateway] image_routing decision failed, defaulting to text: {_img_exc}",