Skip to content

Studio: accept .ods files from drag and drop - #9455

Merged
danielhanchen merged 9 commits into
unslothai:mainfrom
Etherll:fix/studio-ods-drag-drop
Aug 22, 2026
Merged

danielhanchen merged 9 commits into
unslothai:mainfrom
Etherll:fix/studio-ods-drag-drop

Conversation

@Etherll

@Etherll Etherll commented Aug 21, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

Dragging an .ods file 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 .ods and .odt through 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

  1. Drag test_upload_ods.ods onto a Studio chat and confirm it is accepted and processed as an attachment.
  2. Select the same file through Files -> + -> Add files and confirm it still works.
  3. Drop a supported RAG document such as .pdf and an unsupported file such as .zip; confirm their behavior is unchanged.
  4. Start a send immediately after dropping an .ods, then switch chats during another drop; confirm the send waits and the attachment stays with its original chat.
  5. Run:
node --experimental-strip-types --test tests/native-drop-paths.test.ts
npm run typecheck
npm run build
cargo test --manifest-path studio/src-tauri/Cargo.toml native_intents

chatgpt-codex-connector[bot]

This comment was marked as resolved.

chatgpt-codex-connector[bot]

This comment was marked as resolved.

chatgpt-codex-connector[bot]

This comment was marked as resolved.

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Can't wait for the next one!

Reviewed commit: 7a9c886c97

ℹ️ 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".

@Etherll
Etherll marked this pull request as ready for review August 21, 2026 16:09
chatgpt-codex-connector[bot]

This comment was marked as resolved.

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Can't wait for the next one!

Reviewed commit: 1bfc9c8183

ℹ️ 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".

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. More of your lovely PRs please.

Reviewed commit: e944de7a21

ℹ️ 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".

@unslothai unslothai deleted a comment from chatgpt-codex-connector Bot Aug 21, 2026
@unslothai unslothai deleted a comment from chatgpt-codex-connector Bot Aug 21, 2026
@unslothai unslothai deleted a comment from chatgpt-codex-connector Bot Aug 21, 2026
@unslothai unslothai deleted a comment from chatgpt-codex-connector Bot Aug 21, 2026
@danielhanchen
danielhanchen merged commit 501319b into unslothai:main Aug 22, 2026
40 of 41 checks passed
danielhanchen added a commit that referenced this pull request Aug 22, 2026
…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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants