Repository navigation
Studio: accept .ods files from drag and drop - #9455
Conversation
|
Codex Review: Didn't find any major issues. Can't wait for the next one! 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". |
|
Codex Review: Didn't find any major issues. Can't wait for the next one! 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". |
|
Codex Review: Didn't find any major issues. More of your lovely PRs please. 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". |
…9520) attachment-content.ts imported OPEN_DOCUMENT_SPREADSHEET_MIME and OPEN_DOCUMENT_TEXT_MIME from ./open-document, which exports neither. Both are declared in ./open-document-accept; open-document.ts only imports the first of them from there, so the name existed locally without being re-exported. TS2459 and TS2305, so the frontend build fails on main and on every open pull request that merges it. #9455 and #8655 landed minutes apart. Each was consistent on its own branch and neither could see the other.
Summary
Dragging an
.odsfile into Studio was rejected even though Files -> + -> Add files accepted the same file. Desktop drag and drop derived document support from the narrower RAG allowlist and a separate native policy, while the picker used the OpenDocument composer adapter. The initial native route also bypassed the composer's keyed attachment lifecycle and kept a 25 MiB reader ceiling instead of the picker's 50 MiB OpenDocument limit.The change shares the OpenDocument accept definition, permits
.odsand.odtthrough the native bridge, routes those drops through the existing keyed composer attachment queue rather than RAG, and aligns the native reader with the adapter's 50 MiB archive limit. Other RAG and media upload types keep their existing paths.How to test
test_upload_ods.odsonto a Studio chat and confirm it is accepted and processed as an attachment..pdfand an unsupported file such as.zip; confirm their behavior is unchanged..ods, then switch chats during another drop; confirm the send waits and the attachment stays with its original chat.