Repository navigation
fix(console): a host's own mail transport ticks the setup checklist's mail row - #34867
Merged
objectstack-fleet[bot] merged 2 commits intoNov 17, 2026
Merged
Conversation
…transport ticks the checklist
The console's isMailDelivering and aiProviderState now read
{ value: null, source: 'environment' } as in use, as the settings
contract states it: in-use is read from source, never from a null value.
Claude-Session: https://claude.ai/code/session_012MmDsS4GoHCgYwA2uv3n3C
Co-authored-by: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_012MmDsS4GoHCgYwA2uv3n3C Co-authored-by: Claude <noreply@anthropic.com>
Contributor
Author
|
repo:objectstack#4 · os-lizheng · session_012MmDsS4GoHCgYwA2uv3n3C 席位核对 · L1 ACCEPT · Head-sha: 772eafd · 2026-11-17T14:12ZCard #34749, claim 6949618531, dev report on the card. The seat read the diff itself.
|
Contributor
Author
|
repo:objectstack#4 · os-lizheng · session_012MmDsS4GoHCgYwA2uv3n3C Landing · Head-sha: 772eafd · 2026-11-17T14:27Z
State: ready + auto-merge now (L1 ACCEPT 6950534093). #34749 closes on merge. |
objectstack-fleet
Bot
deleted the
claude/issue-34749-mail-delivering-environment
branch
November 17, 2026 15:01
This was referenced Nov 17, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #34749
Clause-②: no
Metadata-protocol: none
维护者速读
source判断「在用」:live.provider为{ value: null, source: 'environment' }(宿主自带、选项表叫不出名字的投递方式)时,邮件行算完成;内置 AI 行同一规则,保留environment来源。types.ts注释改成 spec 现行说法。environment+ null,但控制台还要求 value 非空,托管环境的邮件行一直不打勾(plugin-email: GET /api/settings/mail serves no live.provider, so the hosted platform mail channel cannot read as configured (#32643 item 1, cloud#4386) #32799 裁决 C 的 ui 半边)。none、settings+ 空串、没有live时回落到已保存值,这些读数都不变。回滚即 revert 本 PR。ui/apps/console/src/pages/settings/firstRunChecklistLogic.ts(新liveValueInUse与aiProviderState的 null 分支)、FirstRunChecklist.tsx(AI 行无名字时的文案)、__tests__/firstRunChecklistLogic.test.ts末尾新增的 describe。pnpm --dir ui exec vitest run apps/console/src/pages/settings/__tests__/firstRunChecklistLogic.test.ts,预期全绿,其中「in use is read from the stated source, never from a null value」下 6 条通过。What changes
isMailDeliveringnow reads in-use from the statedsource, as the settings contract that fix(plugin-email): a host's own mail transport reads as in use on GET /api/settings/mail #34731 landed says (SettingsLiveValuein service-settings and the spec'slivedescribe: "Read in-use from source, never from a null value"). One private helper,liveValueInUse, holds the rule for both rows. The only new cell isenvironment+null, which is in use. The other cells read as before:noneis not in use,settings/environmentwith a non-empty string is in use, andsettings/environmentwith an empty string is not in use. An entry that is no statement falls back to the saved values (isMailConfigured), as before.isMailConfigurednow reads done from the statement. Before this change it read not done after fix(plugin-email): a host's own mail transport reads as in use on GET /api/settings/mail #34731.aiProviderStatetakes the same rule.environment+nullis now{ done: true, value: null, source: 'environment' }, with the stated source kept. Before this change it was rewritten to{ done: false, source: 'none' }. TheoptionLabelis absent, because no option names the provider.environment+null.FirstRunChecklist.tsxhas no provider name to put intodoneEnvironment("{{provider}}, detected from the server environment."), which would render as a sentence starting with a comma. The row uses the existing, fully translatedconsole.settingsView.aiProviderManaged("The AI provider, its model and credentials are managed by the platform.") instead. The Settings page already shows that sentence for a platform-managed AI provider. No new i18n key was added, so the file surface staysui/apps/console/src/pages/settings/**. No runtime emits this AI entry today (addendum N2).types.ts. TheSettingsLiveValuecomment now carries the spec rule:nullwhensourceisnone, or whensourceisenvironmentand no option names what is in use. In-use is read fromsource..changeset/34749-mail-delivering-environment.md:@object-ui/consolepatch.Tests
The pins requested by the dispatch are in
__tests__/firstRunChecklistLogic.test.ts, in a new top-level describe, "in use is read from the stated source, never from a null value (objectstack#34749)":environment+nullis done;noneis not done;settings+''is not done.isMailConfigured, underenvironment+null, read done.environment+nullis done with the source kept asenvironment;noneis not done.The render pins go into the existing harness,
__tests__/FirstRunChecklist.test.tsx. That file gains amailLivestatement for the mail page.Targeted run at 772eafd: 2 files, 77/77
Whole settings directory at 772eafd: 43 files, 432/432
Ablations: one per source-rule change, each red, each restored to HEAD by byte comparison
Each ablation was run with
scripts/ablation-replace.mjson the committed head. The console tests resolvesrc/directly, so nodist/step is involved.if (source === 'environment' && value === null) return true;fromliveValueInUse. Anchor x1 to x0, blob b179599c3f19 to 361413faa503. 5 failed / 72 passed: both mail cells, N1, the ai cell, and both render pins. Restored: blob == HEAD,git diff HEADempty.aiProviderState: thevalue === nullbranch returns{ done: false, value: null, source: 'none' }. Anchor x1 to x0, blob b179599c3f19 to 3ecd03f4e973. 2 failed / 75 passed: the ai cell and the AI render pin. Restored: blob == HEAD.doneEnvironmentwith an empty provider. Anchor x1 to x0, blob 0d56897ebb89 to 128c62adf365. 1 failed / 76 passed: the AI render pin. Restored: blob == HEAD.Acceptance notes
judgeLiveValuein service-settings) already servesenvironment+null, and plugin-email emits it (both from fix(plugin-email): a host's own mail transport reads as in use on GET /api/settings/mail #34731). The console was the only reader that still required a value.origin/mainmoved 10 commits since the base e9f65a3, and none of them touchesui/apps/console/src/pages/settings/**.scripts/pm/overlap-check.mjsreports a clean merge againstorigin/main7752cac. No merge of main was made.Verification
Local gate subset: dispatch-gates --commands, 37 families, all exit 0; --ran reconciliation clean
The 37 families were derived by
node scripts/pm/dispatch-gates.mjs --commands --repo objectstack-ai/objectstackfrom commit 772eafd. Each family ran and exited 0, includingpnpm --dir ui exec vitest run scripts/(171 files passed, 2 skipped; 5077 tests passed).--ranwith exit codes reported: "37 derived famil(ies) accounted for — 37 run, 0 NOT-MEASURED (a DERIVED zero …)".Other local checks:
pnpm --filter @object-ui/console run type-checkexited 0. Both touched test files are in that program (--listFilesOnlycounts 2).ui/scripts/check-new-cross-file-line-citations.mjsreported 0 new citations.The type-check lanes and the wide-population families are CI's.
Generated by Claude Code