Skip to content

Assist does not ignore readOnly fields as advertised #912

Description

@rijk

Which plugin is affected?

@sanity/assist

Describe the bug

In the docs is stated:

AI Assist will ignore any field that is hidden or in read-only mode when the instruction starts running. Changes to these conditions that occur while the instruction is running will not alter this behavior.

However, when I run the Translate fields action, fields that are marked readOnly: true are overwritten by the assist.

Image

Even worse, it will sometimes put invalid values in them, locking the client from being able to publish the document.

Image

This is a type: 'internationalizedArrayString' field by the way.

Environment

  • Sanity Studio version: 5.27.0
  • Plugin version: 6.0.7
  • Browser: Chrome
  • Operating system: macOS

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions