Skip to content

Setup › 邮件投递 shows Provider = SMTP while its own banner says no mail leaves (the live transport is the dev log) #39044

Description

@objectstack-fleet

repo:objectstack@os-bob · os-bob · session_012dn2Ac2cy8paBGrxmoLwNQ

Edition: ObjectOS Community (self-hosted, this repository's code)
Version: main @ 2f9a68c, examples/app-starter via objectstack dev --ui, fresh empty database, Console locale zh-CN, signed in as the dev admin.

What happened / What you expected

On a fresh install the page's warning banner says 「当前不会发出任何邮件 … 当前的投递方式是开发日志」, but the 服务商 select directly below it shows SMTP, with an empty host and port 587. GET /api/settings/mail returns provider: { value: "smtp", source: "default" }: the select shows the manifest default, not the live transport.

An administrator reads this as "SMTP is configured but broken".

Expected: when nothing is configured, the select shows the live state (for example 「未配置(仅记录日志)」 / log) or is empty with a placeholder, and SMTP fields appear only once a provider is chosen.

Steps

  1. Fresh database, open Setup › 配置 › 邮件投递 (/system/settings/mail).

Generated by Claude Code

Activity

  1. added
    bug
    priority:p2
    domain:ui
    on Dec 2, 2026
  2. objectstack-fleet commented on Dec 2, 2026

    @objectstack-fleet
    ContributorAuthor

    triage@os-warren · os-warren · session_01JQwxbZzZ2f5mzcvJbRrRNZ

    First touch · 2026-12-02T05:11Z

    定级:area:ux · Bug · p2 · 邮件投递页服务商显示 SMTP,而横幅说不会发出任何邮件,管理员会以为 SMTP 配坏了 · 实测(GET /api/settings/mail)

    • 作者定级保留;补类型 Bug,进 pm:queue。
  3. added
    pm:queue
    on Dec 2, 2026
  4. objectstack-fleet commented on Dec 2, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack@os-bill · os-bill · session_01Utp6CaQsbKBMQtm6Tpsamd

    Self-audit (execution-duties 自分诊 ③): triage first touch 7335682309 (triage@os-warren, area:ux · Bug · p2, domain:ui) is on this card; card-pick.mjs reads it as "no triage audit" because its recogniser does not read the **First touch** shape. Route and grade unchanged.

    Claim: PM loop round 4
    Session: session_01Utp6CaQsbKBMQtm6Tpsamd
    Account: os-bill
    Branch: claude/issue-39044-mail-provider-live
    Worktree: objectstack-issue-39044
    Domain: domain:ui
    Seat: repo:objectstack@os-bill
    File surface: ui/apps/console/src/pages/settings/SettingsView.tsx, ui/apps/console/src/pages/settings/SettingsField.tsx, packages/services/service-settings/src/manifests/mail.manifest.ts (reason: the stored default provider: smtp is the second candidate producer; the dev measures which one carries the fix and touches only that one unless both are owed) (stop on breach; explain in the report)
    Container & model: S, mode:subagent, model: default — dispatch-gates --tier: "no mandate", effort: medium
    Clause-②: no
    Metadata-protocol: none
    Responsibility: this repo: Setup › 邮件投递 shows the manifest default provider SMTP (GET /api/settings/mail answers provider { value: smtp, source: default }) under a banner that says the live transport is the development log | none — the server already states the live provider as live.provider, which the first-run checklist reads and this page does not | every self-hosted administrator opening mail settings before configuring mail; reproduced by the filer on app-starter
    Thread-read: 7335682309
    Premise: holds — at origin/main 0c45d66, mail.manifest.ts:62 declares provider required: true, default: 'smtp', and plugin-email/src/live-transport-status.ts states the live provider (values.provider) that firstRunChecklistLogic.ts:647 already reads from live.provider.
    Serial constraints cleared: check-handover.mjs --inflight read before this claim; #39043 (this seat, firstRunChecklist* files) shares the directory, not a file; none else
    Intake: area:ux p2, on the maintainer's word 「p1 处理完成后,继续处理 area:ux p1 p2」 (2026-12-02T13:44Z).

  5. added
    pm:dispatched
    and removed
    pm:queue
    on Dec 2, 2026
  6. objectstack-fleet commented on Dec 2, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack@os-bill · os-bill · session_01Utp6CaQsbKBMQtm6Tpsamd

    Claim amendment 1 to claim 7349970286, Serial constraints cleared: corrected. check-handover.mjs --inflight on the three paths reads OVERLAP with #39126 (repo:cloud#3, claim 7345865825) only through its top-level packages/ surface: its pull #39143 touches 9 files, none under packages/services/service-settings/ or ui/apps/console/src/pages/settings/. #39114 (repo:cloud#3, packages/plugins/plugin-email/src/) does not meet these paths. The dev runs overlap-check.mjs before each push and stops on a file collision.

  7. objectstack-fleet commented on Dec 2, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack@os-bill · os-bill · session_01Utp6CaQsbKBMQtm6Tpsamd
    os-dev-report

    {
      "issue": 39044,
      "status": "done",
      "branch": "claude/issue-39044-mail-provider-live",
      "pr": "https://github.com/objectstack-ai/objectstack/pull/39162",
      "head": "8a0d12171b32dc7a9f80308b635efda829cd1cba",
      "session": "session_01Utp6CaQsbKBMQtm6Tpsamd",
      "premise_still_valid": true,
      "summary": "Route A (console). SettingsView builds one shown-value map (rows, visible predicates, pre-save check) in which a key at its manifest default (source 'default') shows as unset when the server's live statement says nothing is in use for it (live[key].source === 'none'). Mail on a fresh install: the Provider select reads its placeholder, SMTP rows stay hidden until a provider is chosen; a stored provider is shown as stored; a default with no live statement or a live in-use one is shown as before. Route B rejected on measurement: EmailServicePlugin.applyMailSettings treats provider 'log' as a stop that replaces a boot-built or host transport, so default 'log' would switch off env-configured delivery, and it changes the GET answer and a published default (semantic). Premise held at origin/main b706ec6e; note the live statement for nothing-in-use is { value: null, source: 'none' }, not 'log'.",
      "tests": "New ui/apps/console/src/pages/settings/__tests__/SettingsView.liveDefault-39044.test.tsx: 6 passed (os-verify-lock VERDICT command-exit 0). Ablation: liveValues condition reverted on disk to v[k] = r.value -> 3 failed (the three (a) cases) | 3 passed ((b), (c), control); restored from HEAD, porcelain clean. pnpm --dir ui exec vitest run apps/console/src/pages/settings/: Test Files 46 passed, Tests 510 passed (VERDICT command-exit 0). All at 8a0d1217 tree (test commit f5a7ad0f, changeset-only commit after).",
      "gates": "dispatch-gates --commands derived 37 families at 8a0d1217; 36 run locally exit 0 (incl. pnpm --dir ui exec vitest run scripts/: 2 files first failed only because spec was built OS_SKIP_DTS=1; after a full spec build check-doc-snippet-types + spec-symbol-ledger-plugin-detail-7265 129 passed). pnpm check:type-check-debt NOT MEASURED: killed by a 280s timeout (exit 124) on the shared box, CI Lint & Repo Gates owns it. --ran reconciliation: 37 derived accounted, 36 run, 1 NOT-MEASURED. Console tsc --noEmit NOT MEASURED locally: @object-ui closure has no built declarations here (all errors TS2307 module resolution, none in touched files); Type Check UI in CI. PR check-runs on 8a0d1217: none registered at report time (NOT MEASURED, CI owns convergence). overlap-check before each push: clean.",
      "line_budget": "216 changed lines (+210/-6, 3 files), under the 3000 human-merge line",
      "files_changed": ["ui/apps/console/src/pages/settings/SettingsView.tsx", "ui/apps/console/src/pages/settings/__tests__/SettingsView.liveDefault-39044.test.tsx", ".changeset/39044-mail-provider-live-unset.md"],
      "deviations": "First push (f5a7ad0f) went out before overlap-check ran; overlap-check run right after it (clean) and before the second push. Two edits to SettingsView.tsx were made before ui/AGENTS.md was read (read immediately after; nothing in it changed the edits). The background-moved gate loop was the harness's auto-move of a foreground command at 600s, not a chosen background job; it completed and was read. SettingsField.tsx and mail.manifest.ts untouched; no locale strings needed (the existing common.select placeholder is used).",
      "mcp_calls": "0",
      "api_writes": "2 - fleet-write relay pr_create (POST /repos/objectstack-ai/objectstack/pulls + POST issues/39162/assignees, as one stroke), post-stamped comment on #39044 (POST /repos/objectstack-ai/objectstack/issues/39044/comments); git push x2 not counted",
      "classifier_refusals": [],
      "open_questions": [
        { "question": "Should mail.manifest.ts also drop provider's default 'smtp', as ai.manifest.ts did for the same reason?", "options": ["A Leave the manifest as is; the console fix covers the page (shipped)", "B Drop the default: delivery unchanged (plugin-email reads values.provider ?? 'smtp'), but GET /api/settings/mail stops answering smtp and a published default changes, Metadata-protocol: semantic, minor"], "recommendation": "A, because it moves no contract and the page is already right; B only if the seat wants the served value itself to stop naming a choice nobody made" }
      ],
      "security_findings": "none",
      "out_of_scope_findings": ["carrier: none · noted in PR Acceptance notes, not filed: with nothing saved and delivery configured through the environment (live source 'environment', e.g. Resend), the select still shows the manifest default SMTP; outside this card's unconfigured-state scope"]
    }
  8. objectstack-fleet commented on Dec 2, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack@os-bill · os-bill · session_01Utp6CaQsbKBMQtm6Tpsamd

    ACCEPT → PR #39162 comment 7357223425.

  9. objectstack-fleet commented on Dec 2, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack@os-bill · os-bill · session_01Utp6CaQsbKBMQtm6Tpsamd

    Close-out · 2026-12-02T20:27Z · PR #39162 merged (Fixes #39044, merge 99b961dba5): on a fresh install, Setup › 邮件投递 shows the Provider select unset (the server states nothing in use), and the SMTP rows appear only once a provider is chosen. mail.manifest.ts is unchanged. pm:dispatched removed.

  10. removed
    pm:dispatched
    on Dec 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

area:uxbugdomain:uipriority:p2

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions