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(codex): clarify generated image paths

cyh60710e16fe46
diff --git a/modules/agents/codex/agent.py b/modules/agents/codex/agent.py
index e28eb110e..a36a04e4c 100644
--- a/modules/agents/codex/agent.py
+++ b/modules/agents/codex/agent.py
@@ -19,7 +19,9 @@ logger = logging.getLogger(__name__)
_CODEX_GENERATED_IMAGE_PROMPT = (
"If you generate an image with Codex, include it in the final reply with Markdown image syntax: "
- "`![generated image](file:///absolute/path/to/image.png)`"
+ "`![generated image](file:///absolute/path/to/image.png)`. "
+ "Use only a local absolute path readable by Vibe Remote, never sandbox paths like `/mnt/data/...`; "
+ "if no such path is available, leave the final reply empty."
)
diff --git a/tests/test_codex_agent.py b/tests/test_codex_agent.py
index 726db113f..9cf1af460 100644
--- a/tests/test_codex_agent.py
+++ b/tests/test_codex_agent.py
@@ -713,6 +713,9 @@ class CodexAgentPayloadTests(unittest.IsolatedAsyncioTestCase):
self.assertTrue(items[0]["text"].startswith("If you generate an image with Codex"))
self.assertIn("![generated image](file:///absolute/path/to/image.png)", items[0]["text"])
+ self.assertIn("local absolute path readable by Vibe Remote", items[0]["text"])
+ self.assertIn("never sandbox paths like `/mnt/data/...`", items[0]["text"])
+ self.assertIn("leave the final reply empty", items[0]["text"])
self.assertTrue(items[0]["text"].endswith("hello"))
async def test_start_turn_uses_sandbox_policy_object(self):