fix(codex): accept prepared chat attachments with model overrides

This commit is contained in:
2026-10-20 18:06:11 +01:00
parent 83fef10331
commit 68761652cf
8 changed files with 383 additions and 16 deletions
+18
View File
@@ -24,3 +24,21 @@ prompt. It never calls `thread/resume`, which can awaken a queued goal, nor any
configuration-writing API. The acknowledgement means "saved for the next turn,"
not "remote settings changed." The override is supplied again after a Pipelines
restart; an already-running turn is not reconfigured.
## Attachment inputs
Attachment wire tests also use the installed 0.163.0 tag's
`schema/typescript/v2/UserInput.ts` and `TurnStartParams.ts`. Verified PNG,
JPEG and GIF bytes use `localImage` with an absolute local path. Other files
(including unsupported/corrupt image formats) retain their bytes and use a
`mention` name/path plus an explicit statement that the reference has **not**
loaded their contents: the agent must inspect them with its normal tools.
This does not bypass the thread's sandbox or grant filesystem permissions.
Text inputs include the schema's `text_elements` array.
Only unchanged server-prepared file URIs are admitted; private regular files,
eight-file/1 MiB combined bounds, and image decode allocation bounds are checked
before `turn/start`. Files retain the existing attachment-store retention rules.
History keeps local file/image parts; native image parts use the stored basename
while a companion text input retains the original display name.
All wire tests use fake JSON-RPC servers, never the production control socket.