Skip to content

feat(studio): support XLSX attachments in Chat - #7700

Closed
Imagineer99 wants to merge 1 commit into
unslothai:mainfrom
Imagineer99:feat/chat-xlsx-uploads
Closed

Imagineer99 wants to merge 1 commit into
unslothai:mainfrom
Imagineer99:feat/chat-xlsx-uploads

Conversation

@Imagineer99

Copy link
Copy Markdown
Member

Summary

  • add .xlsx uploads to the regular Chat attachment adapter
  • parse every worksheet into labelled, tab-separated text for the model
  • validate archive expansion and bound the generated chat context
  • recognize copied .xlsx files in the desktop native clipboard path
  • add focused coverage, including a real minimal XLSX archive

Why

Regular Chat supported text, PDF, DOCX, and OpenDocument attachments but had no adapter capable of parsing Excel workbooks. Selecting an .xlsx file therefore was not available even though its worksheet data can be supplied directly as chat context.

Scope

This PR intentionally covers regular Chat only. Compare Chat and Chat with Files/RAG use separate attachment and indexing implementations and can be handled in follow-up PRs. Legacy .xls and .xlsb formats are also out of scope.

Safety and behavior

  • rejects archives larger than 50 MiB
  • preflights entry count and expanded XML sizes before parsing
  • caps rendered workbook context at 100 sheets, 20,000 rows, 1,000 columns per row, and 250,000 characters
  • clearly marks workbook content when a chat-context limit truncates it

Validation

  • frontend tests: 163 passed
  • application TypeScript check passed
  • test TypeScript check passed
  • production Vite build passed
  • Rust clipboard MIME assertion added; the Rust test suite was not run locally because the environment did not have Cargo/rustfmt installed

@ikaygorodov

Copy link
Copy Markdown

Please consider this PR. It is very important to have an option to work with Excel files.

@Imagineer99

Copy link
Copy Markdown
Member Author

Closing in favour of #11379, which covers XLSX plus drag-and-drop. That PR is still pending, so we can track the remaining work there.

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.

3 participants