fix(field): say a title is rich text limited to one heading - #296
Open
angeloashmore wants to merge 6 commits into
Open
fix(field): say a title is rich text limited to one heading#296angeloashmore wants to merge 6 commits into
angeloashmore wants to merge 6 commits into
Conversation
The title convention was only in the EXAMPLES of `field add rich-text --help`. An agent that reads `field add --help` and `field add text --help` never sees it, and adds a title as key text. The `text` router row and the `field add text` description now say that key text is for short plain strings, and give the command for a title. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01YRv7FgAiL76NgBHywdGKPC
The text read like an instruction. It now reads as guidance, and it says what key text is good for before it points to rich text. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01YRv7FgAiL76NgBHywdGKPC
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01YRv7FgAiL76NgBHywdGKPC
The examples said key text is a good fit for names. An agent asked to model a blog author then adds the author as key text, but a link to an author type is better. The title guidance does not need the examples. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01YRv7FgAiL76NgBHywdGKPC
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01YRv7FgAiL76NgBHywdGKPC
angeloashmore
marked this pull request as ready for review
September 10, 2026 16:47
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Resolves: #275
Description
The CLI states the single-heading title convention only in the EXAMPLES section of
prismic field add rich-text --help. An agent asked for a title readsprismic field add text --helpinstead, never opens the rich text help, and adds the title as text.This PR puts the convention on both help surfaces the agent reads, and the eval goes from 5 of 18 trials to 10 of 10.
Checklist
Preview
prismic field add text --help:How to QA 1
In a container or a disposable VM:
The testimonial eval is the counter-check. It wants a text field for the author name, so it catches this text pushing plain strings into rich text. It holds at 10 of 10.
🤖 Generated with Claude Code
https://claude.ai/code/session_01YRv7FgAiL76NgBHywdGKPC
Footnotes
Please use these labels when submitting a review:
⚠️ #issue: Strongly suggest a change.
❓ #ask: Ask a question.
💡 #idea: Suggest an idea.
🎉 #nice: Share a compliment. ↩