Repository navigation
feat(inboxes): type the inbox agent tone as a preset key or custom text - #1153
Closed
LauraBeatris wants to merge 1 commit into
Closed
LauraBeatris wants to merge 1 commit into
LauraBeatris wants to merge 1 commit into
Conversation
commit: |
klotty
approved these changes
Oct 14, 2026
klotty
left a comment
There was a problem hiding this comment.
No issues found across 4 files
Confidence score: 5/5
- Automated review surfaced no issues in the provided summaries.
- No files require special attention.
Auto-approved: Types the inbox agent tone as a preset key or custom text while keeping it assignable from any string, so the change is non-breaking and affects types only. A spec test confirms the preset is sent unchanged on update.
View guided diff | Re-trigger cubic
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.
Follow up to the MES-2292 stack in the monorepo (resend/resend-monorepo#12635 is the public API part). The API now takes
toneas one of four preset keys or custom text, and this types the same union in the SDK.Summary
toneon the agent settings and on the update options is nowInboxAgentTone | nullinstead ofstring | null.InboxAgentToneis one of the four preset keys or any other string, so the presets autocomplete and custom text written by the inbox owner still type checks.INBOX_AGENT_TONE_PRESETSandInboxAgentTonePresetare exported next to the existing action list.Nothing changes on the wire. The SDK keeps sending the string as it is, so this is not a breaking change and existing callers compile unchanged.
Testing
The agent spec has a new case that sends a preset through
updateand checks the body carries it unchanged. The existing get case keeps custom text in the response fixture, which covers the free text side of the union. Lint, typecheck and the agent spec pass.Part of MES-2292.
Summary by cubic
Types the inbox agent
toneas a preset key or custom text instead of a free-form string, aligning the SDK with the updated API.toneon agent settings and update options is nowInboxAgentTone | null; the four preset keys autocomplete while custom text still type checks.INBOX_AGENT_TONE_PRESETSandInboxAgentTonePresetalongside the existing action list.Written for commit 5afcf91. Summary will update on new commits.