惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

腾讯CDC
The Cloudflare Blog
IT之家
IT之家
V
V2EX
雷峰网
雷峰网
MyScale Blog
MyScale Blog
P
Proofpoint News Feed
Stack Overflow Blog
Stack Overflow Blog
博客园 - Franky
Engineering at Meta
Engineering at Meta
S
SegmentFault 最新的问题
GbyAI
GbyAI
Microsoft Azure Blog
Microsoft Azure Blog
博客园 - 司徒正美
云风的 BLOG
云风的 BLOG
小众软件
小众软件
博客园 - 叶小钗
Blog — PlanetScale
Blog — PlanetScale
C
Check Point Blog
A
About on SuperTechFans
B
Blog
月光博客
月光博客
宝玉的分享
宝玉的分享
Last Week in AI
Last Week in AI

Sanity.io

A Board Game agent built using Sanity Context and Vercel's AI SDK | Sanity Build a prototype with Claude Code that your whole team can edit | Sanity What’s New - May 2026 | Sanity I built a London pub guide with v0 and the Sanity MCP in six hours. Here's what I learned. | Sanity Build a conference concierge with Agent Context and Anthropic | Sanity Build a content-aware Telegram agent with Vercel AI SDK and Chat SDK | Sanity How I used Agent API to generate photos for my family’s recipes | Sanity What’s New April - 2026 | Sanity Better context, better matches: An AI love story (for dogs) | Sanity How to write for an agent | Sanity Content Agent, meet Slack: AI content operations in your workflow | Sanity Structure powers intelligence | Sanity Your agent needs better content. Here's how to give it. | Sanity How to serve content to agents (a field guide) | Sanity Sanity TypeGen GA: Automatic TypeScript types for content and GROQ | Sanity Sanity is now available on the Vercel Marketplace | Sanity The logo soup problem (and how to solve it) | Sanity Content Releases: From scattered updates to coordinated publishing | Sanity What's New - February 2026 | Sanity How we solved the agent memory problem | Sanity v0 Builder Challenge: The winners | Sanity Introducing: Sanity Agent Skills | Sanity Content Agent: Days of work in one conversation | Sanity Our Sanity Values | Sanity Open Source Pledge 2025: Stepping up when it matters | Sanity v0 builder challenge: $3000 in prizes | Sanity Why AI Breaks Without Structured Content Operations | Sanity What’s New January - 2026 | Sanity BFCM 2025: What teams built when infrastructure stopped being the problem | Sanity How AI shaped holiday shopping and what it means for content in 2026 | Sanity
History experience
Alyssa Blake · 2019-06-18 · via Sanity.io

User guides

Understanding retention time, and document history status

History retention

In order to make Sanity Studio real-time, it sends edits as patches to the backend. All these patches are stored as transactions. Together they make up your documents’ revision history.

History retention is the amount of time you have access to these revisions before they are automatically deleted. The latest version of your published and drafted document will always be available.

The retention period on your documents are defined by the plan you are on. We count retention time backward from the current day.

The retention time for the different plans are:

  • Free: 3 days
  • Growth: 90 days
  • Enterprise: 365 days, or contact us for custom retention

Revisions that are older than the cutoff will be truncated into one revision item, older transactions will be permanently deleted. The document history is truncated regularly every day.

GDPR

We introduced history retention to make it possible to use Sanity and be GDPR compliant. You can learn more about our security and compliance here.

Upgrading the retention time

If you change retention time by changing plans, or upgrading on your current plan, this will only affect the retention cutoff time by postponing it to however long your retention time is. The retention history for your documents will stay as it was before the upgrade.

Downgrading the retention time

The revision history for all your documents will be truncated to your new cutoff time when downgrade either by turning off the upgrade on your current plan, or switching to one with less included retention time.

Exploring history in Sanity Studio

While viewing a single document in the studio editor, you can access the history either by clicking the document status indicator in the very bottom of the editor view, or by opening the contextual menu by clicking the ellipsis icon in the top right corner of the editor and selecting History.

Loading...

How to access document revision history

Nested release history

When a document is published as part of a Content Release, it combines all of the changes into a single entry. You can explore the individual history entries from when the document was part of the release by:

  • Select the "Published" pill at the top of the document
  • Select the "..." for the edit from the release.
  • Select the "Inspect" option to view the history of the document's edits in the release.

Loading...

Once selected, the history will update to display changes made to the document prior between when the version was created and when the release was published.

Loading...

Document status labels

The labels under the title in the document editor shows whether the content you are looking at is published and/or a draft.

Published

The content in the editor is the same that is published to the API.

Draft

The content in the editor has not yet been published, or has been unpublished.

Published, Draft

The content has been edited after the document has been published.

Live

The document is in live edit mode. All changes are published real-time and skip the draft workflow. This is not to be confused with the Live Content API, which is a way of rendering published content changes instantly.

History status labels

These are the labels for the revision items in the history view.

Published

The document was published to the API.

Unpublished

The document was unpublished from the API.

Edited

The document was edited.

Truncated

Revisions before the cutoff date.