Skip to content

Studio: read more chat attachment formats, and hand the rest to the python tool - #11379

Merged
danielhanchen merged 106 commits into
unslothai:mainfrom
Lyxot:studio-more-attachment-formats
Sep 27, 2026
Merged

danielhanchen merged 106 commits into
unslothai:mainfrom
Lyxot:studio-more-attachment-formats

Conversation

@Lyxot

@Lyxot Lyxot commented Sep 20, 2026 •

Copy link
Copy Markdown
Collaborator

Built on #12001 and #12017

This PR is a layer on top of the Library work in #12001 (document viewer) and #12017 (attachment cards and chips), both now merged into main.

Rebuilt so it no longer duplicates the stack:

What this layer adds:

  • RTF attachments.
  • HEIC, HEIF, AVIF, BMP and TIFF images converted to JPEG or PNG before they reach the model.
  • .m2ts video, and .ts/.mts files told apart by their bytes, so TypeScript stays text and MPEG transport streams go down the video path.
  • Tool-only data, database, archive and document formats copied into the chat's sandbox when the python tool runs, with a one-line note telling the model where the file is and how to open it.

The description below is the original one and still mentions the parts that were moved out.


Summary

Unsloth Studio chat rejected many common files: Excel workbooks and templates, PowerPoint decks, RTF, Pages/Numbers/Keynote documents, iPhone photos (HEIC), AVIF/BMP/TIFF images, Blu-ray .m2ts clips, and data or archive files such as .parquet, .sqlite or .zip. Dropping one showed an "unsupported" toast. Camcorder .mts and broadcast .ts video was worse: it was accepted as TypeScript and sent to the model as garbled UTF-8 text. This PR accepts them through the file picker, paste, and desktop drag-and-drop/paste, using two routes:

  • Inline route (every model, with or without tools). The browser extracts text or converts the file and sends it in the message, as it already does for PDF, DOCX and OpenDocument. Models without tools can still read attachments.
  • Python-tool route (when the selected model runs Unsloth Studio's python tool). Document attachments are also uploaded and copied into the chat's sandbox working directory, and the message names the path. The model can then open the original file with pandas, pyarrow, PyMuPDF and similar libraries instead of relying only on extracted text. Formats the browser cannot read at all are accepted only on this route.

What changed

Inline formats

  • .xlsx/.xlsm/.xltx/.xltm: sheets in workbook order, hidden sheets/rows/columns skipped, shared and inline strings, booleans, errors, dates and times from number formats (including the 1904 date system). Read in-house with fflate + DOMParser, reusing the OpenDocument archive and XML size caps.
  • .pptx/.pptm/.ppsx: visible slides in deck order, text frames and tables, [Slide N] headers.
  • .rtf: groups, control words, hex and \u escapes, fields and tables. \'xx bytes decode by the current font's \fcharset, falling back to \ansicpg, because TextEdit writes \ansicpg936 with cp1252 bytes.
  • HEIC/HEIF → JPEG, and AVIF/BMP/TIFF → PNG, in the vision adapter, the compare composer and desktop drop. The backends only take JPEG/PNG/WebP/GIF. Conversion holds send, and a file that fails to convert fails alone.
  • .pages/.numbers/.key (iWork 2013 and later): a small in-house reader for the zip of Snappy-compressed protobuf archives (Index/*.iwa) iWork writes, which has no published schema. Pages gives the body text; Keynote gives visible slides in deck order with [Slide N] headers (builds, templates and speaker notes left out, as for PPTX); Numbers gives each sheet's text boxes and tables as tab-separated rows, with numbers printed exactly from their decimal128 form, dates, booleans and rich-text cells. The reader keeps the Office archive caps and bounds every allocation and every walk by input size: one Snappy output buffer per archive, a per-object and per-row charge against size budgets, each object walked at most once per document, and table rows read only while the text budget lasts, so floods of empty chunks, records, references, shared slides, list entries or blank rows are refused or cut short instead of exhausting memory or freezing the composer.
  • .m2ts video, matched by extension only: browsers give TypeScript .ts files the same video/mp2t MIME type.
  • .mts/.ts fix: a file is treated as an MPEG transport stream when three consecutive 188-byte packets (192 for M2TS) start with the 0x47 sync byte, in the composer, desktop drop and clipboard readers. Streams go down the video path as video/mp2t; TypeScript stays text, including files the browser labels video/mp2t. The native readers take .ts/.mts under the video cap and reapply the text cap once the bytes say TypeScript, and the video reference slot accepts both.

Python-tool route

  • POST /api/chat/attachment-files: an account-scoped, content-addressed store (sha256, 200 MB cap), exempt from the /api/chat body buffering. Unreferenced blobs are swept after a 24 h grace period, at startup and after thread, project or attachment deletion.

  • sandbox_attachments on chat completions: when the python tool is enabled, the backend copies each stored file to .unsloth_attachments/<id>/<sanitised name> in the session sandbox before the request is dispatched. The copy is symlink-safe and never overwrites; names are capped at 80 UTF-8 bytes. Unmodified copies do not count as user files when a chat is deleted.

  • Frontend: document adapters upload the original at send time, in parallel with the existing extraction. The reference is stored with the message, and each request decides whether to add the sandbox paths, so switching model or tools mid-thread does the right thing. If the upload fails, the attachment silently stays inline-only.

  • Downloading an attachment serves the original file when it was stored.

  • Tool-only formats, limited to what libraries shipped with every install can open (pandas, pyarrow, scipy, duckdb, PyMuPDF, fontTools via matplotlib, Pillow, safetensors, the standard library):

    • data: .parquet .feather .arrow .orc .dta .sas7bdat .xpt .mat .npy .npz .safetensors
    • databases: .sqlite .sqlite3 .db .gpkg .mbtiles .duckdb
    • archives: .zip .jar .whl .apk .tar .gz .tgz .bz2 .tbz2 .tbz .xz .txz .lzma
    • documents: .epub .mobi .fb2 .cbz .xps .oxps .docm .dotx .dotm .potx .potm .ppsm .odp .odg .vsdx
    • 3D and fonts: .stl .3mf .ply .glb .kmz .ttf .otf .ttc .woff
    • images the vision path cannot show: .psd .ico .icns .cur .tga .dds .pcx .ppm .pgm .pbm .pnm .qoi .jp2 .j2k .xbm .xpm .sgi .fits

    The file is uploaded while it sits in the composer. It is refused unless the selected model runs Unsloth Studio's python tool (the same placement the chat request uses: not when a provider hosts code execution). Left out on purpose: pickle-based formats (.pt, .pkl), formats whose reader some installs lack (.msgpack, .woff2, .h5/.nc), .xls, which nothing installed can open, and .rar, whose format is not open.

  • One note per file, worded for small models. A tool-only file gets [<name> is saved at <path> in the python tool's working directory; open it with <call>, where path = "<path>"]. An attachment whose text is already inline gets [<name>: its text is below, so answer from it. For calculations, the python tool has the file at path = "<path>"], so the model does not reopen a file it has already read. The call is, for example, fitz.open(path) for .docm/.pptx/.epub, sqlite3.connect(path), zipfile.ZipFile(path) for .zip or PIL.Image.open(path). Without it, models tend to reach for python-docx (which refuses .docm) or for openpyxl, python-pptx and odfpy, which are not installed. Excel, iWork, .ods and .odt get no call: their text is inline, pandas' Excel engines are not installed, nothing in Python decodes iWork, and pointing small models at the raw zip sent them into the XML. Calls take a path variable because the sandbox's static scanner reads a string literal passed to any .connect() (including sqlite3.connect("a.db")) as a network host.

Previews of files only the python tool can read

Naming the file and the call that opens it still left the model guessing what was in it, so it explored with the tool: 833 tool calls over 73 cases, and 53 of them answered correctly. The upload response now also carries a preview, built server-side right after the file is stored, and the message carries it:

  • Images the vision path cannot show (.psd, .ico, .fits, …): a PNG thumbnail capped at 1024 px on the long side, plus a description. The image part is added only when the chat model takes images — the same check the vision adapter makes — and otherwise only the description goes.
  • Documents (.epub, .docm, .odp, .vsdx, a single compressed text file, …): the text, under a [FORMAT: name] header. Such an attachment then gets the "its text is below, so answer from it" note instead of the one pointing at the tool, because the text really is below.
  • Outlines ({archives, data files, databases, arrays, 3D models, fonts}): what the file states about itself — a zip's entries with small member texts, a table's rows, columns, types and first rows, a database's tables and two sample rows, a mesh's counts, a font's name and glyph count.

Every reader is bounded by what the file itself declares, and each preview is built in a spawned child killed after 10 seconds, so a large or hostile file costs little and a failure is simply no preview: the attachment then reads exactly as it did before. The preview is not stored twice — it becomes the message's content, and the history keeps only the reference.

Relation to #7700

#7700 (draft) adds .xlsx through read-excel-file, without drag-and-drop. This PR covers .xlsx without a new dependency, including drag-and-drop, and reuses the same OOXML plumbing for .pptx. It supersedes #7700 for .xlsx. Thanks to @Imagineer99 for the original work.

Risks and tradeoffs

  • Stored originals use disk space until swept (24 h after nothing references them).
  • The iWork reader targets the format iWork has written since 2013, learned from real files rather than a spec. Documents from iWork '09 and earlier (a different, XML-based format) are refused with a clear message, and Numbers form sheets are skipped.
  • The inline route is unchanged for formats that already worked. The python-tool route only adds a path note and a request field.
  • Tool-only files attached while the python tool is available still reach the model as a note if the user switches to a model without it before sending.
  • A preview of an image puts an image in the thread, and a thread carrying an image cannot be continued on a text-only model — which is how the chat already treats image attachments, and now applies to these too.
  • Previews add to the request: an outline is capped at 2,000 characters, a document's text at the inline route's 10 MiB, and a thumbnail at 1024 px.

Validation

frontend: node --test (every changed test file) -> 215 pass; npm test (whole suite) -> 8100 pass; tsc --noEmit clean
backend:  pytest test_chat_attachments.py test_middleware.py test_sandbox_files_and_storage_roots.py -k "attachment or passthrough or upload" -> 65 pass
rust:     cargo test native_ -> 100 pass; cargo test (whole suite) -> 529 pass
install:  pytest tests/python/test_windows_arm64_requirement_markers.py tests/studio/install/test_studio_extra_matches_requirements.py -> 814 pass
  • Every added test was mutation-checked against the production change it covers.
  • Real runs:
    • a backend with an isolated home copied an uploaded file into the sandbox only when python was among the enabled tools;
    • image conversion: WKWebView converts HEIC/TIFF/AVIF/BMP; Chromium converts AVIF/BMP and shows a "convert it to JPEG or PNG" error for HEIC/TIFF, which it cannot decode;
    • ffmpeg decodes an .m2ts from a pipe;
    • pyarrow round-trips ORC and Feather in the Unsloth Studio environment;
    • every reader call in the sandbox note was run through the python tool (sandbox on) against a stored, materialised sample of its format: all pass on a released Unsloth Studio install;
    • real Pages, Numbers and Keynote files (Chinese and English text, a 2-sheet workbook with 8 tables, two Keynote decks with skipped slides) match an independent Python reference decoder; the one difference is a sheet text box the reference skipped and the reader keeps;
    • .mts/.ts detection checked against real ffmpeg streams and 17,417 real TypeScript files, with no false positives;
    • small models (Qwen3.5-2B and Gemma 4 E2B, MLX and GGUF) given the exact request the frontend sends, one case per new format, with no hint in the user's question about how to read the file. Inline documents were answered from the inline text. On 11 inline formats × 3 runs with Qwen3.5-2B, the final note wording scored 33/33 with 68 tool calls, against 31/33 with 105 calls for the earlier wording. Tool-only failures came from model limits: a path copied without its leading dot, invented library APIs, and Gemma stopping after one call;
    • hostile iWork inputs (millions of empty chunks, records, text runs, references or list entries, shared-slide DAGs, 100k rows of a 2 MiB blank string) stay within a few hundred MB and under a second, or are refused;
    • previews measured over 73 tool-only cases with Qwen3.5-2B: 53/73 correct and 833 tool calls without them, 64/73 and 351 with. Images went 10/18 to 15/18 at zero tool calls, documents 14/14 with 116 calls down to 6, databases 3/6 to 5/6, archives 12/15 to 14/15. Dropping the sample rows and member texts from the outlines cost 4 of the 38 outline cases, which is why they are kept;
    • hostile previews: a zip claiming 200,000 members, an icon whose frame header says 7000x14000, a database of 1,024 tables each with a 64 KiB literal, and a 60 MiB single literal are all refused at no measurable cost, while an ordinary 300-table database previews at +22 MB and real databases up to 309 MB preview from their schema alone;
    • the whole frontend path was run against the real upload responses for 14 real sample files, for a model that takes images and one that does not.

Before and after

Merge base 1759e6458 vs head 0f9eb73d2, both installs built fresh, same fixture files (book.xlsx, notes.rtf, photo.bmp) picked through the composer's file menu. book.xlsx is the control: main already reads it.

Composer after picking the three files: main keeps only book.xlsx; this PR also attaches notes.rtf and the bitmap, converted to photo.png before it reaches the model.

composer

Opening the notes.rtf card on the head shows the text extracted in the browser.

rtf preview

@Lyxot Lyxot changed the title Accept Excel, PowerPoint, RTF, iWork, HEIC and tool-only files as Unsloth Studio chat attachments Studio: read more chat attachment formats, and hand the rest to the python tool Sep 20, 2026
Workbooks and workbook templates become tab-separated text per visible sheet, read in the browser with fflate and DOMParser like OpenDocument files: shared and inline strings, booleans, errors, and dates, times and durations by their number format. Hidden sheets, rows and columns are skipped, and inflate size and extracted text are bounded. The OpenDocument composer adapter is generalised so both formats share its read-on-add lifecycle, and desktop drop and paste route the new types to the composer.
Slides are read in deck order as [Slide N] text blocks, skipping hidden slides and shapes and the Fallback copy of mc:AlternateContent. Relationship ids are now matched by namespace, since <p:sldId> also carries a plain numeric id. Desktop drop and paste accept the new extensions.
A small in-house RTF reader turns the document body into text: font, colour and style tables, metadata, pictures, field codes, headers and footers are skipped, and tables become tab-separated rows. Escaped bytes decode by the current font's charset, falling back to the ANSI code page, since macOS TextEdit writes cp1252 bytes under \ansicpg936 on Chinese systems; a byte written literally after an escaped double-byte lead joins it. Desktop drop and paste accept .rtf.
Model backends take JPEG, PNG, WebP and GIF, so these formats are re-encoded in the webview before they are attached: HEIC/HEIF to JPEG, the rest to lossless PNG. A webview that cannot decode a format says so and names the file. Conversion is held against send in both composers, a failed or removed conversion never sends the source file, and a desktop drop converts per file so one unreadable image does not stop the batch. Desktop drop and paste accept the new extensions.
Blu-ray and AVCHD camcorder clips are accepted by extension on every chat video path. The video/mp2t MIME is not claimed, because browsers also give TypeScript .ts files that type and the video adapter is matched before the text one.
@Lyxot
Lyxot force-pushed the studio-more-attachment-formats branch 2 times, most recently from e18d016 to cd4a80d Compare September 20, 2026 16:39
An MPEG transport stream named .mts or .ts was accepted as TypeScript and read as UTF-8 text. The composer, desktop drop and clipboard readers now look for the 0x47 sync byte at the start of three consecutive 188-byte packets (192 bytes for M2TS) and send a stream down the video path as video/mp2t, while TypeScript files stay text, including those the browser labels video/mp2t. The native readers take .ts and .mts under the video cap and reapply the text cap once the bytes say TypeScript. The video reference slot offers .ts and .mts too, and refuses TypeScript once it has read the file.
iWork 2013 and later save a document as a zip of Snappy-compressed protobuf archives (Index/*.iwa) with no published schema. A small reader unpacks those archives under the Office reader's size caps, resolves object references, and returns the Pages body text with inline-object placeholders dropped. Desktop drop and paste accept .pages.
The iWork reader walks a Keynote deck's slide tree in order and reads each slide's title and body placeholders, then its drawables, following object references from them. Skipped slides keep their number, and builds, template slides and speaker notes are left out, as the PPTX reader does. Every object is walked at most once per document, so shared structure, a slide shared by two nodes or a node listed twice cannot multiply the work. Desktop drop and paste accept .key.
The iWork reader reads each Numbers sheet's text boxes and tables in order: table rows come from the table's tiles, cells from the version-5 cell storage (numbers kept exact from their decimal128 form, dates, booleans, durations, errors) and the table's string and rich-text lists. Rows become tab-separated lines under the attachment text budget, and table rows and list entries are charged against a size budget so a flood of tiny ones is refused. Keynote tables read the same way. Desktop drop and paste accept .numbers.
Adds POST /api/chat/attachment-files, a per-account content-addressed store for the original bytes of chat attachments (200 MB cap, streamed past the body buffer). Re-uploading the same bytes renews the file. A sweep at startup and after chat, project and attachment deletion removes files not uploaded for 24 hours that no stored message references; uploads and the sweep share a lock so a renewal cannot race a deletion.
A chat request can name stored attachments in sandbox_attachments. When the python tool is enabled, they are copied into the session sandbox under .unsloth_attachments/<id prefix>/<name> before the request reaches any backend, without following links and without replacing a file already there, so the model's edits survive later turns. The upload response returns that path. An unmodified copy does not count as the user's file when a chat is deleted.
Document attachments (text, HTML, PDF, DOCX, OpenDocument, Office Open XML, RTF, iWork) upload their original file at send, alongside the inline text they already carry; the stored reference is saved with the message. On each turn where the python tool runs in Unsloth Studio, every stored attachment in the history names its sandbox path and the request asks for the copies. Other turns are unchanged, so models without tools still read the inline text. An upload failure keeps the attachment inline-only. The attachment download serves the stored original when it exists.
Adds .parquet, .feather, .arrow, .orc, .sqlite, .sqlite3, .db, .zip, .tar, .gz, .tgz, .bz2, .xz, .npy, .npz, .epub, .mobi, .xps, .oxps, .docm, .dotx, .odp and .odg to the chat composer, paste and desktop drop. The browser cannot read these, so the file is uploaded while it sits in the composer and reaches the model only as a copy in the python tool's working directory. They are refused unless the selected model runs Unsloth Studio's python tool, and a preview shows a short note instead of decoding the bytes.
… install can open

Widens the tool-only attachment list to data, database, archive, ebook, Office template and macro, 3D, font and image formats that libraries shipped with every install (pandas, pyarrow, scipy, duckdb, PyMuPDF, fontTools, Pillow, safetensors and the standard library) can open.
The sandbox note for a stored attachment now names a call that opens it with an installed library, such as fitz.open(path), sqlite3.connect(path) or zipfile.ZipFile(path) for Excel workbooks, so the model does not guess a package that refuses the file or is missing. Calls take a path variable because the sandbox scanner reads a string literal passed to .connect() as a network host.
The attachment upload now returns a preview for tool-only images, documents and drawings, so the message can carry what the file holds instead of only its sandbox path: images the vision path cannot show become a PNG with a description, PyMuPDF documents become their text, and ODP, ODG and VSDX become the text of their pages. Nothing reads the preview yet.

A preview runs in a spawned child that is killed after ten seconds, because MuPDF lays out one long paragraph in quadratic time and no bound on the input catches that; a timeout, a dead child or a reader error all mean no preview, and the upload still succeeds. Inside the child each reader is bounded by what its library actually loads. Images open only as the format their extension names, since Pillow otherwise picks a decoder from the bytes and icons decode their embedded frames while opening, so each frame's own header is read first. Documents are told their format rather than letting MuPDF guess from the stored file's hash name, and a document that is a zip is refused when its central directory or any member is too large for the reader to take whole. Pages, XML bytes and the text built from them have their own budgets, each marked in the text when it cuts.
…ool can read

Zip and tar archives now preview as a listing of their entries with the text of the small ones, and a single compressed file as its text, or an outline of its size when the content is not text. Both are built in the same bounded child as the other previews, and nothing reads the preview yet.

Each reader is bounded by what its library actually reads rather than by the file's size. A zip's central directory is sized with the end record ZipFile itself locates, so an archive whose directory is too large to parse is listed as such instead. Only stored and deflated members are read, because ZipFile limits what one read inflates for deflate alone. A tar is read in one streaming pass over a capped decompressed stream, which bounds its extended headers as well as the member data skipped along the way, and the listing says it is incomplete whenever that cap is reached; member names that are not UTF-8 are replaced rather than surrogate-escaped, which the response could not encode. A compressed file reads up to the text cap plus one byte and marks the text when the cut falls short of that many characters.
Chat attachments that only the python tool can open now carry an outline for the remaining data formats: Parquet, Arrow IPC and Feather, ORC, Stata, SAS (`.sas7bdat` and `.xpt`), NumPy `.npy` and `.npz`, and safetensors. The message a model receives says what the file holds - its shape, its columns, its first rows, or the arrays and tensors inside it - rather than only where the file is.

Every reader is bounded by what the file itself states it would make its library read, and each budget cut is marked in the output, because a preview must cost about the same for a large attachment as for a small one:

- Parquet decodes a page at a time, so the bound is the uncompressed size each row group states, checked for every group the five-row sample fills from.
- ORC and Arrow IPC materialise a whole stripe or batch and state nothing about how large it is, so they are read through `pyarrow.dataset`, whose row count comes from the footer, and sampled only when the file is small, the cells fit the budget and no column is nested.
- Stata decodes its long-string table whole on the first row read, and every value label with it. Both sizes come from the file's own map, which is walked by the lengths the header states rather than searched, because a dataset label is free text that can hold the same tags. A table too large to read through leaves the values as their stored codes, or leaves the sample out when the rows cannot be read without it.
- A sas7bdat states the header and page lengths pandas asks for before it has read anything, and Python reserves the whole buffer even for a read a short file cannot fill, so those claims are checked first. Character columns are decoded with the encoding the file names when Python has that codec.
- Arrays over the budget are described from their header alone, and `numpy` is given this module's header budget rather than its own default, which a wide structured dtype exceeds in an otherwise small file.

Formats are taken from the attachment's filename, never from the stored path, which is a hash with no extension. Text that cannot survive a round trip through UTF-8 is replaced before it leaves the reader, because a name inside a file can hold a lone surrogate that the JSON response cannot encode.

Nothing reads these previews yet; the frontend change follows.
SQLite databases, STL, PLY, GLB, 3MF and KMZ models and TTF/OTF/TTC fonts previously reached the model as a tool-only note, so a message carried nothing about what the file held. Each now outlines what the file states about itself: a database its tables with their columns, row counts and first rows; a mesh its triangle or element counts and the name it carries; a glTF its scene counts, generator and mesh names; a 3MF or KMZ the model or map inside the container over the container's own listing; a font its name, glyph count and fixed pitch.

Every reader stays inside what the file says reading it would cost, and says so whenever a budget cuts what it shows.

- A SQLite cell is loaded whole by any select that returns it, so cells are measured with octet_length, which answers from the record header, and a cell too large to show is described by its type and size instead. Builds without octet_length cannot size a cell without reading it, so they report no rows rather than read one.
- Views and virtual tables compute what they hand back, so nothing in the file states what five rows of one would cost. They are listed but never sampled, identified by having no b-tree of their own rather than by the schema text, which can be written to say anything.
- Opening any table parses every CREATE in the file, which a file can be written to make expensive several times over. The preview process therefore carries a limit on what SQLite may allocate; the limit can be lowered but never lifted, so it belongs to that process and a reader only asks whether one is in force.
- A model or map inside a container is found through what the package declares, falling back to the conventional name, and is read only when the directory's stated size is within the XML budget.
- Header windows, listings and element text all mark what they leave out, including where the text strips back short enough that the outline cap would otherwise stay silent.
A file only the python tool can read reached the model as one line naming it, so the model had to open it with the tool before it knew what was in it. The upload response already carries a preview of such a file — an image, the document's text, or an outline — and this puts that preview in the message.

`uploadAttachmentFile` now returns the preview, shape-checked the way the response's other fields already were, and `toolOnlyAttachmentContent` turns it into the attachment's content: an image part with a description line, the document's text under a `[FORMAT: name]` header, or an outline under `[Outline of name]`. A file with no preview reads exactly as it did before, as does a failed upload.

The image part is added only when the chat model takes images. That check was a thirty-line block inside `VisionImageAdapter.add`; it is now `imageInputUnavailableReason()`, called from both places, so the two cannot drift apart.

What the message persists is `storedAttachmentFile(upload)` rather than the upload itself: the preview's bytes are already in the message's content, so storing them again would put the same text, or the same image, in the history twice. It keeps one thing the preview decided — whether the file's own text is inline — because the note that tells the model where the file lives says "its text is below, so answer from it" only when that text really is below. An outline is not the whole file, so outlines and images keep the note that points at the python tool.

No change was needed where the request is built: the parts of every attachment are already walked whatever the attachment's type.

One behaviour follows from sending the image: a thread that carries an image cannot be continued on a text-only model, which is how the chat already treats images, and a tool-only image attachment now joins them.
@Lyxot
Lyxot force-pushed the studio-more-attachment-formats branch from cd4a80d to b2809eb Compare September 20, 2026 17:44
@Lyxot

Lyxot commented Sep 20, 2026

Copy link
Copy Markdown
Collaborator Author

Automated review

The Codex connector does not fire on this repository, so the review ran on a staging pull request carrying a byte-identical diff against a base pinned to this PR's merge base. It converged on b2809ebb48, the commit this PR is at:

Codex Review: Didn't find any major issues.

Lyxot#63 (comment)

Across four rounds it raised nine findings. Four were fixed — the sandbox-attachment cap now carries a thread's most recent files instead of its first ones, the abandoned-upload sweep is throttled per account rather than per process, and two regressions in the first round's own fixes. Five were closed as not worth acting on, each with the reasoning left in its thread: image dimension checks that belong on the unconverted image path this PR does not touch, revalidating the python tool at send time (which would discard the user's file to prevent a degraded-but-correct preview), persisting sizeBytes (pre-existing and shared by every attachment kind), failing the turn when a sandbox copy cannot be made (a new refusal that would break long threads, where the miss already surfaces to the model as FileNotFoundError), and matching the 200 MB composer cap on the desktop drop path (the native bridge marshals the file as base64 through IPC, so the fix is a transfer-model change that would lift the cap for every attachment kind, not a constant).

The staging pull request is now closed.

CI

On b2809ebb48: 67 passed, 7 skipped, 1 failed.

The failure was Parity verdict, scored against the null, whose null-control audit returned UNDECIDED because keystroke@r100K never reached the two comparable observations derive_unstable requires. That is the miss studiobench-ui-parity.yml documents for itself — an observation needs both arms to reach a slot, the arms miss slots independently, and at --reps 2 one missed slot blinds an action. Merge base vs head, the job that would catch an actual parity regression, passed, and this PR's own run of the same commit passes the verdict job.

danielhanchen pushed a commit to danielhanchen/unsloth-staging-2 that referenced this pull request Sep 27, 2026
@shimmyshimmer
shimmyshimmer changed the base branch from main to studio-chat-attachments September 27, 2026 09:50
@danielhanchen
danielhanchen deleted the branch unslothai:main September 27, 2026 10:22
unslothai#12001 and unslothai#12017 landed on main; this keeps only this PR's layer on top.
@danielhanchen danielhanchen reopened this Sep 27, 2026
@danielhanchen
danielhanchen changed the base branch from studio-chat-attachments to main September 27, 2026 11:20
@shimmyshimmer

Copy link
Copy Markdown
Member

Review record for #11379, carried over from the mirror it was reviewed on: danielhanchen/unsloth-staging-review#166.

Findings are quoted as posted and attributed to the account that posted them. The reactions shown are the triage recorded on the mirror; none were re-applied here. Commits are named as the mirror's, with this PR's equivalent where one was found.

Round 1: reviewed mirror 3d4915629 (no equivalent commit found on this PR)

chatgpt-codex-connector[bot] on studio/src-tauri/src/native_intents.rs (on the mirror)

@@ -678,11 +686,17 @@ fn attachment_mime_type(path: &Path) -> Option<&'static str> {
         other if crate::native_path_policy::TEXT_ATTACHMENT_EXTS.contains(&other) => {
             Some("text/plain")
         }
+        other if crate::native_path_policy::TOOL_ONLY_ATTACHMENT_EXTS.contains(&other) => {
+            Some("application/octet-stream")

P2 Badge Apply the tool-only size limit to native files

For Tauri drag-and-drop, classifying every tool-only format as application/octet-stream sends it through read_attachment_payload's generic 25 MB cap, even though the new browser adapter and backend explicitly allow these files up to 200 MB. Thus a valid 25–200 MB Parquet, database, or archive attaches through the web picker but fails when dropped in the desktop app; the parallel classification in native_clipboard.rs similarly routes pasted files through its 20 MB source cap. Give tool-only extensions their intended cap in both native intake paths.

Useful? React with 👍 / 👎.

Rejected on the mirror

Reply from danielhanchen:

Not changing: desktop drop and paste marshal the file as base64 through IPC, so a 200 MB native cap is a transfer-model change for every attachment kind, not a constant. Large tool-only files attach through the file picker, and the drop path reports the size limit.

Round 2: reviewed mirror 1306b3383 (no equivalent commit found on this PR)

chatgpt-codex-connector[bot] on studio/frontend/src/features/chat/runtime-provider.tsx (on the mirror)

@@ -735,6 +840,118 @@ class OpenDocumentAttachmentAdapter implements AttachmentAdapter {
   }
 }
 
+const MAX_TOOL_ONLY_ATTACHMENT_BYTES = 200 * 1024 * 1024;
+
+/** Whether this turn's python tool runs in Studio's sandbox; chat-adapter.ts decides it the same way. */
+function pythonToolRunsInStudio(): boolean {
+  const { params, supportsTools, codeToolsEnabled } =
+    useChatRuntimeStore.getState();
+  const external = parseExternalModelId(params.checkpoint);
+  if (!external) return supportsTools && codeToolsEnabled;
+  const provider = (
+    loadConnectionsEnabled() ? loadExternalProviders() : []
+  ).find((p) => p.id === external.providerId);
+  if (
+    !provider ||
+    providerModelSupportsStudioTools(
+      provider.providerType,
+      external.modelId,
+    ) !== true
+  ) {
+    return false;
+  }
+  return selectCodeToolNames({
+    codeToolsEnabled,
+    hostedCodeExecutionForThisTurn: providerSupportsBuiltinCodeExecution(
+      provider.providerType,
+      external.modelId,
+      provider.baseUrl,
+      provider.apiType,
+    ),
+    providerHostsCodeExecution: providerHostsCodeExecution(
+      provider.providerType,
+      provider.baseUrl,
+      provider.apiType,
+    ),
+  }).local.includes("python");
+}
+
+class ToolOnlyAttachmentAdapter implements AttachmentAdapter {
+  accept = TOOL_ONLY_ATTACHMENT_EXTENSIONS;
+  private readonly uploads = new Map<
+    string,
+    Promise<ChatAttachmentOriginal | null>
+  >();
+
+  private upload(file: File): Promise<ChatAttachmentOriginal | null> {
+    return uploadChatAttachmentOriginal(file).catch(() => null);
+  }
+
+  async *add({
+    file,
+  }: {
+    file: File;
+  }): AsyncGenerator<PendingAttachment, void> {
+    const refusal = !pythonToolRunsInStudio()
+      ? `Turn on Code with a model that runs the python tool to attach ${file.name}.`

P2 Badge Revalidate local Python availability when sending

If the user attaches a tool-only file and then disables Code or switches to a model/provider that does not run Studio's local Python tool, this check is never repeated. The attachment is still sent with only its placeholder text, while chat-adapter.ts omits sandbox_attachments when local Python is unavailable, so the active model receives no usable file contents. Revalidate at send time or remove/block the staged attachment when tool placement changes.

Useful? React with 👍 / 👎.

Rejected on the mirror

Reply from danielhanchen:

Not changing: a documented tradeoff. After switching away from the python tool, the file still reaches the model as a note naming it; revalidating at send would discard the user's attachment instead.

chatgpt-codex-connector[bot] on studio/frontend/src/features/chat/rtf.ts (on the mirror)

@@ -0,0 +1,329 @@
+// SPDX-License-Identifier: AGPL-3.0-only
+// Copyright 2026-present the Unsloth AI Inc. team. All rights reserved. See /studio/LICENSE.AGPL-3.0
+
+import {
+  MAX_OPEN_DOCUMENT_ARCHIVE_BYTES,
+  MAX_OPEN_DOCUMENT_XML_BYTES,
+} from "./open-document";
+
+// A call, not a const: read at module scope, an import the chat barrel also reaches can still be
+// in its temporal dead zone when this module runs.
+function maxTextLength(): number {
+  return MAX_OPEN_DOCUMENT_XML_BYTES;
+}
+
+const MAX_GROUP_DEPTH = 1024;
+const LATIN1 = new TextDecoder("latin1");
+
+const SKIPPED_DESTINATIONS = new Set([
+  "fonttbl",
+  "colortbl",
+  "stylesheet",
+  "listtable",
+  "listoverridetable",
+  "revtbl",
+  "rsidtbl",
+  "filetbl",
+  "info",
+  "pict",
+  "nonshppict",
+  "object",
+  "objdata",
+  "fldinst",
+  "sn",
+  "sv",
+  "pn",
+  "header",
+  "headerl",
+  "headerr",
+  "headerf",
+  "footer",
+  "footerl",
+  "footerr",
+  "footerf",
+  "footnote",
+  "annotation",
+  "xe",
+  "tc",
+  "bkmkstart",
+  "bkmkend",
+]);
+
+const CONTROL_WORD_TEXT = new Map<string, string>([
+  ["par", "\n"],
+  ["line", "\n"],
+  ["sect", "\n"],
+  ["page", "\n"],
+  ["row", "\n"],
+  ["cell", "\t"],
+  ["nestcell", "\t"],
+  ["tab", "\t"],
+  ["emdash", "—"],
+  ["endash", "–"],
+  ["bullet", "•"],
+  ["lquote", "‘"],
+  ["rquote", "’"],
+  ["ldblquote", "“"],
+  ["rdblquote", "”"],
+  ["emspace", " "],
+  ["enspace", " "],
+  ["qmspace", " "],
+]);
+
+const CHARSET_CODEPAGES: Record<number, number> = {
+  0: 1252,
+  77: 10000,
+  128: 932,
+  129: 949,
+  134: 936,
+  136: 950,
+  161: 1253,
+  162: 1254,
+  163: 1258,
+  177: 1255,
+  178: 1256,
+  186: 1257,
+  204: 1251,
+  222: 874,
+  238: 1250,
+};
+
+const CODEPAGE_ENCODINGS: Record<number, string> = {
+  874: "windows-874",
+  932: "shift_jis",
+  936: "gbk",
+  949: "euc-kr",
+  950: "big5",
+  10000: "macintosh",
+  65001: "utf-8",
+};
+
+type Group = {
+  skip: boolean;
+  fontTable: boolean;
+  inTable: boolean;
+  uc: number;
+  font: number;
+};
+
+export async function readRtfAttachmentContent(
+  file: File,
+  filename: string,
+): Promise<{ label: "RTF"; text: string }> {
+  if (file.size > MAX_OPEN_DOCUMENT_ARCHIVE_BYTES) {
+    throw new Error(`RTF file is too large: ${filename}`);
+  }
+  const bytes = new Uint8Array(await file.arrayBuffer());
+  if (LATIN1.decode(bytes.subarray(0, 5)) !== "{\\rtf") {
+    throw new Error(`Not an RTF file: ${filename}`);
+  }
+  return { label: "RTF", text: rtfToText(bytes, filename) };
+}
+
+function encodingFor(codepage: number): string {
+  if (codepage >= 1250 && codepage <= 1258) {
+    return `windows-${codepage}`;
+  }
+  return CODEPAGE_ENCODINGS[codepage] ?? "windows-1252";
+}
+
+function rtfToText(bytes: Uint8Array, filename: string): string {
+  const maxLength = maxTextLength();
+  const fonts = new Map<number, number>();
+  let defaultCodepage = 1252;
+  let defaultFont = -1;
+  let group: Group = {
+    skip: false,
+    fontTable: false,
+    inTable: false,
+    uc: 1,
+    font: -1,
+  };
+  const stack: Group[] = [];
+  const parts: string[] = [];
+  let length = 0;
+  let pending: number[] = [];
+  let pendingEncoding = "";
+  let fallbackToSkip = 0;
+  let tableFont = -1;
+
+  const flush = () => {
+    if (pending.length > 0) {
+      parts.push(
+        new TextDecoder(pendingEncoding).decode(new Uint8Array(pending)),
+      );
+      pending = [];
+    }
+  };
+  const append = (text: string) => {
+    parts.push(text);
+    length += text.length;
+  };
+  const emit = (text: string) => {
+    if (!group.skip) {
+      flush();
+      append(text);
+    }
+  };
+  const emitByte = (byte: number) => {
+    if (group.skip) {
+      return;
+    }
+    const charset = fonts.get(group.font < 0 ? defaultFont : group.font);
+    const encoding = encodingFor(
+      charset === undefined || charset === 1
+        ? defaultCodepage
+        : (CHARSET_CODEPAGES[charset] ?? defaultCodepage),
+    );
+    if (encoding !== pendingEncoding) {
+      flush();
+      pendingEncoding = encoding;
+    }
+    pending.push(byte);
+    length++;
+  };
+  // Writers escape a double-byte lead byte but may leave its trail byte literal, even \\ { or }.
+  const emitLiteral = (byte: number) => {
+    if (pending.length > 0) {
+      emitByte(byte);
+      flush();
+    } else {
+      emit(String.fromCharCode(byte));
+    }
+  };
+
+  let index = 0;
+  while (index < bytes.length && length < maxLength) {
+    const byte = bytes[index++];
+    if (byte === 0x7b) {
+      if (stack.length >= MAX_GROUP_DEPTH) {
+        throw new Error(`RTF groups nest too deeply: ${filename}`);
+      }
+      stack.push(group);
+      group = { ...group };
+      fallbackToSkip = 0;
+    } else if (byte === 0x7d) {
+      group = stack.pop() ?? group;
+      fallbackToSkip = 0;
+    } else if (byte === 0x0d || byte === 0x0a) {
+      continue;
+    } else if (byte !== 0x5c) {
+      if (fallbackToSkip > 0) {
+        fallbackToSkip--;
+      } else if (byte >= 0x80) {
+        emitByte(byte);
+      } else if (pending.length > 0) {
+        emitLiteral(byte);
+      } else {
+        const start = index - 1;
+        while (index < bytes.length && isPlainText(bytes[index])) index++;
+        emit(LATIN1.decode(bytes.subarray(start, index)));

P2 Badge Stop plain-text scanning at the extraction cap

For an accepted RTF containing a long contiguous ASCII run, this inner loop advances to the end of the run without considering the 10 MB text limit. A file near the allowed 50 MB input ceiling is therefore decoded and appended in full, then copied again by join() before being sliced, causing avoidable main-thread work and large transient allocations despite the advertised extraction bound. Limit the run to the remaining text budget.

Useful? React with 👍 / 👎.

Rejected on the mirror

Reply from danielhanchen:

Not changing: input is capped at 50 MB and the output is sliced to the 10 MB budget, so this is extra work on an oversized file, not a correctness issue.

Round 3: reviewed mirror 3a0c2bc7d (no equivalent commit found on this PR)

chatgpt-codex-connector[bot] on studio/frontend/src/features/chat/image-normalize.ts (on the mirror)

@@ -0,0 +1,113 @@
+// SPDX-License-Identifier: AGPL-3.0-only
+// Copyright 2026-present the Unsloth AI Inc. team. All rights reserved. See /studio/LICENSE.AGPL-3.0
+
+export const CHAT_IMAGE_MIMES = [
+  "image/jpeg",
+  "image/png",
+  "image/webp",
+  "image/gif",
+  "image/heic",
+  "image/heif",
+  "image/avif",
+  "image/bmp",
+  "image/tiff",
+];
+
+const CONVERTED_IMAGE_TYPES: Record<string, string> = {
+  heic: "image/jpeg",
+  heif: "image/jpeg",
+  avif: "image/png",
+  bmp: "image/png",
+  tif: "image/png",
+  tiff: "image/png",
+};
+const CONVERTED_IMAGE_EXTENSIONS = Object.keys(CONVERTED_IMAGE_TYPES).map(
+  (extension) => `.${extension}`,
+);
+
+export const CHAT_IMAGE_EXTENSIONS = [
+  ".jpg,.jpeg,.png,.webp,.gif",
+  ...CONVERTED_IMAGE_EXTENSIONS,
+].join(",");
+export const CHAT_IMAGE_ACCEPT = [
+  ...CHAT_IMAGE_MIMES,
+  ...CONVERTED_IMAGE_EXTENSIONS,
+].join(",");
+
+function imageKind(file: { name: string; type: string }): string | null {
+  const mime = file.type.toLowerCase();
+  if (CHAT_IMAGE_MIMES.includes(mime)) {
+    return mime.slice("image/".length);
+  }
+  const extension = file.name.toLowerCase().split(".").pop() ?? "";
+  return Object.hasOwn(CONVERTED_IMAGE_TYPES, extension) ? extension : null;
+}
+
+export function isChatImageFile(file: { name: string; type: string }): boolean {
+  return imageKind(file) !== null;
+}
+
+export function convertedImageType(file: {
+  name: string;
+  type: string;
+}): string | null {
+  const kind = imageKind(file);
+  return kind === null ? null : (CONVERTED_IMAGE_TYPES[kind] ?? null);
+}
+
+const MAX_CONVERTED_IMAGE_BYTES = 20 * 1024 * 1024;
+// iOS Safari, the one browser that decodes HEIC, refuses canvases past 16.7 megapixels.
+const MAX_CONVERTED_IMAGE_PIXELS = 16_777_216;
+
+export async function normalizeChatImage(file: File): Promise<File> {
+  const type = convertedImageType(file);
+  if (type === null) {
+    return file;
+  }
+  const url = URL.createObjectURL(file);

P1 Badge Bound image dimensions before decoding

A compressed TIFF, HEIC, or AVIF under 20 MB can declare enormous pixel dimensions, and image.decode() may allocate its full decoded bitmap before the later 16.7 MP canvas scaling runs, so attaching such a file can still exhaust renderer memory or crash the tab. Fresh evidence in this revision is that await image.decode() still precedes every naturalWidth/naturalHeight check; inspect the header or use a decoder capable of applying an output-size bound before full decoding.

Useful? React with 👍 / 👎.

Rejected on the mirror

Reply from danielhanchen:

Not changing: the conversion output is already capped at 16.7 MP. What remains needs a hostile file declaring huge dimensions; real photos (48 MP HEIC included) decode fine, and per-format header parsing is out of proportion for that.

chatgpt-codex-connector[bot] on studio/backend/core/inference/tools.py (on the mirror)

@@ -19800,6 +19802,114 @@ def _quiet_unlink(path: str, dir_fd = None) -> None:
         pass
 
 
+# Hidden, like the spill directory: a project chat's workdir can be the user's own folder.
+_ATTACHMENTS_DIR = ".unsloth_attachments"
+_ATTACHMENT_PREFIX_LEN = 12
+_ATTACHMENT_NAME_BYTES = 80
+_UNSAFE_NAME_CHARS = re.compile(r'[\x00-\x1f\x7f/\\:*?"<>|]')
+# Windows device names stay reserved with any extension (NUL.tar.gz is NUL).
+_RESERVED_NAME = re.compile(r"(?:CON|PRN|AUX|NUL|COM\d|LPT\d)", re.IGNORECASE)
+
+
+def sandbox_attachment_path(sha256: str, name: str) -> str:
+    """Mirrored by sandboxAttachmentPath in the frontend's sandbox-attachments.ts."""
+    base = _UNSAFE_NAME_CHARS.sub("_", name or "").strip(" .") or "attachment"
+    # In bytes: filesystems cap a name at 255, and macOS stores decomposed text that can triple it.
+    if len(base.encode()) > _ATTACHMENT_NAME_BYTES:
+        stem, ext = os.path.splitext(base)
+        ext = ext if len(ext.encode()) <= 16 else ""
+        room = _ATTACHMENT_NAME_BYTES - len(ext.encode())
+        # Stripped again so the basename the frontend sends back derives this same path.
+        base = (stem.encode()[:room].decode("utf-8", "ignore").rstrip(" .") or "attachment") + ext
+    if _RESERVED_NAME.fullmatch(base.split(".", 1)[0].rstrip(" ")):
+        base = "_" + base
+    return f"{_ATTACHMENTS_DIR}/{sha256[:_ATTACHMENT_PREFIX_LEN]}/{base}"
+
+
+def materialize_sandbox_attachments(
+    session_id: "str | None", attachments: "list[tuple[str, str]]"
+) -> None:
+    """Copy chat attachment originals into the sandbox, leaving one already there so edits survive."""
+    from core import chat_originals
+    with _session_in_flight(session_id):
+        workdir = _get_workdir(session_id)
+        for sha256, name in attachments:
+            source = chat_originals.originals_dir() / sha256
+            if not source.is_file():
+                continue
+            try:
+                _install_attachment_copy(workdir, sandbox_attachment_path(sha256, name), source)
+            except (OSError, ValueError):
+                logger.warning(
+                    "could not copy attachment %s into the sandbox", sha256, exc_info = True
+                )
+
+
+def _install_attachment_copy(workdir: str, relative: str, source: Path) -> None:
+    """The spill writer's discipline: no link followed, and `os.link` never replaces a name."""
+    *dirs, name = relative.split("/")
+    tmp = f".tmp-{uuid.uuid4().hex[:12]}"
+    flags = os.O_WRONLY | os.O_CREAT | os.O_EXCL
+    if not _DIR_FD_WRITES:
+        target = workdir
+        for part in dirs:
+            target = os.path.join(target, part)
+            if os.path.islink(target):
+                return
+            os.makedirs(target, mode = 0o700, exist_ok = True)
+        if os.path.realpath(target) != os.path.join(os.path.realpath(workdir), *dirs):
+            return
+        if os.path.lexists(os.path.join(target, name)):
+            return
+        tmp = os.path.join(target, tmp)
+        try:
+            with (
+                open(source, "rb") as src,
+                os.fdopen(os.open(tmp, flags | getattr(os, "O_NOFOLLOW", 0), 0o600), "wb") as out,
+            ):
+                shutil.copyfileobj(src, out, 1 << 20)
+            with contextlib.suppress(FileExistsError):
+                os.link(tmp, os.path.join(target, name))
+        finally:
+            _quiet_unlink(tmp)
+        return
+    fds = [os.open(workdir, os.O_RDONLY | os.O_DIRECTORY | os.O_NOFOLLOW)]
+    try:
+        for part in dirs:
+            with contextlib.suppress(FileExistsError):
+                os.mkdir(part, 0o700, dir_fd = fds[-1])
+            fds.append(os.open(part, os.O_RDONLY | os.O_DIRECTORY | os.O_NOFOLLOW, dir_fd = fds[-1]))
+        with contextlib.suppress(FileNotFoundError):
+            os.stat(name, dir_fd = fds[-1], follow_symlinks = False)
+            return
+        try:
+            with (
+                open(source, "rb") as src,
+                os.fdopen(os.open(tmp, flags, 0o600, dir_fd = fds[-1]), "wb") as out,
+            ):
+                shutil.copyfileobj(src, out, 1 << 20)
+            with contextlib.suppress(FileExistsError):
+                os.link(tmp, name, src_dir_fd = fds[-1], dst_dir_fd = fds[-1])
+        finally:
+            _quiet_unlink(tmp, dir_fd = fds[-1])
+    finally:
+        for fd in fds:
+            os.close(fd)
+
+
+def _is_attachment_copy(sandbox: str, parent: str, name: str) -> bool:
+    prefix = os.path.basename(parent)
+    path = os.path.join(parent, name)
+    if (
+        os.path.dirname(parent) != os.path.join(sandbox, _ATTACHMENTS_DIR)
+        or not re.fullmatch(r"[0-9a-f]{12}", prefix)
+        or os.path.islink(path)
+    ):
+        return False
+    digest = _file_digest(path)
+    return digest is not None and digest.startswith(prefix)

P2 Badge Avoid hashing full attachment copies during sandbox cleanup

When deleting a chat whose sandbox contains untouched tool-only attachments, _holds_no_user_files reaches this call for every copy and synchronously rereads each entire file merely to decide that it is internal. Since this change permits 64 attachments of up to 200 MB, an ordinary delete can require hashing 12.8 GB before responding; if Python overwrites one of these paths with a much larger file, the read is unbounded because no expected size is passed. Record and compare the installation stamp/size first, as the spill path does, so changed files are treated as user files without a full digest.

Useful? React with 👍 / 👎.

Rejected on the mirror

Reply from danielhanchen:

Not changing: this is delete latency, not correctness. Hashing runs near 1 GB/s, so a chat with a few attachments costs well under a second, and a modified or replaced file is still correctly counted as a user file.

Round 4: reviewed mirror 3a0c2bc7d (no equivalent commit found on this PR)

chatgpt-codex-connector[bot] (on the mirror)

Codex Review: Didn't find any major issues. 🎉

Reviewed commit: 3a0c2bc7dd

No triage reaction was recorded on the mirror

Verdict

The round converged at mirror 3a0c2bc7d (no equivalent commit found on this PR).

This is the review as it stood at that commit. Anything pushed to this PR afterwards was not part of it.

danielhanchen pushed a commit to danielhanchen/unsloth-staging-2 that referenced this pull request Sep 27, 2026
danielhanchen pushed a commit to danielhanchen/unsloth-staging-2 that referenced this pull request Sep 27, 2026
@danielhanchen
danielhanchen merged commit 57a8849 into unslothai:main Sep 27, 2026
66 of 69 checks passed
shaojun pushed a commit to shaojun/unsloth that referenced this pull request Sep 29, 2026
…ython tool (unslothai#11379)

* feat(studio): read .xlsx, .xlsm, .xltx and .xltm chat attachments

Workbooks and workbook templates become tab-separated text per visible sheet, read in the browser with fflate and DOMParser like OpenDocument files: shared and inline strings, booleans, errors, and dates, times and durations by their number format. Hidden sheets, rows and columns are skipped, and inflate size and extracted text are bounded. The OpenDocument composer adapter is generalised so both formats share its read-on-add lifecycle, and desktop drop and paste route the new types to the composer.

* feat(studio): read .pptx, .pptm and .ppsx chat attachments

Slides are read in deck order as [Slide N] text blocks, skipping hidden slides and shapes and the Fallback copy of mc:AlternateContent. Relationship ids are now matched by namespace, since <p:sldId> also carries a plain numeric id. Desktop drop and paste accept the new extensions.

* feat(studio): read .rtf chat attachments

A small in-house RTF reader turns the document body into text: font, colour and style tables, metadata, pictures, field codes, headers and footers are skipped, and tables become tab-separated rows. Escaped bytes decode by the current font's charset, falling back to the ANSI code page, since macOS TextEdit writes cp1252 bytes under \ansicpg936 on Chinese systems; a byte written literally after an escaped double-byte lead joins it. Desktop drop and paste accept .rtf.

* feat(studio): attach HEIC, HEIF, AVIF, BMP and TIFF images

Model backends take JPEG, PNG, WebP and GIF, so these formats are re-encoded in the webview before they are attached: HEIC/HEIF to JPEG, the rest to lossless PNG. A webview that cannot decode a format says so and names the file. Conversion is held against send in both composers, a failed or removed conversion never sends the source file, and a desktop drop converts per file so one unreadable image does not stop the batch. Desktop drop and paste accept the new extensions.

* feat(studio): attach .m2ts video

Blu-ray and AVCHD camcorder clips are accepted by extension on every chat video path. The video/mp2t MIME is not claimed, because browsers also give TypeScript .ts files that type and the video adapter is matched before the text one.

* fix(studio): attach camcorder .mts and broadcast .ts clips as video

An MPEG transport stream named .mts or .ts was accepted as TypeScript and read as UTF-8 text. The composer, desktop drop and clipboard readers now look for the 0x47 sync byte at the start of three consecutive 188-byte packets (192 bytes for M2TS) and send a stream down the video path as video/mp2t, while TypeScript files stay text, including those the browser labels video/mp2t. The native readers take .ts and .mts under the video cap and reapply the text cap once the bytes say TypeScript. The video reference slot offers .ts and .mts too, and refuses TypeScript once it has read the file.

* feat(studio): read .pages chat attachments

iWork 2013 and later save a document as a zip of Snappy-compressed protobuf archives (Index/*.iwa) with no published schema. A small reader unpacks those archives under the Office reader's size caps, resolves object references, and returns the Pages body text with inline-object placeholders dropped. Desktop drop and paste accept .pages.

* feat(studio): read .key chat attachments

The iWork reader walks a Keynote deck's slide tree in order and reads each slide's title and body placeholders, then its drawables, following object references from them. Skipped slides keep their number, and builds, template slides and speaker notes are left out, as the PPTX reader does. Every object is walked at most once per document, so shared structure, a slide shared by two nodes or a node listed twice cannot multiply the work. Desktop drop and paste accept .key.

* feat(studio): read .numbers chat attachments

The iWork reader reads each Numbers sheet's text boxes and tables in order: table rows come from the table's tiles, cells from the version-5 cell storage (numbers kept exact from their decimal128 form, dates, booleans, durations, errors) and the table's string and rich-text lists. Rows become tab-separated lines under the attachment text budget, and table rows and list entries are charged against a size budget so a flood of tiny ones is refused. Keynote tables read the same way. Desktop drop and paste accept .numbers.

* feat(studio): store chat attachment files for tool access

Adds POST /api/chat/attachment-files, a per-account content-addressed store for the original bytes of chat attachments (200 MB cap, streamed past the body buffer). Re-uploading the same bytes renews the file. A sweep at startup and after chat, project and attachment deletion removes files not uploaded for 24 hours that no stored message references; uploads and the sweep share a lock so a renewal cannot race a deletion.

* feat(studio): copy chat attachments into the tool sandbox

A chat request can name stored attachments in sandbox_attachments. When the python tool is enabled, they are copied into the session sandbox under .unsloth_attachments/<id prefix>/<name> before the request reaches any backend, without following links and without replacing a file already there, so the model's edits survive later turns. The upload response returns that path. An unmodified copy does not count as the user's file when a chat is deleted.

* feat(studio): give the python tool the original attachment files

Document attachments (text, HTML, PDF, DOCX, OpenDocument, Office Open XML, RTF, iWork) upload their original file at send, alongside the inline text they already carry; the stored reference is saved with the message. On each turn where the python tool runs in Unsloth Studio, every stored attachment in the history names its sandbox path and the request asks for the copies. Other turns are unchanged, so models without tools still read the inline text. An upload failure keeps the attachment inline-only. The attachment download serves the stored original when it exists.

* feat(studio): attach files only the python tool can read

Adds .parquet, .feather, .arrow, .orc, .sqlite, .sqlite3, .db, .zip, .tar, .gz, .tgz, .bz2, .xz, .npy, .npz, .epub, .mobi, .xps, .oxps, .docm, .dotx, .odp and .odg to the chat composer, paste and desktop drop. The browser cannot read these, so the file is uploaded while it sits in the composer and reaches the model only as a copy in the python tool's working directory. They are refused unless the selected model runs Unsloth Studio's python tool, and a preview shows a short note instead of decoding the bytes.

* feat(studio): let the python tool read every format an Unsloth Studio install can open

Widens the tool-only attachment list to data, database, archive, ebook, Office template and macro, 3D, font and image formats that libraries shipped with every install (pandas, pyarrow, scipy, duckdb, PyMuPDF, fontTools, Pillow, safetensors and the standard library) can open.

* feat(studio): tell the model which call opens each sandboxed attachment

The sandbox note for a stored attachment now names a call that opens it with an installed library, such as fitz.open(path), sqlite3.connect(path) or zipfile.ZipFile(path) for Excel workbooks, so the model does not guess a package that refuses the file or is missing. Calls take a path variable because the sandbox scanner reads a string literal passed to .connect() as a network host.

* feat(studio): preview images and documents only the python tool can read

The attachment upload now returns a preview for tool-only images, documents and drawings, so the message can carry what the file holds instead of only its sandbox path: images the vision path cannot show become a PNG with a description, PyMuPDF documents become their text, and ODP, ODG and VSDX become the text of their pages. Nothing reads the preview yet.

A preview runs in a spawned child that is killed after ten seconds, because MuPDF lays out one long paragraph in quadratic time and no bound on the input catches that; a timeout, a dead child or a reader error all mean no preview, and the upload still succeeds. Inside the child each reader is bounded by what its library actually loads. Images open only as the format their extension names, since Pillow otherwise picks a decoder from the bytes and icons decode their embedded frames while opening, so each frame's own header is read first. Documents are told their format rather than letting MuPDF guess from the stored file's hash name, and a document that is a zip is refused when its central directory or any member is too large for the reader to take whole. Pages, XML bytes and the text built from them have their own budgets, each marked in the text when it cuts.

* feat(studio): preview archives and compressed files only the python tool can read

Zip and tar archives now preview as a listing of their entries with the text of the small ones, and a single compressed file as its text, or an outline of its size when the content is not text. Both are built in the same bounded child as the other previews, and nothing reads the preview yet.

Each reader is bounded by what its library actually reads rather than by the file's size. A zip's central directory is sized with the end record ZipFile itself locates, so an archive whose directory is too large to parse is listed as such instead. Only stored and deflated members are read, because ZipFile limits what one read inflates for deflate alone. A tar is read in one streaming pass over a capped decompressed stream, which bounds its extended headers as well as the member data skipped along the way, and the listing says it is incomplete whenever that cap is reached; member names that are not UTF-8 are replaced rather than surrogate-escaped, which the response could not encode. A compressed file reads up to the text cap plus one byte and marks the text when the cut falls short of that many characters.

* feat(studio): outline data files only the python tool can read

Chat attachments that only the python tool can open now carry an outline for the remaining data formats: Parquet, Arrow IPC and Feather, ORC, Stata, SAS (`.sas7bdat` and `.xpt`), NumPy `.npy` and `.npz`, and safetensors. The message a model receives says what the file holds - its shape, its columns, its first rows, or the arrays and tensors inside it - rather than only where the file is.

Every reader is bounded by what the file itself states it would make its library read, and each budget cut is marked in the output, because a preview must cost about the same for a large attachment as for a small one:

- Parquet decodes a page at a time, so the bound is the uncompressed size each row group states, checked for every group the five-row sample fills from.
- ORC and Arrow IPC materialise a whole stripe or batch and state nothing about how large it is, so they are read through `pyarrow.dataset`, whose row count comes from the footer, and sampled only when the file is small, the cells fit the budget and no column is nested.
- Stata decodes its long-string table whole on the first row read, and every value label with it. Both sizes come from the file's own map, which is walked by the lengths the header states rather than searched, because a dataset label is free text that can hold the same tags. A table too large to read through leaves the values as their stored codes, or leaves the sample out when the rows cannot be read without it.
- A sas7bdat states the header and page lengths pandas asks for before it has read anything, and Python reserves the whole buffer even for a read a short file cannot fill, so those claims are checked first. Character columns are decoded with the encoding the file names when Python has that codec.
- Arrays over the budget are described from their header alone, and `numpy` is given this module's header budget rather than its own default, which a wide structured dtype exceeds in an otherwise small file.

Formats are taken from the attachment's filename, never from the stored path, which is a hash with no extension. Text that cannot survive a round trip through UTF-8 is replaced before it leaves the reader, because a name inside a file can hold a lone surrogate that the JSON response cannot encode.

Nothing reads these previews yet; the frontend change follows.

* feat(studio): preview databases, 3D models and fonts in chat attachments

SQLite databases, STL, PLY, GLB, 3MF and KMZ models and TTF/OTF/TTC fonts previously reached the model as a tool-only note, so a message carried nothing about what the file held. Each now outlines what the file states about itself: a database its tables with their columns, row counts and first rows; a mesh its triangle or element counts and the name it carries; a glTF its scene counts, generator and mesh names; a 3MF or KMZ the model or map inside the container over the container's own listing; a font its name, glyph count and fixed pitch.

Every reader stays inside what the file says reading it would cost, and says so whenever a budget cuts what it shows.

- A SQLite cell is loaded whole by any select that returns it, so cells are measured with octet_length, which answers from the record header, and a cell too large to show is described by its type and size instead. Builds without octet_length cannot size a cell without reading it, so they report no rows rather than read one.
- Views and virtual tables compute what they hand back, so nothing in the file states what five rows of one would cost. They are listed but never sampled, identified by having no b-tree of their own rather than by the schema text, which can be written to say anything.
- Opening any table parses every CREATE in the file, which a file can be written to make expensive several times over. The preview process therefore carries a limit on what SQLite may allocate; the limit can be lowered but never lifted, so it belongs to that process and a reader only asks whether one is in force.
- A model or map inside a container is found through what the package declares, falling back to the conventional name, and is read only when the directory's stated size is within the XML budget.
- Header windows, listings and element text all mark what they leave out, including where the text strips back short enough that the outline cap would otherwise stay silent.

* feat(studio): send attachment previews to the model in chat

A file only the python tool can read reached the model as one line naming it, so the model had to open it with the tool before it knew what was in it. The upload response already carries a preview of such a file — an image, the document's text, or an outline — and this puts that preview in the message.

`uploadAttachmentFile` now returns the preview, shape-checked the way the response's other fields already were, and `toolOnlyAttachmentContent` turns it into the attachment's content: an image part with a description line, the document's text under a `[FORMAT: name]` header, or an outline under `[Outline of name]`. A file with no preview reads exactly as it did before, as does a failed upload.

The image part is added only when the chat model takes images. That check was a thirty-line block inside `VisionImageAdapter.add`; it is now `imageInputUnavailableReason()`, called from both places, so the two cannot drift apart.

What the message persists is `storedAttachmentFile(upload)` rather than the upload itself: the preview's bytes are already in the message's content, so storing them again would put the same text, or the same image, in the history twice. It keeps one thing the preview decided — whether the file's own text is inline — because the note that tells the model where the file lives says "its text is below, so answer from it" only when that text really is below. An outline is not the whole file, so outlines and images keep the note that points at the python tool.

No change was needed where the request is built: the parts of every attachment are already walked whatever the attachment's type.

One behaviour follows from sending the image: a thread that carries an image cannot be continued on a text-only model, which is how the chat already treats images, and a tool-only image attachment now joins them.

* Studio: document viewer for PDF, Word, Excel and PowerPoint, with origin links in Library

* Studio: smaller corner radius on the file viewer

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* Studio: show chat CSV and markdown attachments without the chat wrapper

* Studio: Library grid and sort polish, edge to edge document pages

* Studio: address review on originals sweep, 1904 dates, slide tables and text downloads

* Studio: Excel formats, formula cells, Office text cap and extensionless originals

* Studio: Excel date tokens and built-in time formats, hidden rows and slides, originals sweep on message removal

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* Studio: workbook cell cap, early 1900 dates, fraction formats, virtualized PDF pages, large DOCX images

* Studio: Excel digit placeholders, slide charts, Office checks at attach, run origins under outputs

* Studio: conditional Excel formats, virtualized slides, Office read at attach, whole-text downloads

* Studio: shared formulas, chart and line-break reading, originals save and sweep lock, deduplicated storage

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* Studio: faster document viewer, open review fixes

Spreadsheets
- Read sheet XML as text instead of through DOMParser, and only up to the
  rows kept. Unpack only the parts the workbook uses, so custom XML and
  pivot caches are skipped. Shared strings decode lazily.
- Parse each number format once per workbook instead of once per cell.
- Grid renders only the columns in view, with memoized rows.
- Quoted semicolons no longer split format sections, scientific formats
  keep their literals, and elapsed times show fractional seconds.

Presentations
- Pictures stay as Blobs with object URLs made per mounted slide, instead
  of base64 data URLs for the whole deck. Video and audio are not unpacked.
- Native tables are capped like chart tables. SmartArt labels are read.

Word
- Rendering stops after 50,000 elements, with a note.

Chat
- Office text for the model is budgeted in UTF-8 bytes, delimiters included.
- Attaching an XLSX or PPTX reads the file once.

Chat originals
- Sweeps no longer create the originals folder, so a late sweep cannot
  recreate a deleted account's workspace.
- Startup sweeps every account. Deleting an attachment from the Library
  sweeps too.

* Studio: slim down document viewer and chat originals tests

* Studio: fraction sign, text format sections, lazy shared strings

- A negative value in its own fraction section, such as (# ?/?), no longer
  gets an extra minus.
- String cells use the format's text section: the fourth section, or a
  single section with @. ABC in 0;0;0;"SKU-"@ shows SKU-ABC.
- Shared strings are scanned from the part's bytes only up to the highest
  index a cell uses, and decoded one at a time, instead of building the
  whole table.

* Studio: let a full 5,000 by 200 sheet fit the workbook cell budget

* Studio: chat attachment cards, chips and the Library viewer

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* Studio: tighter Office reader bounds, built-in currency formats

- A worksheet whose first row runs past the 64 MB XML cap is truncated
  instead of decoded whole.
- At most 100 visible sheets are read, so empty sheets cannot add
  unbounded tabs and unzip passes.
- PPTX inflates only what visible slides use: their XML and rels, charts,
  SmartArt data and, for the viewer, their pictures. Notes, comments,
  masters and unused media are skipped.
- Each slide mounts at most 10,000 paragraphs, table cells and pictures,
  ending with a "…" when cut.
- Built-in formats files leave out are filled in: currency (5 to 8),
  fractions (12, 13), accounting (41 to 44) and 48. East Asian date and
  time IDs fall back to the standard ones.

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* Studio: five attachment cards per row, borderless image cards, dark cards keep their edge

* Studio: count extracted text in storage, keep elapsed-time literals

- The attachment inventory records the extracted text size of documents
  with a kept original (inventory version 5). Disk usage counts that text
  for every message, and the original only once and only while on disk.
- Elapsed-time formats replace parsed placeholders only, so quoted or
  escaped text stays as written: [h]:mm "hours" shows 1:00 hours.

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* Studio: slide cap, elapsed sign, temporary chat documents, export origins

- PPTX slides are parsed one at a time instead of all held as DOMs, hidden
  slides are found from the root tag, and at most 500 slides are read with
  a note when more follow.
- Negative elapsed times in their own section use that section's sign, so
  [h]:mm;([h]:mm) shows (1:00).
- Documents sent in a temporary chat keep their file in memory, so they
  still open as pages, grids or slides. Saving the chat uploads them as
  originals. Serialized attachments never carry the File.
- Exports record their source checkpoint, and Library links an export to a
  training run only through that metadata. Older Studio exports fall back
  to their folder name; folders with no export metadata get no run link.

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* Studio: XLSM by MIME, format literals, bounded styles and DOCX parts

- The macro-enabled workbook MIME key is lowercase, as lookups are, so an
  XLSM picked without its extension keeps its original and opens as a grid.
- Padding, fill and bracket tags are removed only outside quoted and
  escaped text: "A_B"0 shows A_B1. Currency symbols stay literal, so
  [$kr.-41D] no longer reads its dot as a decimal point.
- Only the number format, font and cell format sections of styles.xml are
  decoded, each found by a byte scan and capped at 16 MB.
- The DOCX viewer keeps oversized images only, not other large parts.
- When a sent document's original is gone, its stored text stays
  downloadable, as a .txt file.

* Studio: index Office archives once, percent in scientific formats, MIME-only CSV, sweep after upserts

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* Studio: attachment viewers mount on first open, sent text downloads whole

- Every attachment tile mounted a MediaViewer up front, whose project menu subscribes to and
  refetches the project list. The viewer now mounts on first open and stays for its close
  animation, so a long thread pays nothing for tiles never opened.
- A sent text file's Download and Chat about this used the capped preview text; they now cut
  the whole body from the stored text, as the document viewer does.
- A failed read for Chat about this or Download shows a toast instead of rejecting silently.
- The audio viewer offers Download only when there is a clip to build it from.

* Studio: cap slides before inflating them, elapsed placeholder widths, percent fractions

* Studio: parse each slide as it is read, grouped shape frames, CDATA-safe sheet scan, scaled fractions, finished runs first

* Studio: bound cell text and DOCX paragraphs before parsing, slide paragraph budget, hidden shared-formula masters, quoted fraction literals, repeated percent, false font flags

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* Studio: compact shared-string offsets, capped CSV fields and slide XML, engineering notation, group flips and rotation, MIME-only CSV in Library

* Studio: bound every DOM-parsed Office part, read slide charts and pictures per frame

* Studio: one sweep scheduler thread, deck text and chart budgets, ZIP64 part sizes, DOCX images by content type, whole-row and column formula shifts

* Studio: slide shapes in document order, own flips, picture budget and declared types, clipped table cells, lazy workbook support parts, quoted sheet names

* Fix cached empty string formula results in document viewer

* Keep out-of-range date cells from aborting document previews

* Studio: bounded worksheet inflation, deck text charged per box, fraction search by continued fractions, PDF canvas bounds, main part from package rels, Markdown by MIME

* Studio attachments: play videos in the viewer, keep local display settings on legacy records

- Sent and composer videos open a video player in the Library viewer instead of falling through to the text viewer; composer clips are labelled and iconed as video rather than audio by their .mp4 name.
- Personalization reports whether composerAttachments / sentAttachments were saved, so a record written before they existed keeps the browser's values instead of the server defaults.

* Studio viewer: ZIP64 and streamed shared strings, referenced DOCX images, picture crop, PDF text layer bound

* Studio viewer: inflate only the DOCX relationships read, bound PDF image size

* Studio viewer: cap ZIP entries, mark sheets cut past the shared strings bound, bound picture pixels

* Studio viewer: bound DOCX picture pixels, refuse SVGs that embed rasters, cap DOCX entries

* Studio viewer: mark sheets cut when styles are past their bound, release a document when its viewer closes

* Studio viewer: bound PDF page operations, bound format precision, read the hidden flag from the slide root

* Studio viewer: cap shared strings indexed, keep structured references, bound format codes; recheck an original before removing it

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* Studio viewer: pixel budgets per slide and document, cut DOCX markup before parsing, release PDF pages, cap listed pages and style tags, bound export metadata

* Trim comments in document viewer and chat originals

* Drop redundant comments across attachment viewer changes

* Keep comments that record non-obvious invariants in the viewer

* Declare contentType on the attachment selectAttachmentSource reads

* Trim attachment display comments

* Studio viewer: show the integer in formats without whole digits, read lowercase cell references, prefix DOCX ids

* Studio attachments: drop a viewer load or chat handoff that finishes after a sign-out

* Revert the sign-out fence on viewer actions: loads resolve from memory and an account switch reloads the page

* Re-measure the startup bundle budget for the chat attachment cards

* Studio: trim comments in attachment format changes

* Studio: fix attachment sweep cost, sandbox name round trip, original downloads

- Sweep reads every referenced blob id in one query instead of one LIKE scan per stored file under the global store lock.
- sandbox_attachment_path strips a trailing space or dot left by byte truncation, so the basename the frontend sends back derives the same path the file was copied to.
- Uploaded files dialog on web saves a kept original under its name instead of opening a nameless octet-stream tab.
- Numbers cells print doubles at 15 significant digits, matching the xlsx reader.
- Library chat handoff retries held files when Code or tool support changes.

* Keep aui-attachment-root on composer attachment cards, which studiobench counts

* Studio viewer: decode a composer Markdown file as its attachment adapter does

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* Studio: upload attachment originals only for python tool turns, native DOM lookups in the Office reader

* Write the export metadata fixture with json.dumps so Windows paths stay valid JSON

* Studio: RTF, HEIC and transport stream attachments, and chat files for the python tool

* Studio: simplify attachment format changes

* Studio: keep temporary chat files in memory on python turns, skip malformed stored hashes

* Studio: downscale converted images past 16.7 MP, avoid Windows device names in sandbox copies, strip RTF labels from stored text

* Studio: store a python-kept document when a temporary chat is saved

* Studio: upload a tool-only file again when it sat staged past half the originals grace

* Studio: admit tool-only files on the effective Code state, as the send path does

---------

Co-authored-by: Michael Han <[email protected]>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: imagineer99 <[email protected]>
Co-authored-by: Michael Han <[email protected]>
Co-authored-by: danielhanchen <[email protected]>
Co-authored-by: Daniel Han <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants