# More file upload types, Slack link previews, and bug fixes

**Version:** v2026-04-22

**Published:** April 22, 2026

## More file upload types

You can now upload a wider range of file types in agent chats. In addition to PDFs and images, the agent now accepts CSV, Markdown, HTML, DOCX, and XLSX files. Use this to share spreadsheets, documents, and structured data directly with the agent when creating or updating content.

## Slack link previews

When someone shares a Sanity Studio document or release URL in Slack, the link now expands with a rich preview showing the content’s title and context. This makes it easier to discuss content in Slack without switching back to Sanity to check what’s being referenced.

## Studio cookie authentication for the SDK

Developers building with the `content-agent` npm package can now authenticate using Studio cookies. The new `createStudioAgent` function lets you embed agents directly in Sanity Studio without setting up a separate authentication flow. The SDK also exposes typed error codes for specific failure modes, so you can handle errors precisely in your integration.

## Additional features

- Faster, more reliable content edits: The agent’s mutation flow has been rebuilt for better stability and speed, especially on complex or multi-step edits.
- Clearer credit limit copy: Credit limit error messages now distinguish between organization and user limits.

## Notable bug fixes and improvements

- Fixed an issue where the chat could get stuck reconnecting after a session expired.
- Resolved false validation errors that could appear on optional document references.
- Image uploads now handle missing metadata correctly, preventing occasional crashes.
- Translation tasks no longer pull context from the main conversation, improving accuracy.
- PDF validation errors now surface with clear messages instead of generic failures.
- Slack error handling has been improved, with better support for longer multi-step tasks.

