You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
feat: improve verification email content — add context, agent name, and HTML template #890
The 6-digit verification code email is a blank, context-free plain-text message. Users who receive it have no idea what platform it's from, which agent they're trying to access, or why they got it. Both callsites pass only the numeric code — no agent name, no link title, no branding.
Current State
Subject:Your verification code
Body:
Your verification code is: 123456
This code expires in 10 minutes.
If you didn't request this code, you can safely ignore this email.
send_verification_code(to_email, code) has no parameters for context. Both callers pass only the code:
src/backend/routers/public.py:341 — public link chat verification
There is no HTML template. The service supports HTML (html_body param exists in send_email()) but _get_verification_email_body() only returns plain text and is never called with agent context.
Acceptance Criteria
Subject line includes the platform name and agent name when available — e.g. Your Trinity access code for "Research Assistant" or Your Trinity login code
Email body names the agent and describes why the code was sent — e.g. "You requested access to Research Assistant on Trinity. Use the code below to verify your identity."
send_verification_code() signature accepts optional agent_name and context_label params so callers can pass what they know
An HTML version of the email is provided alongside the plain-text fallback — code displayed prominently (large font / styled block), not buried in a sentence
Plain-text version remains valid and readable without HTML rendering
The "didn't request this" copy is preserved
Technical Notes
Files to change:
src/backend/services/email_service.py — extend send_verification_code() signature, add HTML template to _get_verification_email_body()
Activity
vybe commentedon May 18, 2026
/claim
github-actions commentedon May 18, 2026
Claimed by @vybe. Label
status-in-progressadded.Next steps:
feature/890-<short-slug>Fixes #890docs(feature-flows): sync flows for #888, #890, #873
feat(email): add context, agent name, and HTML template to verificati…
docs(flows): sync feature-flows.md and test catalog for #887
fix(read-only): bake guard into base image, cover MultiEdit, fail-clo…
vybe commentedon Jun 1, 2026
Shipped in v0.6.0 (released via #998).
Release: v0.7.0 (#1319)
feat(ui): one Settings home for the agent — rail, General, Guardrails…