You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Use native attachment flags for codex (-i) and opencode (-f) instead of prompt-text paths #176
codex exec -i screenshot.png attaches images to the initial prompt, and opencode run -f <file> attaches files directly (codex cheat sheet, opencode CLI docs). Solenta flattens all attachments, for every provider, into a prompt-text section "- Image: /abs/path ... Inspect them with your file tools" (electron/runner.js:3399-3410).
Impact
The text-path workaround costs a tool round-trip, fails when the agent's sandbox or permissions cannot read the path (compounds the codex read-only sandbox issue), and bypasses the CLIs' own image preprocessing.
Fix direction
Pass the native flag per provider in buildArgs (attachments are already sanitized upstream at electron/runner.js:3376-3391); keep the prompt-text fallback for providers without a flag.
Codex vision models now pass image attachments as codex exec -i <path>… (after exec / exec resume <id>, before --json so clap FILE... cannot swallow the trailing prompt). Spark (gpt-5.3-codex-spark) is text-only and does not get -i; its images stay in the prompt-path list, same as folders/files (no native folder/file flag). Tokens stay in env, never argv.
Tests: electron/test/codex.test.js (runner argv) and electron/test/providers.test.js (buildArgs). Parent epic #1162. OpenCode -f and Spark composer hide are not in this change (#1167 still open).
Activity
currentbits commentedon Sep 9, 2026
Codex vision models now pass image attachments as
codex exec -i <path>…(afterexec/exec resume <id>, before--jsonso clap FILE... cannot swallow the trailing prompt). Spark (gpt-5.3-codex-spark) is text-only and does not get-i; its images stay in the prompt-path list, same as folders/files (no native folder/file flag). Tokens stay in env, never argv.Tests: electron/test/codex.test.js (runner argv) and electron/test/providers.test.js (buildArgs). Parent epic #1162. OpenCode
-fand Spark composer hide are not in this change (#1167 still open).