🤖 fix: support JSON attachments#3601
Conversation
|
Codex Review: Didn't find any major issues. Already looking forward to the next diff. Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
834e8e4 to
4cf1aa1
Compare
|
@codex review Rebased this PR onto the latest Validation:
|
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 4cf1aa10ac
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
|
@codex review Addressed the JSON allowlist feedback. JSON remains supported for user-selected chat attachments through a chat-scoped helper, but the shared provider attachment allowlist no longer treats Validation:
|
|
Codex Review: Didn't find any major issues. Delightful! Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
Allow application/json files through the attachment media-type allowlist and file picker, with focused coverage for MIME and extension-based JSON attachment handling. Generated with mux • Model: GPT-5 • Thinking: unknown • Cost: mux-attribution: model=GPT-5 thinking=unknown costs=unknown
Keep JSON support available for user-selected chat attachments while leaving the shared provider attachment allowlist unchanged, so attach_file continues to reject JSON paths for file_read. --- _Generated with `mux` • Model: `GPT-5` • Thinking: `unknown` • Cost: ``_ <!-- mux-attribution: model=GPT-5 thinking=unknown costs=unknown -->
35ff6ea to
9181e19
Compare
|
@codex review Rebased onto the latest Validation: 40 focused tests passed; focused ESLint, Prettier, and TypeScript checks passed; |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 9181e190d3
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
|
@codex review Addressed the generic-MIME JSON feedback in Validation: 41 focused tests passed; focused ESLint, Prettier, and TypeScript checks passed; |
|
Codex Review: Didn't find any major issues. Already looking forward to the next diff. Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
Summary
Allow JSON files to be attached in the chat composer while keeping the shared provider attachment allowlist restricted to model-supported media types.
Background
Fixes #3546. JSON files were rejected by the chat composer even though they can be carried through the existing generic file-part send path. The agent-facing
attach_filetool must still reject JSON so agents usefile_readfor text files.Implementation
application/jsonand.jsonwithout expanding the shared provider attachment allowlist.attach_fileboundary.Validation
tsgo --noEmit --project tsconfig.jsonpassedgit diff --checkpassedmake static-checkpassedRisks
Low. JSON support is scoped to user-selected chat attachments. The provider media allowlist and agent
attach_filebehavior remain unchanged.Generated with
mux• Model:GPT-5• Thinking:unknown• Cost:$unknown