docs: clarify that 'to' is always a JSON array#9
Closed
craigbidenbot[bot] wants to merge 1 commit intomainfrom
Closed
docs: clarify that 'to' is always a JSON array#9craigbidenbot[bot] wants to merge 1 commit intomainfrom
craigbidenbot[bot] wants to merge 1 commit intomainfrom
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Contributor
Author
|
Closing — this repo migrated to Merit-Systems/the-stables. Will re-open against the monorepo if the fix is still needed. |
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.
Summary
Fixes a common agent confusion where
tois passed as a string instead of an array, causing 400 errors.Changes
{to, subject, ...}to{to: ["email"], subject, ...}with explicit note that to is always an arraytois always a JSON array of strings, even for single recipientsContext
Multiple agent sessions have hit this bug — the discovery instructions said
{to, subject, ...}which models interpret as a string field. Every time the agent sends its first email it gets a 400 and has to retry with an array.Test Plan
.well-known/x402instructions show array format