mirror of
https://github.com/openai/codex.git
synced 2026-11-27 23:31:09 +00:00
Support image attachments in agents overview background tasks (#44027)
## Why The agents overview submitted background task prompts as plain text, without image attachments or their text elements. ## What changed - Enable image pasting in the overview composer and include attachments and text elements in the first task prompt. - Resolve local image paths and send image bytes when using a remote workspace. - Reject image inputs for models declared text-only before starting a thread. - Restore unsent text and attachments after failures, or show image reattachment paths when a newer draft prevents restoration. ## Testing Add tests for attachment rendering and submission, remote image payloads, draft recovery without overwriting newer text, and text-only model rejection. GitOrigin-RevId: 08e3db8bace51ec007f5741f1b2be94658cbaea4
This commit is contained in:
1 parent
7aba218851
commit
2ce38ae6d8
6 files changed
+365
-20
No files matched your search
@@ -278,7 +278,7 @@ pub(crate) enum AppEvent {
|
||||
},
|
||||
/// Start a background task directly from the shared dashboard.
|
||||
DispatchAgentsOverviewTask {
|
||||
prompt: String,
|
||||
prompt: UserMessage,
|
||||
cwd: Option<AbsolutePathBuf>,
|
||||
},
|
||||
/// Rename a task directly from the shared dashboard.
|
||||
|
||||
Reference in new issue
Block a user