Skip to content

armgit / avibe

Public Imported from GitHub
0

Make your computer a home for your AI partner. Avibe is the local-first Agent OS: Vibey, its built-in AI partner, works out of the box, and Claude Code, Codex & OpenCode run unchanged beside it — reach them from your browser, phone, or any chat app.

fix(backends): make Codex 'Test connection' actually run the probe

cyheb0d57443b6a
diff --git a/core/agent_auth_service.py b/core/agent_auth_service.py
index 819f54fa7..ffcabdf27 100644
--- a/core/agent_auth_service.py
+++ b/core/agent_auth_service.py
@@ -1438,16 +1438,24 @@ class AgentAuthService:
except Exception:
pass
else:
- # Codex single-shot mode. ``-q`` would silence the rendered
- # response — we want stdout so the UI can show a one-line
- # excerpt as proof the round-trip succeeded.
- cmd = [binary, "exec", prompt]
+ # Codex single-shot mode. ``--skip-git-repo-check`` bypasses
+ # Codex's per-project trust gate — the UI server's cwd is
+ # never in the user's trusted-projects list, so without it
+ # Codex bails before talking to the API. ``-q`` would silence
+ # the rendered response; we want stdout so the UI can show a
+ # one-line excerpt as proof the round-trip succeeded.
+ cmd = [binary, "exec", "--skip-git-repo-check", prompt]
env_override = dict(os.environ)
started = time.monotonic()
try:
process = await asyncio.create_subprocess_exec(
*cmd,
+ # Close stdin explicitly — Codex's ``exec`` mode reads a
+ # second prompt from stdin when the parent's stdin is
+ # open (e.g. ``codex exec "Hi" < /dev/null`` works fine,
+ # but inheriting an open stdin makes it block forever).
+ stdin=asyncio.subprocess.DEVNULL,
stdout=asyncio.subprocess.PIPE,
stderr=asyncio.subprocess.PIPE,
env=env_override,