Your agent adds a welcome-email task and says the dev worker is ready. Pressing Sign up could still send real email, because the worker runs task code with whatever configuration it has. A Development run is a real run. Test the task with a controlled recipient and payload, then test the app's trigger path separately.

Map the whole path before triggering
List the local page, backend route, Trigger.dev project and environment, worker, email provider, recipient logic and database. Canopy runs the website, API and worker as separate components and shows their output, but it doesn't sandbox external email or database calls.
Confirm the checkout and process for each component. Check variable names, not key values, and keep customer addresses out of agent prompts.
| Boundary | Check | Unsafe assumption |
|---|---|---|
| App backend | Development Trigger key and test account | A local page means development tasks |
| Trigger project | Development environment and task version | A green worker means the right task is registered |
| Email provider | Approved test key or mode and test recipient | A DEV run can't send real mail |
| Data and callbacks | Disposable record and non-production destination | The test email is the only side effect |
Use a payload that can't reach a customer
Use a synthetic signup and a provider test address or your team's capture inbox. Resend documents delivered@resend.dev for a simulated delivery, plus bounce and complaint addresses. Don't invent a fake domain.
Check that the task takes the recipient from the test payload, not from a production user or mailing list. If it ignores the test recipient, fix that first.
- Check every recipient, including CC, BCC and fallback addresses.
- Confirm callbacks, CRM, analytics and database writes use development targets.
Test the task directly in Development
Start one Trigger.dev dev worker from the saved Canopy command and read its registration output. In the dashboard, use Test with Development, the task and the controlled payload, then check the run ID, outcome, logs and provider event.
A successful run means the task finished, not that the right inbox got the right message. Don't click Run test again until you know whether the first run executed and can retry; repeat runs repeat side effects.
- Keep one dev worker per project.
- If the run fails, find the first failing boundary before retrying.
Then test the signup route once
After the direct test passes, sign up once in the local app with a fresh test account. The app needs the Development key and the right trigger route, which the dashboard test skipped. Find the new run ID and check its trace and provider event.
No run? Check the app request and backend log. A run under the wrong project or environment? Stop before signing up again.
- Tie one browser action to one backend request and one run ID.
- Never switch to a Production key to make a local demo pass.
Review the agent's change before real delivery
Read the PR for environment changes, hardcoded recipients, exposed secrets, retry settings and provider-error handling. A test recipient must never silently replace production recipients.
The app owner approves live credentials, recipient rules and rollout once the Development evidence is recorded. The provider and Trigger.dev dashboard remain the sources for delivery and run state.
- Test a provider error or bounce with the provider's test route.
- Name who watches the first live run and how duplicate sends are prevented.
Copyable resources
No customer addresses, production keys or real personal data in this card.
Feature: signup welcome email
Local app branch, checkout and URL: [ ]
Backend route and Development Trigger project/environment: [ ]
Worker process and registered task ID: [ ]
Provider test mode/key owner and test recipient: [ ]
Other side effects and test destinations: [ ]
Dashboard test payload, run ID, outcome, provider event: [ ]
App signup test account, request, run ID, provider event: [ ]
Duplicate/retry and error-path result: [ ]
Final diff, environment changes and live-delivery owner: [ ]Frequently asked questions
Does running trigger.dev dev stop a task from sending real email?
No. The dev worker runs the task code with its configured integrations. Check the provider, recipient and any database or callback targets before triggering it.
Why test in the dashboard and through the app?
The dashboard test checks registration and execution with a controlled payload. The app test checks the backend's trigger key, request path and resulting run. One can pass while the other is misconfigured.
Can I replay a failed email run immediately?
First check whether it sent any email and whether retries or other side effects already ran. Use a test recipient and decide on duplicate sends before running again.