Add skills with init, fixes for array initial value and deep linking navigation
Published: June 2, 2026
v5.29.0
This release improves the Sanity init setup process, adds a page-builder template, enhances dataset export and authentication features, and fixes several bugs including array field initialization, document scrolling, reference input loading, and media preview permissions.
Add best practice skills during init
sanity init will now prompt to configure Sanity MCP and install the sanity-best-practices agent skill for detected AI editors in a single step during sanity init. Add --no-skills to opt out.
🐛 Notable bugfixes and improvements
- CLI: adds page-builder template using @sanity/presets.
- CLI: adds the no-strict-asset-verification flag to datasets export.
- CLI: MCP can now use oauth for claude code config.
- CLI: Allow ctrl-c to cancel browser login.
- Fixed a bug where an array field with an
initialValueset on both the parent field and a child field withindefineArrayMemberwould incorrectly use the child field’s value. The parent’sinitialValuenow takes precedence, consistent with object fields and the documented behavior; the child’sinitialValuestill fills any keys the parent omits. - Fixes incoming references input flashing loading state.
- Fixes an issue causing the document editor to unexpectedly scroll to the top in certain circumstances after entering Studio using a deep-link.
- Fixed a regression in v5.26.0 where editors with a custom role lacking the Project datasets read permission saw a permissions error toast and broken media previews. Previews now load normally for these roles.
- Fixes intermittent issue preventing navigating by URL to Portable Text Editor deep-links.
- Fixes a bug where an array field with an
initialValueset on both the parent field and a child field withindefineArrayMemberwould incorrectly use the child field’s value. The parent’sinitialValuenow takes precedence, consistent with object fields and the documented behavior; the child’sinitialValuestill fills any keys the parent omits. - Fixes a bug where the incoming references input loading state would flash.
- Fixes an issue causing the document editor to unexpectedly scroll to the top in certain circumstances after entering Studio using a deep-link.
- Fixes a regression in v5.26.0 where editors with a custom role lacking the Project datasets read permission saw a permissions error toast and broken media previews. Previews now load normally for these roles.
- Fixes an intermittent issue preventing navigating by URL to Portable Text Editor deep-links.