Skip to content

docs: say when the dev console email provider runs - #4312

Merged
danielmlr merged 4 commits into
mainfrom
emdash-bot/issue-4311
Nov 5, 2026
Merged

danielmlr merged 4 commits into
mainfrom
emdash-bot/issue-4311

Conversation

@emdash-autofix

Copy link
Copy Markdown
Contributor

What does this PR do?

Treats emdash-console-email as a fallback during exclusive hook resolution, so a single real email provider wins in astro dev. Console-only selections stay in memory rather than being persisted.

Clears previously stored console-email selections before resolving providers on boot or pipeline rebuild. Cleanup is limited to console email; deliberate stored choices of the built-in comment moderator retain their current behavior. Email settings reads the resolved provider from the pipeline so a console-only site still displays emdash-console-email, not Unknown.

Compatibility: stored console choices cannot be distinguished from legacy auto-selections, so all are cleared, including choices made through the admin API. Developers who need to prevent real delivery should disable or omit real providers in development, rather than pin the console. With multiple real providers and no saved real-provider choice or preferred hint, email is unconfigured until a provider is selected through the admin API. This keeps the console a fallback rather than a durable override. These cases are documented in the email guide and changeset.

Adds real-SQLite runtime regression coverage for fresh and legacy selections, settings API output, delivery through the selected real provider, and disable/enable rebuilds. The four new runtime tests reproduced the original failure; the settings assertion separately reproduced the missing in-memory-provider display found during review.

Closes #4311

Type of change

  • Bug fix
  • Feature (requires an accepted feature plan or RFC)
  • Refactor (no behavior change)
  • Translation
  • Documentation
  • Performance improvement
  • Tests
  • Chore (dependencies, CI, tooling)

Your connection to this change

Prepared by the project-operated autofix bot through issue auto-intake, under the project-bot exception in AI_POLICY.md. Maintainer review is required before merge.

  • I use EmDash and ran into the problem this PR addresses
  • I maintain a tool, dependency, or service that EmDash uses, and this change concerns that integration
  • A Maintainer approved this specific change before I opened the PR

Checklist

  • I have read CONTRIBUTING.md
  • pnpm typecheck passes
  • pnpm lint passes
  • pnpm test passes (or targeted tests for my change)
  • pnpm format has been run
  • I have added/updated tests for my changes (if applicable)
  • User-visible strings in the admin UI are wrapped for translation (not applicable: no strings changed)
  • I have added and reviewed the user-facing changeset
  • New features link to their merged design PR (not applicable: bug fix)
  • I have included screenshots below

Full-workspace typecheck and type-aware lint are left to CI; focused core typecheck and quick lint pass.

AI assistance disclosure

  • This PR includes AI-generated code or text — model/tool: cloudflare-ai-gateway:gpt-6.1-sol via the EmDash bot (Pi Durable)

Screenshots / test output

Verification:

  • NODE_OPTIONS=--max-old-space-size=6144 pnpm build — passes (default heap initially ran out of memory).
  • pnpm --filter emdash typecheck — passes.
  • pnpm lint:quick — zero diagnostics.
  • pnpm format and git diff HEAD --check — pass.
  • pnpm --dir docs build — passes.
  • pnpm --filter emdash exec vitest run tests/integration/runtime/create.test.ts tests/unit/plugins/exclusive-hooks.test.ts tests/integration/comments/hooks.test.ts tests/unit/api/email-settings-route.test.ts — 79 tests pass.

Playwright Chromium with a local real-email stub provider (no external delivery). The before state was recreated by explicitly selecting console email through the admin API; restarting Astro against the same SQLite database automatically selected the real provider. No admin layout or copy changed.

Before restart:
Email settings with console email selected while real-email is available

After restart:
Email settings automatically selecting real-email after restarting Astro with the same database

Fresh console-only site, with no stored email selection:
Email settings correctly reporting the in-memory console provider on a fresh development site

The EmDash bot took this issue on automatically when it was opened; no maintainer has assigned it yet.

Treat console email as an in-memory fallback and clear legacy console selections on boot/rebuild so a single real provider handles delivery in astro dev. Read the resolved provider for email settings to preserve the console-only display. Added SQLite runtime regressions and documented console override/multiple-provider behavior. Verified root build with increased heap, core typecheck, 79 focused tests, quick lint, formatting, docs build, and Chromium screenshots; independent follow-up review found no remaining defects.

EmDash-Bot-Case: 1198246700-issue-5948867972
EmDash-Bot-Candidate: cand-1-00f8422ef6
@emdash-autofix emdash-autofix Bot added the bot:fix Assign this issue or pull request to the EmDash bot to fix label Oct 20, 2026
@emdash-autofix

emdash-autofix Bot commented Oct 20, 2026 •

Copy link
Copy Markdown
Contributor Author

EmDash bot: Closed

Plan

The merge-conflict notification referred to the older head. The docs revision is now updated cleanly onto the newer main head dbb6e09, still with only the requested two prose changes; re-running documentation verification before repub…

  • Inspect resolver and existing tests
  • Add regression coverage and fix fallback selection
  • Run focused checks and review change
  • Obtain maintainer decision on indistinguishable legacy console overrides
  • Fix explicit email transport setup in invite E2E tests
  • Triage unrelated mobile publishing-panel CI failure
  • Update onto main and replace superseded changes with requested docs clarification
  • Verify docs-only diff, build documentation, and review

Status

  • The pull request or issue was closed.

Next action: None.

Details
Candidate cand-4-b8a3ee7f73 (tree 14e36aec96d2)
Published head 39b5ccdb1632
Reviewer's latest review of head approved
Reporter confirmation not yet
Human approval required before merge

Required checks on the current head:

  • Typecheck: succeeded
  • Tests: succeeded
  • Smoke Tests: succeeded
  • Browser Tests: succeeded
  • Format: succeeded
  • CLAssistant: failed (stale)
  • Measure: succeeded

This status is generated from recorded evidence. It is not a review and contains no instructions.

@changeset-bot

changeset-bot Bot commented Oct 20, 2026 •

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: 39b5ccd

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@emdashbot emdashbot 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.

Both reviewers agree the approach is right: adding the console email plugin to fallbackProviders so the shared resolver selects it in memory only when it is the sole provider, and reading the resolved selection in Email settings. It also covers both boot and rebuildHookPipeline. Tests cover the legacy-selection and console-only cases. The two reviewers disagree on whether the cleanup of stored console selections is acceptable. One reviewer found nothing to fix and treated the behavior as documented, noting only a non-blocking follow-up: the PUT /admin/hooks/exclusive/[hookName] route can still store a console selection that the next restart or rebuild silently deletes. The other reviewer raised a blocking compatibility concern: the cleanup also deletes deliberate admin selections, and shipping that as a patch conflicts with the 1.x compatibility rule. That finding is kept below as needs_fixing.


Reviewed by anthropic/claude-opus-5-5 and openai/gpt-6.1-sol.

Comment thread packages/core/src/emdash-runtime.ts Outdated
Comment on lines +3028 to +3031
if (selections.get(emailKey) === DEV_CONSOLE_EMAIL_PLUGIN_ID) {
selections.delete(emailKey);
try {
await optionsRepo.delete(emailKey);

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.

[needs fixing] This unconditionally deletes deliberate console selections made through PUT /_emdash/api/admin/hooks/exclusive/email:deliver, not just legacy automatic selections. That endpoint persists an explicit provider choice, and the shared resolver normally preserves active stored selections. A developer who explicitly selected console to prevent delivery will instead send through a real provider after a restart or any plugin toggle.

The description and release notes acknowledge this, but documentation alone does not satisfy AGENTS.md's 1.x compatibility rule: breaking changes need an explicit maintainer decision and a major-version release strategy, and this changeset declares a patch. Preserve deliberate overrides while fixing the automatic fallback selection (for example with explicit-choice provenance or an opt-in migration policy), or obtain the required compatibility decision and release treatment.

Disagreement: the other reviewer (anthropic/claude-opus-5-5) approved this behavior. They considered it an accurately documented trade-off and the tests sufficient. They suggested only a non-blocking follow-up: make the PUT route skip storing fallback providers, so stored state matches the documented behavior.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Confirmed: the old automatic-selection path and the PUT endpoint both call OptionsRepository.set with the same key and value. The options row contains only name, value, and a random revision; there is no provenance to recover. Adding an explicit-choice marker would protect future overrides, but cannot distinguish existing deliberate console choices from the reporter’s stuck automatic selection.

Preserving every unmarked legacy value would leave the reported existing-database failure unresolved; clearing them can enable real delivery for someone who deliberately chose console. I agree this needs a maintainer compatibility decision rather than treating release-note disclosure as approval. My recommendation is to preserve ambiguous legacy choices, add provenance for future explicit choices, and provide an explicit reset path for existing affected sites, accepting that this relaxes the report’s no-intervention expectation. Alternatively, the maintainer can authorize resetting legacy choices with the appropriate release treatment. I have left the published code unchanged pending that decision.

@pkg-pr-new

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

Copy link
Copy Markdown

Open in StackBlitz

@emdash-cms/admin

npm i https://pkg.pr.new/emdash-cms/emdash/@emdash-cms/admin@4312

@emdash-cms/auth

npm i https://pkg.pr.new/emdash-cms/emdash/@emdash-cms/auth@4312

@emdash-cms/auth-atproto

npm i https://pkg.pr.new/emdash-cms/emdash/@emdash-cms/auth-atproto@4312

@emdash-cms/blocks

npm i https://pkg.pr.new/emdash-cms/emdash/@emdash-cms/blocks@4312

@emdash-cms/cloudflare

npm i https://pkg.pr.new/emdash-cms/emdash/@emdash-cms/cloudflare@4312

@emdash-cms/contentful-to-portable-text

npm i https://pkg.pr.new/emdash-cms/emdash/@emdash-cms/contentful-to-portable-text@4312

emdash

npm i https://pkg.pr.new/emdash-cms/emdash@4312

create-emdash

npm i https://pkg.pr.new/emdash-cms/emdash/create-emdash@4312

@emdash-cms/gutenberg-to-portable-text

npm i https://pkg.pr.new/emdash-cms/emdash/@emdash-cms/gutenberg-to-portable-text@4312

@emdash-cms/plugin-cli

npm i https://pkg.pr.new/emdash-cms/emdash/@emdash-cms/plugin-cli@4312

@emdash-cms/plugin-test

npm i https://pkg.pr.new/emdash-cms/emdash/@emdash-cms/plugin-test@4312

@emdash-cms/plugin-types

npm i https://pkg.pr.new/emdash-cms/emdash/@emdash-cms/plugin-types@4312

@emdash-cms/registry-client

npm i https://pkg.pr.new/emdash-cms/emdash/@emdash-cms/registry-client@4312

@emdash-cms/registry-lexicons

npm i https://pkg.pr.new/emdash-cms/emdash/@emdash-cms/registry-lexicons@4312

@emdash-cms/registry-loader

npm i https://pkg.pr.new/emdash-cms/emdash/@emdash-cms/registry-loader@4312

@emdash-cms/registry-moderation

npm i https://pkg.pr.new/emdash-cms/emdash/@emdash-cms/registry-moderation@4312

@emdash-cms/registry-verification

npm i https://pkg.pr.new/emdash-cms/emdash/@emdash-cms/registry-verification@4312

upgrade-emdash

npm i https://pkg.pr.new/emdash-cms/emdash/upgrade-emdash@4312

@emdash-cms/sandbox-workerd

npm i https://pkg.pr.new/emdash-cms/emdash/@emdash-cms/sandbox-workerd@4312

@emdash-cms/x402

npm i https://pkg.pr.new/emdash-cms/emdash/@emdash-cms/x402@4312

@emdash-cms/plugin-ai-moderation

npm i https://pkg.pr.new/emdash-cms/emdash/@emdash-cms/plugin-ai-moderation@4312

@emdash-cms/plugin-ai-search

npm i https://pkg.pr.new/emdash-cms/emdash/@emdash-cms/plugin-ai-search@4312

@emdash-cms/plugin-atproto

npm i https://pkg.pr.new/emdash-cms/emdash/@emdash-cms/plugin-atproto@4312

@emdash-cms/plugin-audit-log

npm i https://pkg.pr.new/emdash-cms/emdash/@emdash-cms/plugin-audit-log@4312

@emdash-cms/plugin-color

npm i https://pkg.pr.new/emdash-cms/emdash/@emdash-cms/plugin-color@4312

@emdash-cms/plugin-embeds

npm i https://pkg.pr.new/emdash-cms/emdash/@emdash-cms/plugin-embeds@4312

@emdash-cms/plugin-field-kit

npm i https://pkg.pr.new/emdash-cms/emdash/@emdash-cms/plugin-field-kit@4312

@emdash-cms/plugin-forms

npm i https://pkg.pr.new/emdash-cms/emdash/@emdash-cms/plugin-forms@4312

@emdash-cms/plugin-webhook-notifier

npm i https://pkg.pr.new/emdash-cms/emdash/@emdash-cms/plugin-webhook-notifier@4312

commit: 3f4278a

@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Oct 20, 2026 •

Copy link
Copy Markdown

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

Status Name Latest Commit Updated (UTC)
✅ Deployment successful!
View logs
docs 39b5ccd Nov 05 2026, 08:12 PM

@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Oct 20, 2026 •

Copy link
Copy Markdown

@emdash-autofix

Copy link
Copy Markdown
Contributor Author

CI triage: the invite failures came from the fixture’s marketplace-test email transport correctly replacing the console fallback. The invite tests now explicitly select the console before capturing messages; all 7 pass on both Node and Cloudflare locally. The aggregate Tests failure was solely that E2E lane.

The external Workers Builds: docs check exposes no readable log through GitHub; pnpm --dir docs build passes locally. A maintainer will need to inspect Cloudflare build 206cee29-f384-411a-844c-101d2ca800f8 to identify its failure.

The legacy-selection compatibility decision from review remains unresolved; this CI follow-up does not change that policy.

CI follow-up only: explicitly select console transport before invite tests capture its in-memory emails, because the shared fixture's real sandboxed provider now correctly takes precedence automatically. All 7 invite tests pass on Node and Cloudflare; quick lint, formatting, and diff checks pass. The aggregate Tests failure was downstream of E2E. External Workers docs logs require maintainer inspection. The legacy explicit-console compatibility blocker remains unresolved and this PR is not merge-ready pending the maintainer decision; no runtime policy was changed in this candidate.

EmDash-Bot-Case: 1198246700-issue-5948867972
EmDash-Bot-Candidate: cand-2-8b0e4b4171
@github-actions github-actions Bot added size/L and removed size/M labels Oct 20, 2026

@emdashbot emdashbot 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.

Both reviewers agree the approach is right: console email is an in-memory fallback in the shared resolver, and Email settings reads the resolved selection. This covers boot and rebuildHookPipeline, and the regression tests are meaningful. The one open point is the startup cleanup that deletes every stored emdash-console-email selection. The author confirmed that stored rows carry no provenance, so legacy automatic selections cannot be told apart from deliberate admin choices, and the code is unchanged pending a maintainer decision. Because that cleanup can silently turn a deliberate no-delivery choice into real delivery in a patch release, the compatibility finding stays open and the verdict is request_changes. The anthropic reviewer commented without blocking, leaving the decision to the maintainer. A non-blocking follow-up remains: the PUT route can still store a console selection that the next restart silently deletes.


Reviewed by anthropic/claude-opus-5-5 and openai/gpt-6.1-sol.

Comment thread packages/core/src/emdash-runtime.ts Outdated
if (selections.get(emailKey) === DEV_CONSOLE_EMAIL_PLUGIN_ID) {
selections.delete(emailKey);
try {
await optionsRepo.delete(emailKey);

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.

[needs fixing] This cleanup deletes console selections explicitly persisted through PUT /_emdash/api/admin/hooks/exclusive/email:deliver, as well as legacy automatic selections. With a real provider present, a restart or plugin toggle turns an explicit console-only choice into real delivery.

The author confirmed the stored rows have no provenance and the code is unchanged pending a maintainer decision. That ambiguity is real, but it does not authorize a breaking change in a patch release. AGENTS.md requires an explicit compatibility decision and major-version release treatment.

Preserve ambiguous existing choices, record provenance for future explicit selections, and provide an explicit reset path. Alternatively, obtain the maintainer decision and release strategy before shipping the cleanup. The docs disclose the behavior, but disclosure alone does not resolve the compatibility rule.

Disagreement: anthropic/claude-opus-5-5 did not block on this. It treated the trade-off as accurately documented and left the policy to the maintainer. openai/gpt-6.1-sol considers it blocking.

Optional follow-up from anthropic/claude-opus-5-5: make the PUT route reject or skip storing fallback providers, so stored state matches the documented behavior.

@emdash-autofix

Copy link
Copy Markdown
Contributor Author

The new CI failure is different from the fixed invite failure: content-actions.spec.ts:251 measures publishing-panel controls while the mobile Settings sheet is opening. A focused Cloudflare repeat reproduced variable out-of-viewport bounds, then passed on each retry (1 passed, 2 flaky); the captured failure screenshot shows the controls inside the viewport after the measurement. This points to transition-sensitive geometry assertions. This PR changes no editor/sidebar layout code, so I have not expanded it to change that test or component.

The Tests gate is downstream of this single E2E failure. A maintainer can rerun the failed shard and track the sidebar timing issue separately. The legacy console-selection compatibility decision remains the merge blocker.

@danielmlr danielmlr added the ci:run Approve and re-run CI on the PR's latest commit label Oct 28, 2026
@github-actions github-actions Bot removed the ci:run Approve and re-run CI on the PR's latest commit label Oct 28, 2026
@danielmlr

Copy link
Copy Markdown
Member

@emdash-autofix Since this PR opened, #2156 landed on main. It already makes the console an in-memory fallback, shows an env-selected provider in Settings (Email) when nothing is stored, and selects the console in the invite e2e tests. It also added a provider dropdown to Settings (Email), and in dev that dropdown lists the console. The startup cleanup would delete a console choice saved there on every restart or plugin toggle, and dev mail would then go out through a real plugin or env SMTP. A site that still holds an old stored console selection can switch in that dropdown instead, so the cleanup isn't needed.

  • Rebase onto main and keep main's versions of fallbackProviders, the settings GET and invite-flow.spec.ts.
  • Remove the stored-console cleanup from EmDashRuntime.resolveExclusiveHooks, the tests this PR added to create.test.ts, and the changeset.
  • In the console section of docs/src/content/docs/guides/email.mdx, change "when no other provider is selected" to "when no other provider is active", so it also covers SMTP set through environment variables. Drop the paragraph this PR added, and keep main's wording everywhere else in the file.
  • Add one sentence to that section: if Settings → Email still shows the console after you add a provider plugin or set up SMTP, pick that provider there and save.
  • Leave the resolver, both PUT routes and the dropdown unchanged.
  • Retitle the PR with a docs: prefix, for example docs: say when the dev console email provider runs.

@emdash-autofix

emdash-autofix Bot commented Nov 5, 2026

Copy link
Copy Markdown
Contributor Author

Updated onto main (2728fc5c) and followed that scope. The diff against main is now only the two requested documentation edits. Main’s runtime fallback configuration, settings GET, invite E2E setup, resolver, both PUT routes, and dropdown are unchanged; the cleanup, added runtime tests, and changeset are removed.

The docs build and quick lint pass, formatting is clean, and I checked the rendered console section. I’ll publish this as docs: say when the dev console email provider runs.

Updated onto main and followed the maintainer’s docs-only direction. Restored main’s runtime, settings GET, and invite E2E versions; removed stored-console cleanup, PR-added runtime tests, and the changeset. The sole net change clarifies that console email runs when no other provider is active and explains how to select and save a real provider when an old console selection remains. Verified documentation build, zero quick-lint diagnostics, formatting, clean diff/conflict checks, rendered docs screenshot, and independent review.

EmDash-Bot-Case: 1198246700-issue-5948867972
EmDash-Bot-Candidate: cand-3-b8a3ee7f73
@github-actions github-actions Bot added size/XS and removed size/L labels Nov 5, 2026

@emdashbot emdashbot 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.

The docs-only approach is sound. It tells developers whose database still holds a stored console selection to choose their real provider in Settings → Email, so real delivery is never turned on silently. Both reviewers approve. The startup cleanup that was the earlier blocking compatibility concern is no longer in the diff, so that finding no longer applies. Its optional PUT-route follow-up is also moot, because a stored console choice now persists as a normal explicit selection. No bugs were found. One optional wording suggestion remains. The PR title and description still describe the earlier runtime-cleanup implementation and should be updated before merge. For existing databases the fix is now a manual step, not the no-intervention behavior the issue asked for.


Reviewed by anthropic/claude-opus-5-5 and openai/gpt-6.1-sol.


That means magic links and invites work out of the box in dev: request a magic link, then copy the URL from your terminal output. You can also list captured emails at the dev-only endpoint `GET /_emdash/api/dev/emails` (and clear them with `DELETE`).

If **Settings → Email** still shows the console after you add a provider plugin or set up SMTP, select that provider there and save.

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.

[suggestion] Optional: say why the console can stay selected. A reader may otherwise think their provider plugin is broken. The cause is a selection saved in an earlier dev session, before the real provider was added. That selection is kept until it is changed.

Suggested change
If **Settings → Email** still shows the console after you add a provider plugin or set up SMTP, select that provider there and save.
If you ran `astro dev` before adding a provider plugin or setting up SMTP, the console may still be saved as the selected provider, and **Settings → Email** shows it. Select the new provider there and save.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I’m keeping the concise, symptom-based sentence requested by @danielmlr. It also covers a deliberately saved console choice, not only an automatic selection from an earlier session. The latest submitted title is docs: say when the dev console email provider runs; its replacement description explicitly says existing sites need the manual switch and that no selection is migrated or reset.

Merged main dbb6e09 cleanly and reverified the docs-only revision. The net diff remains just the requested active-provider wording and Settings → Email selection instruction. Main’s implementation, tests, and stored console choices are unchanged; all earlier cleanup code and the changeset remain removed. Documentation build, quick lint, formatting, diff checks, rendered screenshot, and independent review pass.

EmDash-Bot-Case: 1198246700-issue-5948867972
EmDash-Bot-Candidate: cand-4-b8a3ee7f73

@emdashbot emdashbot 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.

The docs-only approach is sound. It tells developers whose database still holds a stored console selection to choose their real provider in Settings → Email, so real delivery is never turned on silently. Both reviewers approve and found no new bugs. The earlier blocking compatibility concern about the startup cleanup no longer applies, because that cleanup is not in the diff. The PR title and description still describe the removed runtime-cleanup implementation and should be updated to match the docs-only change before merge. For existing databases the fix is now a manual step, not the no-intervention behavior the issue asked for.


Reviewed by anthropic/claude-opus-5-5 and openai/gpt-6.1-sol.

@emdash-autofix

emdash-autofix Bot commented Nov 5, 2026

Copy link
Copy Markdown
Contributor Author

The latest candidate was submitted with the title docs: say when the dev console email provider runs and a docs-only replacement description, but this review still reports the old PR metadata. I cannot directly edit GitHub metadata outside the trusted publication tools.

@danielmlr, could you update the displayed title and description before merge if they remain stale? The description should say:

Clarifies that the dev console email provider runs when no other provider is active, including SMTP configured through environment variables. Adds instructions to select and save the real provider in Settings → Email when an existing database still has the console selected.

#2156 supplies the runtime behavior and provider dropdown. This PR changes only the email guide; it does not reset stored selections or change the resolver, routes, dropdown, or tests. Existing affected sites must switch providers manually after upgrading to a version containing #2156.

Type: Documentation; no changeset or package tests apply. Verification: docs build, quick lint (zero diagnostics), formatting, and diff checks passed. The earlier runtime-cleanup claims and admin screenshots should be removed; the current rendered-docs screenshot is here.

@danielmlr danielmlr changed the title fix(core): let real email providers replace the dev console fallback docs: say when the dev console email provider runs Nov 5, 2026
@emdashbot emdashbot Bot added the review/needs-review No maintainer or bot review yet label Nov 5, 2026
@github-actions github-actions Bot removed the review/needs-review No maintainer or bot review yet label Nov 5, 2026
@danielmlr
danielmlr merged commit e1944d6 into main Nov 5, 2026
37 checks passed
@danielmlr
danielmlr deleted the emdash-bot/issue-4311 branch November 5, 2026 20:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/core area/docs bot:fix Assign this issue or pull request to the EmDash bot to fix cla: signed size/XS

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Dev console email provider is stored as the email:deliver selection and keeps winning over a real provider in astro dev

1 participant