Sanity Studio v5.5.0: Improved schema extraction with watch mode, CLI config support, and key bug fixes

This release introduces developer experience improvements for schema extraction, including a new watch mode for automatic re-extraction and CLI configuration support. It also includes several bugfixes that improve UI behavior and resolve edge cases.

Watch mode for schema extraction

The sanity schema extract command now supports a watch mode that automatically re-extracts your schema when files change:

# Basic watch mode
sanity schema extract --watch

# Watch with custom paths
sanity schema extract --watch --watch-patterns "lib/**/*.ts"

This makes it easier to develop and test schema changes without manually running the extract command after each modification.

Configuring schema extraction in sanity.cli.ts

The sanity schema extract command now supports configuration via the CLI config file.

Example configuration in sanity.cli.js:

export default defineCliConfig({
schemaExtraction: {
path: './types/schema.json',
enforceRequiredFields: true,
watchPatterns: ['./custom-schema/**/*.ts'],
workspace: 'my-workspace'
}
})

🐛 Notable bugfixes and improvements

Fixes issue where an object's input inside of modals was too close to the bottom edge

Restores autofocus on reference inputs after interacting

Fixes a bug where media library function examples added via the CLI were incorrectly seen as document functions

Paused scheduled drafts that have missed their intended publish date/time are now clearly flagged when viewing all paused scheduled drafts

Fixes a React does not recognize the `disableTransition` prop on a DOM element warning

Fixes an issue in the CLI where exports potentially would contain invalid multi-byte sequences