Skill / SKILL.md

Sanity Studio Listeners

sanity-io/agent-toolkit

Keep Sanity Studio customizations (custom tools, inputs, document views, structure and plugins) from opening a real-time listener per document, which fills the browser's shared connection to the Sanity API and makes Studio hang when editors have several tabs open. Use when writing or reviewing Studio code that shows live data, validation or permissions for many documents (lists, boards, tables, review queues, dashboards); when code calls useValidationStatus, useDocumentPairPermissions, documentStore.listenQuery, listenQuery, client.listen or useListeningQuery from sanity-plugin-utils; or when editors report Studio stuck on its loading spinner or "Trying to connect…", "Could not establish EventSource connection", or that closing other Studio tabs fixes it.
2 views 202 repository stars 0 commentsUpdated Nov 27, 2026
Overview

Keep Sanity Studio customizations (custom tools, inputs, document views, structure and plugins) from opening a real-time listener per document, which fills the browser's shared connection to the Sanity API and makes Studio hang when editors have several tabs open. Use when writing or reviewing Studio code that shows live data, validation or permissions for many documents (lists, boards, tables, review queues, dashboards); when code calls useValidationStatus, useDocumentPairPermissions, documentStore.listenQuery, listenQuery, client.listen or useListeningQuery from sanity-plugin-utils; or when editors report Studio stuck on its loading spinner or "Trying to connect…", "Could not establish EventSource connection", or that closing other Studio tabs fixes it.

Installation & variants

Download the repository, including the skill’s supporting files.

git clone -- 'https://github.com/sanity-io/agent-toolkit' skill-source

Use the complete skill-source/skills/sanity-studio-listeners directory with your client’s skill installer.

  • skills/sanity-studio-listeners

    main · SKILL.md

    Open installation source

    Source directory recorded from the imported repository path

Source directory skills/sanity-studio-listeners

Source instructions
Read source instructions

Open to load source instructions

Original SKILL.md

Open to load the original file

Source & validation
Source status
Awaiting source check
Format validation
Format valid
Checked at
Pending source check
Content SHA-256
3fdfc79e0e2cf8b82df6ec23f2c5f09b0fa22512f293c9bb65957ecbee5dbdf4
Discussion
Comments Be the First to Comment

Please log in to comment

    No comments yet

Related skills