Skip to content

feat(inboxes): type the inbox agent tone as one of the presets - #1157

Merged
LauraBeatris merged 3 commits into
canaryfrom
feature/mes-2292-inbox-agent-tone-presets
Oct 14, 2026
Merged

LauraBeatris merged 3 commits into
canaryfrom
feature/mes-2292-inbox-agent-tone-presets

Conversation

@LauraBeatris

@LauraBeatris LauraBeatris commented Oct 14, 2026 •

Copy link
Copy Markdown
Member

Follow up to the MES-2292 tone changes. The API reference (resend/resend-docs#1904) and both MCP servers (resend/resend-mcp#241, resend/resend-monorepo#12675) describe the inbox agent tone as one of four presets. The SDK still typed it as any string, and #1153 (the preset or custom text union) was closed.

Summary

  • tone on the agent settings and on the update options is now InboxAgentTone | null, where InboxAgentTone is concise_professional, concise_casual, expanded_professional or expanded_casual.
  • INBOX_AGENT_TONES and InboxAgentTone are exported next to INBOX_AGENT_ACTIONS, so the CLI and the MCP servers can drop their local copies of the list once this ships.
  • Nothing changes on the wire. The SDK keeps sending the string as it is.

Things to be aware of

  • The API still accepts custom text up to 64 characters, and about 35 inboxes in production have a tone written that way. Those come back from get as text that is not in the union. This follows the API reference, which types the field as the presets only.
  • Callers on 6.33.0 that pass custom text to update get a type error after upgrading. The runtime behaviour is unchanged.
  • feat(inboxes): rename the inbox agent enabled_actions field to actions #1156 (the MES-2726 rename) touches the same files, so whichever merges second needs a small rebase.

Testing

pnpm lint, pnpm typecheck and pnpm test pass. The agent spec has a new case that sends a preset through update unchanged, the get fixture uses a preset, and the validation error case now uses instructions that are too long since a long tone no longer type checks.

@pkg-pr-new

pkg-pr-new Bot commented Oct 14, 2026 •

Copy link
Copy Markdown

Open in StackBlitz

npm i https://pkg.pr.new/resend@1157

commit: a349f50

@LauraBeatris
LauraBeatris marked this pull request as ready for review October 14, 2026 23:14
@LauraBeatris
LauraBeatris requested a review from a team as a code owner October 14, 2026 23:14
@LauraBeatris
LauraBeatris requested a review from klotty October 14, 2026 23:14

@cubic-dev-ai cubic-dev-ai Bot left a comment •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

cubic analysis

All reported issues were addressed across 5 files

Linked issue analysis

Linked issue: MES-2292: Use a typed tone instead of free-form strings

Status Acceptance criteria Notes
⚠️ Type agent tones as a defined set instead of arbitrary strings Settings and update accept only four presets, but get can return custom tones that the type excludes.

Reply with feedback, questions, or to request a fix.

View guided diff | Re-trigger cubic

Comment thread src/inboxes/agent/interfaces/agent.ts Resolved
@LauraBeatris LauraBeatris self-assigned this Oct 14, 2026

@cubic-dev-ai cubic-dev-ai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

0 issues found across 2 files (changes from recent commits).

Confidence score: 5/5

  • Automated review surfaced no issues in the provided summaries.
  • No files require special attention.

Requires human review: Tightens the SDK's update tone option to four preset literals and exports the tone constant/type without changing runtime wire behavior; this is a breaking type change for callers who pass custom tone text that the API still accepts.

View guided diff | Re-trigger cubic

@cubic-dev-ai cubic-dev-ai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

0 issues found across 2 files (changes from recent commits).

Confidence score: 5/5

  • Automated review surfaced no issues in the provided summaries.
  • No files require special attention.

Requires human review: Narrows the SDK's inbox agent tone type to four preset literals in settings/update options and exports the constant, with tests adjusted. Runtime wire behavior is unchanged, but this is a public type-contract break for callers who use or read custom tone text the API still accepts.

View guided diff | Re-trigger cubic

@LauraBeatris
LauraBeatris merged commit 13c7086 into canary Oct 14, 2026
12 checks passed
@LauraBeatris
LauraBeatris deleted the feature/mes-2292-inbox-agent-tone-presets branch October 14, 2026 23:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants