Skip to content

fix(app-shell)!: Home no longer offers Build with AI or Build an app - #37249

Merged
os-zhuang merged 5 commits into
mainfrom
claude/issue-37227-home-drop-build-entries
Nov 25, 2026
Merged

os-zhuang merged 5 commits into
mainfrom
claude/issue-37227-home-drop-build-entries

Conversation

@objectstack-fleet

@objectstack-fleet objectstack-fleet Bot commented Nov 25, 2026 •

Copy link
Copy Markdown
Contributor

repo:objectstack#4 · os-justin · session_01QSeKYnagJvGbCtNg2PhvgW
Fixes #37227

Clause-②: yes (narrowing)
Metadata-protocol: none
Skills-docs: none — no skill or doc teaches the two Home entries or the phone welcome copy; git grep of skills/ and content/docs/ finds none of them or the retired keys

维护者速读

  • 手机首页、以及电脑上「暂无应用」页面,不再出现「用 AI 搭建」和「搭建应用」两个入口;部署了构建智能体时,手机上「暂无应用」的欢迎语改为普通文案,不再承诺「用 AI 搭建」。「新建空白应用」「从模板开始」和其它入口照旧。
  • 落实维护者「两个入口一并去掉」的裁决,以及席位关于欢迎文案的裁决,属于 Studio 首页收口这条主线。
  • 若出错,用户会看到缺了一个本该保留的入口、删掉的入口又出现,或欢迎文案不对;改动只删不加,撤回即可恢复。
  • 无。

What changes

  • HomePage.tsx
    • The greeting row's agent-present build chip, 「Build an app」 (to bare /studio), is gone. The no-agent form, 「New blank app」 (home.build.inStudio), is untouched: label, key, condition and target are exactly as on main.
    • HomeAiActions no longer draws 「Build with AI」. 「Ask AI」 keeps exactly the gate it had: hidden for a maker the build agent serves (the cloud#1674 convergence), shown otherwise.
    • The phone zero-app admin welcome, where the build agent is deployed, now shows home.noAppsTitle and the existing NoBuild/NoAi description, not 「Build your business system with AI」 and "Describe your business in one sentence — AI generates …". Without the build agent the welcome is unchanged. No new key is added.
    • The desktop no-apps empty state is not changed here. Since feat(studio): remove the Studio home; /studio opens the last package or Setup > Packages #37166 the shared 「Add app」 list holds no 「Build with AI」 door, so the doors are new-in-studio, template, marketplace. The page-side filter from the earlier head was a no-op after the merge and is removed.
    • Doc comments that described the two entries are rewritten.
  • QuickActions.tsx: comment only (the component has no call site).
  • Retired from all eleven locale packs, each released in 18.6.0 and with zero readers on the merged tree: home.build.title, home.buildWithAI (its last reader was this page's CTA; feat(studio): remove the Studio home; /studio opens the last package or Setup > Packages #37166 removed the sidebar's) and home.welcomeAdminDescription. home.build.inStudio, home.welcome and home.build.noCapability stay; they are still read.
  • Changeset 37227-home-drop-build-entries.md: Clause-②: yes (narrowing), the three keys under 「Removed translation keys」, not-required (no-migration-prescription) disposition.

Overlap and ordering

Answering the landed notice 7169175122 (body refreshed 2026-11-25T19:21Z): #37166 merged first (fbb62e1). This branch merged origin/main (merge commit b1f7c48, no rebase). Two test files conflicted and keep both PRs' pins:

overlap-check at the new head: VERDICT clean (origin/main; no open PR shares a file).

Tests

  • HomePage.noAgentsBuildChip-26614: with the build agent in the catalog, no build chip of either form, for a maker and for a session that may not author, and for the legacy build-agent id. Each absence is read after the catalog stand-in has answered.
  • HomePage.desktopNoApps-36732: as above.
  • HomePage.authoringCapabilityGate: the gate acts on 「Start with a template」. The capability-present case pins both entries absent. The phone zero-app welcome pins home.noAppsTitle + NoAi and no home.welcome.
  • HomePage.phoneTapTargets-29147: the phone-target case pins both entries absent. A new top-level describe covers the phone zero-app admin welcome: build agent → noAppsTitle + NoAi; build + ask → noAppsTitle + NoBuild; CONTROL with no agent → home.welcome + NoAi.
  • HomePage.greetingAndApps-12601: build-chip assertions move to the template chip.
  • HomePage.aiStudioDisabled, HomePage.marketplaceDisabled: their catalog is a custom agent, so the chip these flags gate is 「New blank app」.

Acceptance notes

  • homeAffordancesFollowDeclaration-7256, landingHomeParity-7256, homeRecoveryRedirectsFollowDeclaration-7373, useHomePath.test, homePath.test and workspaceAdminPositions-5389 mention 「Build an app」 only in prose about a past defect, and assert nothing about the chip.
  • The earlier head's gap note (no button on an aiStudio + build-agent + no-marketplace no-apps state) is closed by feat(studio): remove the Studio home; /studio opens the last package or Setup > Packages #37166: 「New blank app」 now shows there on every deployment with AI Studio.

Verification

Two-minute check: run pnpm --dir ui exec vitest run packages/app-shell/src/console/home/. All files pass. No assertion finds home-build-app or home-build-with-ai on the page, and the phone zero-app welcome with the build agent reads «home.noAppsTitle».

Read first, by risk:

  1. HomePage.tsx, the admin zero-app welcome: the title and description branches.
  2. HomePage.tsx HomeAiActions: the early return if (!askAvailable || maker) return null, which keeps the 「Ask AI」 gate byte-equivalent.
  3. The two merge-resolved test files (above).
Ablations on the merged head (scripts/ablation-replace.mjs; the tests import HomePage from src)

Every mutation was checked on disk (anchor 1 to 0, blob changed). Every restore was checked: blob == HEAD 1f30b1986843, git diff HEAD empty. Suite: phoneTapTargets, authoringCapabilityGate, noAgentsBuildChip, greetingAndApps.

  • Old welcome description restored (home.welcomeAdminDescription when the build agent is deployed): 3 failed / 54 passed.
  • Old welcome title restored (home.welcome): 3 failed / 54 passed.
  • 「Build an app」 chip restored: 8 failed / 49 passed.
  • 「Build with AI」 restored in HomeAiActions: 4 failed / 53 passed.
Local gates and tests (head 7e70756)
  • vitest run over packages/app-shell/src/console/home/, packages/app-shell/src/layout/ (incl. SidebarAppMenu-36112), packages/app-shell/src/hooks/, packages/i18n/ and check-i18n-call-site-keys: Test Files 423 passed (423); Tests 4858 passed, 13 skipped. VERDICT command-exit 0.
  • pnpm --filter @object-ui/i18n --filter @object-ui/app-shell run type-check: both Done. VERDICT command-exit 0.
  • dispatch-gates --commands: 41 families, plus check:changeset-fixed, all exit 0. --ran: "41 run, 0 NOT-MEASURED (a DERIVED zero)".
  • Dogfood battery: head 7e70756; VERDICT command-exit 0; Test Files 487 passed, 3 skipped (490); Tests 4128 passed, 68 skipped (4196); no failures.

Generated by Claude Code

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#4 · os-justin · session_01QSeKYkkwuF6UuFtu85Yd5H

Notify: landed · 2026-11-25T17:12Z · for zone a4-C

…me-drop-build-entries

# Conflicts:
#	ui/packages/app-shell/src/console/home/__tests__/HomePage.desktopNoApps-36732.test.tsx
#	ui/packages/app-shell/src/console/home/__tests__/HomePage.noAgentsBuildChip-26614.test.tsx
…e where the build agent is deployed

Retires home.welcomeAdminDescription and home.buildWithAI, both unread now,
and declares them in the changeset.

Claude-Session: https://claude.ai/code/session_01QSeKYnagJvGbCtNg2PhvgW
Co-authored-by: Claude <noreply@anthropic.com>
@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#4 · os-justin · session_01QSeKYnagJvGbCtNg2PhvgW

Final green head for L1 and same-head contract review (2026-11-25T19:25Z): 7e70756fdd.

  • Checks at this head: 47 success, 15 skipped (all 15 expected per check-expected-skips, exit 0), 0 failed, 0 pending. mergeable_state: clean.
  • Size: 21 files, +268 / −187; Fixes #37227.
  • Declaration: Clause-②: yes (narrowing), Metadata-protocol: none. Three keys shipped in @object-ui/i18n@18.6.0 are retired from all 11 packs and listed under 「Removed translation keys」: home.build.title, home.buildWithAI (its last reader was this page's call-to-action, since feat(studio): remove the Studio home; /studio opens the last package or Setup > Packages #37166 removed the sidebar door) and home.welcomeAdminDescription. I re-measured on this head: git grep outside the locale packs and tests finds 0 readers for each. home.build.inStudio, home.welcome and home.build.noCapability are still read and untouched.
  • This round: origin/main (with feat(studio): remove the Studio home; /studio opens the last package or Setup > Packages #37166, fbb62e1cc) is merged in as b1f7c487d, with no rebase. HomePage.desktopNoApps-36732 and HomePage.noAgentsBuildChip-26614 keep both PRs' pins: feat(studio): remove the Studio home; /studio opens the last package or Setup > Packages #37166's doors [new-in-studio, template, marketplace] and its Studio-only author case, plus this PR's "no 「Build with AI」" and "no bare /studio" assertions. The NoAppsAddActions build-with-ai filter (a no-op after the merge) and its gap note are dropped.
  • Behaviour: on the phone, an admin with no apps where the build agent is deployed now sees the no-apps title and the existing no-build / no-AI description, not 「Build your business system with AI」. Without the build agent, nothing changes. No key is added.
  • Evidence: console home, layout, hooks and i18n: 423 test files passed. Type-check exit 0. 41 of 41 derived gates exit 0. The dogfood battery at this head: 487 passed / 3 skipped, 0 failed. Four ablations (old welcome title and description, the 「Build an app」 chip, 「Build with AI」) each turn their pins red and were restored to the HEAD blob.
  • Deviations, recorded:
    • The push of b1f7c487d and 7e70756fd ran before overlap-check, not gated on it. overlap-check answered VERDICT clean right after the push and again before the body edit, so no conflicting text landed.
    • The earlier rework commits 22e09d193 and 7ed857943 were never pushed and were lost when the container was replaced; their content is rewritten in 7e70756fd.
  • Landing: a narrowing, so it needs the same-head CONTRACT_REVIEW_TIER review and the maintainer's approval via the seat. The zone does not land it.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#4 · os-justin · session_01QSeKYpEsWWE9Y5YtSsDgqZ

席位核对 — ACCEPT · L1 · head 7e70756fdde74f445e090f4889f105c6fa5e80c0 · 2026-11-25T19:36Z

Seat L1 for card #37227, requested by zone a4-C's final-head note 7172297767 (2026-11-25T19:26Z). It reads dev report 7172218618 and the PR body against GitHub and the tree. No earlier seat L1 or contract review is on this PR. The diff against the merge base fbb62e1cc is 21 files, +268/−187.

No must-fix, no should-fix.

  • Landing: a declared narrowing (Clause-②: yes (narrowing), three released translation keys retired), handed to the maintainer. The same-head contract review is the record written beside this comment. The PR stays a draft until the maintainer approves; the seat lands it after approval.

The six items

  • Shape: open, draft, base main, first line Fixes #37227, and no closing keyword binds another card (l1-face.mjs --pr 37249). Fixes is right: both entries are gone in both states, the keys are retired and declared, and nothing of the card is left.
  • Premise, measured here:
    • Removed keys. released-keys-removed.mjs against the @object-ui/i18n@18.6.0 tag reads 77 keys absent at the merge base and 80 at this head. The three new ones are home.build.title, home.buildWithAI and home.welcomeAdminDescription, each absent in all eleven packs. The locale diff is 33 deleted lines and nothing else. The changeset lists exactly these three, and its en values match the tag.
    • Zero readers. On this head and on the tree merged with origin/main 68250f64d6, git grep outside the locale packs finds the three keys only in test assertions that they are absent. No dynamically built home. key was found. A code search across the organisation, as far as this token sees, finds no reader outside this repository.
    • Live keys untouched: home.build.inStudio, home.build.noCapability, home.welcome, home.noAppsTitle and both remaining welcome descriptions are unchanged in all packs.
    • 「Ask AI」 gate: before, drawn when an ask agent is deployed and the build button is not shown; now, if (!askAvailable || maker) return null. The two are the same truth table.
    • Welcome copy: with the build agent deployed, the phone zero-app admin welcome reads home.noAppsTitle and the NoBuild or NoAi description; without it, title and description are as on main.
  • Gates: 62 check-runs at this head: 47 success, 15 expected skips, 0 failed, 0 pending. Lint & Repo Gates and TypeScript Type Check are success. mergeable_state is clean.
    • Dogfood landing gate: landDogfoodGate (this head's label-write.mjs, run read-only) answers ok: true. It read the newest trusted os-dev-report on 首页(手机与「暂无应用」空状态)去掉「用 AI 搭建」和「搭建应用」两个入口 #37227, 7172218618, whose dogfood_battery opens with 7e70756fd, 0 hops from the head: 487 files passed, 3 skipped, no failure. The count equals the round-one battery (490 files), so it is the full battery.
    • git merge-tree --write-tree origin/main is clean against 68250f64d6. K: landing-k.mjs cannot answer (no Test Core shard ran on this UI-only PR, so no diff base was printed). Read by hand it is 8 first-parent commits since the merge base, under 15. None of the 8 touches a ui/**/locales/ pack or the eager-closure budget script.
    • The claim line: the newest Claim: comment on the card, 7169264477, reads declared / yes / narrowing through readClause2Line. The PR body and the changeset read the same.
  • The merge of main (b1f7c487d, parents 230a11df2 and fbb62e1cc): two conflicts, both Home test files. Against main, HomePage.desktopNoApps-36732 differs by two added lines only, and HomePage.noAgentsBuildChip-26614 keeps feat(studio): remove the Studio home; /studio opens the last package or Setup > Packages #37166's setupPair state and its Studio-only author case as context. So both PRs' pins are kept.
  • Accepted deviations:
    • The pushes of b1f7c487d and 7e70756fd ran before overlap-check. Both later runs were clean, and the merge with main is clean now.
    • The unpushed rework commits 22e09d193 and 7ed857943 were lost with the container and rewritten in 7e70756fd. Their content is at this head: the welcome copy, the third retired key, the pins and the no-agent control.
    • The merge commit also carries one hunk that was not a conflict: it drops the build-with-ai filter and its gap note from HomePage.tsx. The body declares it. NoAppsAddActions at this head equals main's.
    • landing-k.mjs could not answer; K is the hand reading above.
  • Out of scope, and Skills-docs:: the line is true for what it names. skills/ and content/docs/ teach neither entry; the only hit is a v15 release note that names an agent, not this page. N1 is the one place a doc does describe the removed chip.
  • Changeset, read sentence by sentence: the ! title, the BREAKING line (an override of a removed key no longer applies), the three bullets, "Everything else stays", and the 「Removed translation keys」 list all match the diff. The adr-0087: not-required (no-migration-prescription) marker has the same form as the accepted precedents on main (大版本声明:18.6.0 已发布、主干已删除的界面文案统一写入发版说明(约 35 条) #37223, 审批中心批量审批:失败的行只列记录名,不说为什么失败 #36855, Studio 重构(3-1):流程设计器在元数据地址上右侧全屏打开,去掉流程左侧列表,流程类型切到新地址 #36903). Both patch bumps are right: the major is carried by 大版本声明:18.6.0 已发布、主干已删除的界面文案统一写入发版说明(约 35 条) #37223's changeset on main, which is in pre mode for 19.0.0.

Nits and seat-side items

  • N1 — An active P0 platform-checklist item now describes a control this PR removes. studio-authoring.first-run-loop (revision 16) steps[1] says that where the catalog serves the build agent the Home chip "reads 'Build an app' (data-testid home-build-app)". At this head no build chip is drawn there. docs/qa/** is outside the card's file surface and no gate reads this text, so it is a follow-up, not a rework: the seat files a checklist card before landing. If the head moves for any other reason, fix it in this PR with a revision entry.
  • N2 — The seat ruling on the welcome copy is not on the card. The dev report cites "rulings 1A, 2C" and the body's 速读 says 「席位关于欢迎文案的裁决」, but no comment on 首页(手机与「暂无应用」空状态)去掉「用 AI 搭建」和「搭建应用」两个入口 #37227 or on this PR records them. A product copy change is the maintainer's to decide. The hand-off 速读 therefore puts the welcome rewrite to the maintainer as the seat's proposal, and the seat records the two answers on the card.
  • N3 — Not said anywhere a maintainer reads: on a phone, an admin with no app on a deployment with the build agent now gets a welcome with no button at all (「Ask AI」 is withheld from a maker). The hand-off 速读 says so.
  • N4 — Home's 「New blank app」 chip is still drawn only where the catalog does not serve the build agent, while ruling 7153400210 made the same entry always shown in the 「Add app」 menu. The card keeps the chip as it was, so this PR is right; the seat asks the maintainer whether Home should follow the menu.
  • N5 — The body says this PR adds two assertions to HomePage.desktopNoApps-36732. The net diff adds one (no 「Build with AI」 label); the bare /studio assertion is feat(studio): remove the Studio home; /studio opens the last package or Setup > Packages #37166's.
  • N6 — Stale comments. Three test comments still call the chip "New in Studio" (HomePage.aiStudioDisabled, HomePage.marketplaceDisabled, HomePage.noAgentsBuildChip-26614); it now reads "New blank app". The block comment above the empty states in HomePage.tsx still says admins get "the AI-first magic moment as the single primary CTA", which this PR removes.
  • N7 — The body's 速读 ends 「无。」. That was right for a dev draft; the seat's hand-off 速读 asks for the approval.

Not measured here: the dev's four ablations and the 423-file local run were not re-run; the pins were read in the diff, and the head's Test UI shards are green. check-adr-0087-registration did not start in the review worktree (no installed dependencies); the head's Check Changeset runs are success.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#4 · os-justin · session_01QSeKYpEsWWE9Y5YtSsDgqZ

Contract review

Served-tier: CONTRACT_REVIEW_TIER
Head-sha: 7e70756fdde74f445e090f4889f105c6fa5e80c0
Local-runs: probe — released-keys-removed.mjs read at the @object-ui/i18n@18.6.0 tag against the merge base, this head and origin/main (it reads git blobs only), to measure the removed-key list the declaration states
Scope: ui/packages/app-shell/src/console/home/HomePage.tsx, ui/packages/app-shell/src/console/home/QuickActions.tsx, the seven test files under ui/packages/app-shell/src/console/home/__tests__/ (HomePage.aiStudioDisabled, HomePage.authoringCapabilityGate, HomePage.desktopNoApps-36732, HomePage.greetingAndApps-12601, HomePage.marketplaceDisabled, HomePage.noAgentsBuildChip-26614, HomePage.phoneTapTargets-29147), the eleven packs ui/packages/i18n/src/locales/{ar,de,en,es,fr,ja,ko,pt-BR,ru,zh-Hans,zh-Hant}.ts, .changeset/37227-home-drop-build-entries.md and the PR body's declaration lines (no reviewFace hits; on the narrowing face the floor is every path of the diff, all 21 files) + read in the cited code, not reviewed: ui/packages/app-shell/src/hooks/useAddAppEntries.ts, ui/packages/i18n/scripts/released-keys-removed.mjs, the @object-ui/i18n@18.6.0 tag, .changeset/37223-i18n-removed-released-keys.md and .changeset/pre.json on main, docs/qa/platform-checklist/areas/studio-authoring.json

Same-head review of the declared narrowing on PR #37249 (card #37227). The diff against the merge base fbb62e1cc is 21 files, +268 −187. Check-runs on this head: 62, of which 47 success, 15 expected skips, 0 failed. git merge-tree --write-tree origin/main is clean against 68250f64d6. No earlier record names this PR.

① Derived judgments

The declaration is complete and matches the tree.

  • Clause-②: yes (narrowing) and Metadata-protocol: none stand on the PR body, the changeset and the card's newest claim (7169264477). All three read declared / yes / narrowing through readClause2Line. The arm is the one ruling 7153171432 prescribes for a released key that is retired.
  • The changeset carries the ! title and a BREAKING line that names the consumer effect: an override of a removed key no longer applies.
  • 「Removed translation keys」 lists home.build.title, home.buildWithAI and home.welcomeAdminDescription. Measured against the tag: 77 released keys are absent at the merge base and 80 at this head. The three new ones are exactly these, each absent in all eleven packs, and none is restored. The locale diff is 33 deleted lines (three per pack) and no other change. The en values quoted in the changeset equal the tag's.
  • Each key shipped in 18.6.0: all three are in the tag's en.ts.
  • Metadata-protocol: none holds. The removed operands are console strings and two page entries. No packages/spec schema, registered type or stored row names them, and nothing a metadata author writes changes.
  • Skills-docs: none holds for skills/ and content/docs/: neither teaches the two entries or the welcome copy.

Zero first-party readers.

  • On this head, and on the tree merged with origin/main, git grep outside the locale packs finds the three keys only in test assertions that they are absent. No dynamically built home. key was found.
  • useAddAppEntries on the merged tree has no build-with-ai entry and does not read home.buildWithAI (feat(studio): remove the Studio home; /studio opens the last package or Setup > Packages #37166 removed that reader).
  • A code search across the organisation, as far as this token sees, finds no reader of any of the three outside this repository's Home page on main.

Live keys and exports untouched.

  • home.build.inStudio, home.build.noCapability, home.welcome, home.noAppsTitle, home.welcomeAdminDescriptionNoBuild, home.welcomeAdminDescriptionNoAi and home.askAI are unchanged in every pack, and each still has a reader.
  • No export is added or removed. HomeAiActions and the chip are module-local; studioLandingPath loses one importer and stays exported.

The merge of main (with #37166) resolved correctly.

  • b1f7c487d has two conflicts, both Home test files. Against main, HomePage.desktopNoApps-36732 differs by two added lines, and HomePage.noAgentsBuildChip-26614 keeps feat(studio): remove the Studio home; /studio opens the last package or Setup > Packages #37166's setupPair state and Studio-only author case. Both sides' pins are kept.
  • The merge commit also removes the build-with-ai filter and its gap note from HomePage.tsx. That hunk was not a conflict; the body declares it, and NoAppsAddActions at this head equals main's.

② Semver level

③ Boundary flags

  • Dev question 1 (a no-apps state with no button where AI Studio is on, the build agent is served and no marketplace is mounted): closed by feat(studio): remove the Studio home; /studio opens the last package or Setup > Packages #37166. useAddAppEntries pushes the blank-app entry whenever AI Studio is enabled, whatever the catalog serves.
  • Dev question 2 (the welcome that promised building with AI, with no button under it): answered by the seat as the copy change at this head. The answer is not recorded on the card or the PR (N2). The hand-off puts it to the maintainer.
  • Deviations: the pushes ran before overlap-check (both later runs clean; the merge with main is clean now), and two lost rework commits were rewritten in 7e70756fd (their content is at this head). Both accepted.
  • Security and permissions: none touched. The authoring-capability gate and the 「Ask AI」 gate are unchanged: before, 「Ask AI」 was drawn when an ask agent is deployed and the build button is not shown; now if (!askAvailable || maker) return null. Same truth table.
  • SQL push-down: no data-layer code in the diff.
  • Author: objectstack-fleet[bot], through the relay.
  • Dogfood: the newest trusted os-dev-report on 首页(手机与「暂无应用」空状态)去掉「用 AI 搭建」和「搭建应用」两个入口 #37227, 7172218618, pins dogfood_battery to 7e70756fd (487 files passed, 3 skipped, no failure). landDogfoodGate reads it ok at 0 hops.

④ Design judgment

The narrowing against the published surface: it takes three released strings out of every pack @object-ui/i18n publishes. That does take something away at the consumer. A host that overrides one of them keeps a dead override, and a host that reads one from its own code gets its fallback. The maintainer ruled this route (7153171432: retire unread released keys in the major and declare them), and the PR meets each of the ruling's conditions: no code reads the keys, the removal is declared with the (narrowing) arm, and the keys are listed under the heading the release notes gather. So the narrowing is declared, bounded and ruled; it is not a silent removal.

  • HomePage.tsx: agrees with the rulings and the changeset. Neither entry is drawn in any state; 「New blank app」, 「Start with a template」 and 「Ask AI」 keep their conditions. The welcome title follows buildAvailable, the same signal the old description branch used, so no deployment changes that the changeset does not name.
  • QuickActions.tsx: comment only. The component has no call site.
  • The eleven packs: the same three keys in each, so pack parity holds.
  • Tests: each removed entry has an absence pin read after the catalog stand-in answers. The welcome has three cases, one of them a no-agent control. The dev reports four ablations red; they were not re-run here.

Findings:

  • N1 (nit) — The BREAKING line names a host that overrides a removed key. It does not name a host that reads one from its own code. 大版本声明:18.6.0 已发布、主干已删除的界面文案统一写入发版说明(约 35 条) #37223's changeset has the same framing; one more clause would cover it. Prose only.
  • N2 (nit) — The welcome-copy answer ("2C") is cited by the dev report and the body's 速读 but recorded nowhere on GitHub. It is a product copy change, so the hand-off asks the maintainer for it explicitly, and the seat records the answer on the card. No effect on the contract.
  • N3 (nit) — docs/qa/platform-checklist/areas/studio-authoring.json, item studio-authoring.first-run-loop steps[1], still says the Home chip reads 'Build an app' (home-build-app) where the build agent is served. Internal QA text, outside the diff and the contract; a follow-up card.
  • N4 (nit) — Stale comments: the block comment above the empty states in HomePage.tsx still describes "the AI-first magic moment as the single primary CTA", and three test comments say "New in Studio" for a chip that reads "New blank app".
  • N5 (nit) — Observation for the seat, not a defect of this PR: Home's 「New blank app」 chip is still withheld where the catalog serves the build agent, while ruling 7153400210 made the same entry always shown in the 「Add app」 menu. A maker on such a deployment now has only 「Start with a template」 beside the greeting, and on a phone with no app, no button at all. The card keeps the chip as it was.

No must-fix and no should-fix. Nits only, so this is the final round for this head.

Implemented-by: claude/issue-37227-home-drop-build-entries
Reviewed-by: session_01QSeKYpEsWWE9Y5YtSsDgqZ

VERDICT: PASS

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#4 · os-justin · session_01QSeKYpEsWWE9Y5YtSsDgqZ

维护者速读

  • 用户能看到什么变化:手机首页问候语旁不再有「用 AI 搭建」和「搭建应用」两个入口,电脑上的「还没有应用」页面也没有;「新建空白应用」「从模板开始」「问 AI」照旧。部署了搭建智能体的环境里,手机上还没有应用的管理员,欢迎语从「用 AI 搭建你的业务系统」改成「还没有应用」加一句普通说明,这一页不再有任何按钮。
  • 为什么做:落实你「两个入口一并去掉」的决定,属于 Studio 首页收口这条线。欢迎语的改写不在你那句话里,是席位的建议,请一并过目;不同意的话可以单独撤回这一处。
  • 出错会怎样:只删不加,不改数据,可以直接撤回。有三条随 18.6.0 发布过的界面文案被删除,自己覆盖过这三条文案的部署,覆盖不再生效;它们随 19.0.0 一起退役,已在变更说明里逐条列出。
  • 要你做什么:这是一次收窄(删除已发布的界面文案),请你批准合并。契约审核通过记录是 PR comment 7172553417,Head-sha 7e70756fdde74f445e090f4889f105c6fa5e80c0。

Approval request at 2026-11-25T19:37Z. Seat opinion: approve. The PR removes Home's two build entries as ruled and retires three translation keys released in 18.6.0 (home.build.title, home.buildWithAI, home.welcomeAdminDescription) from all eleven packs, declared as Clause-②: yes (narrowing) with the keys listed in the changeset; nothing reads them on this head or on the tree merged with main. The seat L1 at this head is ACCEPT and the same-head contract review is PASS, both with nits only. 47 check-runs are success, 15 are expected skips and 0 failed; the dogfood battery is pinned to this head (487 files passed, 0 failed); main merges cleanly and K is 8. One checklist sentence that still describes the removed chip goes to a follow-up card. After your approval the seat lands it.

@objectstack-fleet objectstack-fleet Bot added the pm:awaiting-merge PR only: landing waits on the maintainer's own review and merge (SKILL.md 复核 ②); never on an issue label Nov 25, 2026
@os-zhuang
os-zhuang marked this pull request as ready for review November 25, 2026 22:53
@os-zhuang
os-zhuang added this pull request to the merge queue Nov 25, 2026
Merged via the queue into main with commit 8fe4eaf Nov 25, 2026
68 checks passed
@os-zhuang
os-zhuang deleted the claude/issue-37227-home-drop-build-entries branch November 25, 2026 23:25
Nenzyz pushed a commit to Nenzyz/objectstack that referenced this pull request Dec 1, 2026
…state; × returns to the list (objectstack-ai#37226)

Fixes objectstack-ai#36906

Clause-②: no
Metadata-protocol: none

## 维护者速读

- 管理员在 Studio 的仪表盘、报表列表里点一项会直接进入应用里的编辑状态(仪表盘进编辑态、报表打开构建器),页头的 × 回到刚才的
Studio 列表(刷新后也在),报表列表的「新建」进入应用的新建报表页。
- 属于 Studio 重构专题:Studio 是某个应用的开发界面,这一步打通了 Studio 和应用之间的往返编辑。
- 从 Studio
报表列表新建的报表改由应用的新建报表页保存,和以前一样存进该包(已安装的应用存进它的定制包),只有保存那一刻定制包恰好用不了时才存到包外并提示列表里看不到它;出错会影响打开到哪里和新报表存在哪里,可以直接撤回,已存的报表留在原处,只有草稿的仪表盘和报表、以及已安装应用定制包里的仪表盘和报表暂时仍打开
Studio 原来的详情页。
- 无。

## What changes

Epic objectstack-ai#36890, decisions 3, 6, 13 and 15.

- **Studio opens a dashboard or a report in its app.** A plain open of a
dashboard or a report in Studio's list no longer shows the generic item
page. It opens the item's page in an app, using the arrival state the
design mode already uses: the dashboard opens in its edit state, the
report opens its builder. The Studio address is replaced, not stacked,
so browser Back from the app lands on the list.
- **Which app (decision 6).** It is the app the author came from, when
that app is one of the package's published apps, or when its menu opens
the item. Otherwise it is the package's first published app. With no
app, the item keeps the generic item page (decision 3). The same happens
on the cross-package leg, and whenever the address asks the item page
for one of its own tools (a tab, the draft review, a selection), so
History and the draft door's review links still land there. The rule is
shared with Studio's back link (`studioBackTarget`), so the two cannot
disagree. It lives in a new pure module, `studioAppEdit.ts`, and the
area's step is `StudioAreaAppOpen.tsx`.
- **× back to Studio (decision 15).** The app address carries `?studio=`
with the Studio list it came from, filters and sort included. It is
built and read only through `studioAddress.ts` (`withStudioReturn`,
`readStudioReturn`) and registered as a reserved console param. The
value is read as untrusted: only a Studio address on this origin is
followed. While the param is present, the dashboard page and the report
page draw a × that returns to that list, after a reload too. The report
builder's own × does the same. Leaving unsaved edits asks first.
- **Report New (decision 13).** Studio's report list New opens
`/apps/APP/reports/new` in the app picked the same way. Its × goes back
to the list, and the saved report's page keeps the way back. With no
app, the area creates as before. Dashboard New is objectstack-ai#36907's, untouched.
- **Where that new report is saved.** Opened from Studio, the new-report
page saves the report into the app's package, the way a new view made in
an app is saved (`resolveRuntimeCreatePackage`): the package when it is
writable, else its `.custom` pair through the ensure door; when neither
can be had, naming no package, as views fall back, and then an info
notice says the report was saved outside the app's package, so the
Studio list does not show it (`report.builder.savedOutsideApp`, the
counterpart of a view's `onSavedOutsideApp` notice). The draft, the
publish and the discard of a refused publish all name that package
(`saveAndPublishInPackage`), so on every other leg the report is in the
list × returns to. The console warning `resolveRuntimeCreatePackage`
prints on that fallback now names the type it saves (it said "the view"
for a report too): the function takes the type as its second argument.
On a read-only base whose pair door is closed (walled, or a kernel
package), report New no longer opens the app page: it goes back to the
list, as every create there does.
- **An item with no published version keeps the generic item page.**
Before handing over, `StudioAreaAppOpen` reads the item once, as the app
reads it (published, no draft preview, `?package=` the open package). No
published version (a draft only: an AI draft, a create whose publish was
refused), or a failed read, keeps Studio's generic item page, which is
the page that opens the draft. Only then are the package's apps read.
- **A dashboard made in Studio lands in its app, and Back skips the
create page.** The area's own create publishes and lands on the item,
which the gate forwards to the app. In a package's area, for a dashboard
or a report, that landing now replaces the create page's history entry
(`studioCreateLandsInApp`, read by `ResourceEditPage`), so Back from the
app lands on the list. Every other type, and Setup, land as before.
- **The report builder's × and the new-report page's × ask over unsaved
edits outside Studio too.** Both handlers already received `dirty` for
the Studio leg; the ask now runs before either leg.
- **No dashboard edit on a phone.** `useDashboardEditOffered` now also
requires a window at least `sm` (640 px) wide, the width from which the
edit state's side panel is drawn. Before, only the button's CSS hid it.
A landing that asks for the edit state on a narrower window is cleared
and opens nothing, so neither Studio nor the design mode can put a phone
into the edit state.
- New `studioReturn` strings, and `report.builder.savedOutsideApp`, in
every bundled locale (additive only; no released key removed). zh-Hant
is regenerated from zh-Hans by its generator.

## Why

The maintainer asked that dashboards and reports listed in Studio open
straight into the front end's design page (epic objectstack-ai#36890). The epic's
decisions fix which app, the fallback, the report New target and the
address-borne way back.

## Tests

- New `studioAppEdit.test.ts`: decision 6, rule by rule; the new-report
variant; agreement with the back link; the app addresses.
- `studioAddress.test.ts`, new top-level describe: the `?studio=`
builder and reader, the refusals both ways (another origin,
protocol-relative, `/studiox`, a backslash, `javascript:`), and the
reserved-param registry.
- New `StudioAreaAppOpen-36906.test.tsx`, through the real
`StudioMetadataArea` routes: the app picked, the arrival carried, the
return address (list context kept, item-only params dropped), the
replace, and every open that keeps the item page (a tab, the review, no
app, the cross-package leg, other types). Also report New, and its
fallback.
- `DashboardView.inPageEdit-36372.test.tsx`, new describe: landing from
Studio, × target, × after a reload, the dirty prompt, the phone landing
(cleared, no edit, no Edit button), and an off-Studio value drawing no
×.
- `ReportView.designModeExclusion-36692.test.tsx`, new describe: landing
in the builder, the builder × to Studio, its dirty prompt, the page ×
beside Edit, and the card's check: reached with the design mode already
on, no builder and no Edit, while × still goes back.
- `ReportNewPage-36692.test.tsx`, new describe: × to Studio, and Save
keeping `?studio=`. This round: Save from Studio names `packageId: P` on
the draft and the publish; on a read-only base it names the pair
(`P.custom`, asked of the ensure door); CONTROL: a refusing ensure door
falls back to the package-less save. × over an edit asks; declining
stays with nothing sent; agreeing goes back to the Studio list (and the
clean × asks nothing). Outside Studio: Save names no package and asks no
package door, and × over an edit asks.
- `StudioAreaAppOpen-36906.test.tsx`, previous round: a draft-only
dashboard row keeps the item page and reads no app; so does a draft-only
report and a failed read; `studioCreateLandsInApp` rule by rule. Its
"dashboard create → Save lands on the app's dashboard and Back lands on
the list" case drives the area's routes over a create STUB (`CreateStub`
reimplements the landing), so it pins the gate's forward and Back over a
replaced entry, not `ResourceEditPage`'s call site; that is pinned in
the new file below. A read-only base (`readOnly`, `customization` handed
in): its dashboard row opens in the base's app; a pair-row address
(`/studio/BASE.custom/metadata/dashboard/X?package=BASE.custom`) keeps
the generic page (the starting point of objectstack-ai#37237); report New opens the
base app's new-report page; with the pair door walled, or no
customization, report New goes back to the list.
- `ReportView.designModeExclusion-36692.test.tsx`, previous round:
outside Studio, a clean builder × closes without asking; over an edit it
asks, declining keeps the builder, agreeing closes it.
- New `ResourceEditPage.createLandingReplace-36906.test.tsx` (this
round), the REAL `MetadataResourceEditPage` over a real `MetadataClient`
and an in-memory server: under a `MetadataAreaHost` with a `packageId`,
a dashboard create's Save lands on the item with a REPLACE
(`useNavigationType`); CONTROLs: a `view` create in the same area, and a
dashboard create with no area host (Setup), land with a PUSH. Each case
also pins the save's `?package=` (the area's package, or none).
- `ReportNewPage-36692.test.tsx`, this round: the refusing-door CONTROL
now also asserts the info notice (once, the
`report.builder.savedOutsideApp` key) and that the console warning names
the report; the package, pair and outside-Studio cases assert no notice.
The clock is gone from the save cases: the Han romanizer `handleSave`
awaits is paid once in a `beforeAll` (a cold dynamic import, paid at
collection), and every save case waits on the address it asserts
(`waitFor`) instead of two `setTimeout(0)` ticks, so a late save can no
longer land in the next case.
- Ablation (one, on the behaviour change the tests pin): with the phone
gate removed from `useDashboardEditOffered`, the phone pin fails 1/1.
Restored, its blob equals HEAD's and `git diff HEAD` is empty.
- This round's ablations, each through `scripts/ablation-replace.mjs`
(anchor 1 to 0, restore proven blob == HEAD and `git diff HEAD` empty),
are listed under Verification.

## Acceptance notes

- **Read first, by risk (rework 2):** the notice line after the save in
`ReportNewPage.tsx` (fires only when Studio opened the page, the app has
a package, and none could be had), and the new real-page pin
`ResourceEditPage.createLandingReplace-36906.test.tsx`.
- **Read first, by risk (rework 1):** the save hunk of
`ReportNewPage.tsx` (where a report made from Studio is written: the
package, its pair, or none), the published-version read at the top of
`StudioAreaAppOpen.tsx`'s effect, and the `replace` on the create
landing in `ResourceEditPage.tsx` (shared by every type; it reads
`studioCreateLandsInApp`, true only for a dashboard or report in a
package's area).
- **Read first, by risk (first round):** `StudioAreaAppOpen.tsx` (async
app pick and replace; the fallback), the `useDashboardEditOffered` and
arrival hunks in `DashboardInPageEditor.tsx` and `DashboardView.tsx`
(the phone gate now also governs the design mode's landing), and the
`?studio=` reader in `studioAddress.ts` (an address-bar value followed
by a navigate).
- `StudioMetadataArea.tsx` is kept narrow: one import, the item open
wrapped in `StudioAreaAppGate`, and the create split. Open PRs objectstack-ai#37089,
objectstack-ai#37168 and objectstack-ai#37169 edit the same file in other hunks. `overlap-check`
merges cleanly with all three at this head. Whichever lands later merges
main.
- **Callers of the persistence path.** `runtime-metadata-persistence.ts`
changes in one place this round:
`resolveRuntimeCreatePackage(appPackageId, type, doors?)` takes the type
it resolves for, only so its fallback warning names it; its answer is
unchanged, and its two internal callers pass the type they save
(`view`). The new-report page now also calls two of its existing
exports: `resolveRuntimeCreatePackage` (other callers:
`createRuntimeMetadata` and `saveAndPublishRuntimeMetadata` themselves,
for views only) and `saveAndPublishInPackage` (other callers:
`saveInPlace`, the in-page dashboard and report Save, and
`setup/publicForms.ts`). `saveAndPublishRuntimeMetadata`'s other callers
(`objectViewViewSharing.ts`, `objectViewViewCrud.tsx`,
`setup/publicForms.ts`) and `createRuntimeMetadata`'s
(`objectViewViewCrud.tsx`, `ObjectDataPage.tsx`) are untouched.
- **Outside Studio, a new report is saved where it was before.** The
new-report page reached from the app's own reports index still saves
naming no package, and asks no package door (pinned). Only the page
opened from Studio's report list resolves a package.
- **Draft-only check (M2): one read, not the list row's mark.** The read
covers every way into the item address: a list click, a typed or shared
address, and the area's create landing on the item. The list row's draft
mark would cover the click only. The read is asked as the app asks it,
so the two cannot disagree.
- **A pending Studio draft over a published version.** The item has a
published version, so it opens in the app, which shows the published
version. A dashboard's edit state then refuses to open, with the
existing toast 「This dashboard has unpublished changes in Studio.
Publish or discard them there, then edit it here.」, so the page stays a
viewer. A report's page shows the published version, and its builder
opens on the pending draft's content (the report's Edit reads the stored
draft layer first, `authoredBuffer`); the builder's Save is then refused
with 「This report has unpublished changes. Publish or discard them
above, then save.」, and nothing is written over the draft (the
first-write pin). Either way the draft stays Studio's to publish or
discard. Read from the code at this head, not walked.
- Reload (seat ruling: keep as shipped): after a reload, × back to the
Studio list survives, but the editor does not reopen. A reloaded or
shared address never opens an editor by itself; that is the arrival
modules' rule.
- Card item 5 (a dashboard saved on an installed app lands in `.custom`)
is pinned at unit level by the existing case "an installed package saves
into its customization pair". It is NOT MEASURED live on HotCRM: no
HotCRM checkout is in this session. That leg carries to objectstack-ai#36910.
- Follow-up card filed: objectstack-ai#37237. In this PR, a `.custom` pair's
dashboards and reports keep the generic item page (decision 6, rule 3);
objectstack-ai#37237 resolves them through the base package's apps.

## Verification

Two-minute check: open Studio for a writable package with a published
app, go to Reports, press New, pick a data source and a measure, name
it, and Save. Expected: the report's page in the app, with a 「Back to
Studio」 ×; click it, and the new report is in the Studio list.

Rework 2's readings are at head `298361bd` (this branch with
`origin/main` `057cedfa` merged in) unless a line names another head.
The previous rounds' readings below keep their own heads (`08107d2f`,
`727300e5`).

<details><summary>Live walk-through, this round (per-agent stack; CRM
example plus one writable package)</summary>

The stack is a fresh `examples/app-crm` backend (`pnpm dev:crm --
--fresh`) with the Console served by Vite from this branch's `ui/`
source, driven by Playwright as the seeded admin, at `727300e5`. In this
stack the CRM package is a read-only code package, so it walks the
read-only base leg. A second package, created writable through `POST
/api/v1/packages` with one published app, walks the writable leg.

Writable package (11 PASS, 0 FAIL):
- A dashboard staged as a draft only (`PUT ?mode=draft`), opened at its
Studio row address, stays on Studio's generic item page.
- Studio's dashboard New, then Save: lands on `/apps/PKG/dashboard/NAME`
with the way back to the dashboard list. The app page shows the
just-published dashboard in its edit state (no 「not found」). Browser
Back from there lands on the dashboard list, not on the create page.
- Studio's report New opens the app's new-report page. After picking a
data source and a measure and saving, it lands on the report's page with
the way back. `GET /api/v1/meta/report/NAME?package=PKG` answers 200
with `packageId: PKG`. × returns to the report list, and the new report
is in it.
- No page errors.

Read-only CRM package:
- Report New, then Save: the server holds the new report in
`com.example.crm.custom` (a read at `?package=com.example.crm` answers
409 naming that pair as the holder). × returns to the CRM report list,
and the new report is in it.
- Dashboard New there is the area's own create in the pair (unchanged).
Its Save lands on the pair's item page, which keeps the generic page (no
app of its own; objectstack-ai#37237). Back lands on the list.
- No page errors.

HotCRM: NOT MEASURED, carried to objectstack-ai#36910.
</details>

<details><summary>Tests, rework 2 (head `298361bd` unless
named)</summary>

- The six pin files (`ReportNewPage-36692`,
`ReportView.designModeExclusion-36692`, `StudioAreaAppOpen-36906`,
`studioAppEdit`, `studioAddress`, `DashboardView.inPageEdit-36372`) plus
the new `ResourceEditPage.createLandingReplace-36906`, default workers,
3 runs on this merged tree: each run lock VERDICT command-exit 0, Test
Files 7 passed (7), Tests 95 passed (95). The six alone, 3 runs at
`35c94a71` (merged with `origin/main` `ede9b91f`): each 6 passed (6), 92
passed (92).
- The seat's S3 red (2 failed of 92 on the merged tree) did NOT
reproduce on this box: the six at the merge commit `ad67a645`, before
the fix, ran 92 of 92 green once. So the clock is shown another way:
with `loadHanRomanizer` slowed by 100 ms (a mutation through
`scripts/ablation-replace.mjs`, restored blob == HEAD), the previous
round's test file fails its two clock-bound save cases (plus its
refusing-door CONTROL, which also lacks the new `toast.info` mock),
while this round's file passes 13 of 13.
- At `35c94a71`, the wider set: every `ResourceEditPage*`,
`runtime-metadata-persistence*`, `Report*` and `DashboardView*` test,
`urlParams.test.ts`, `views/studio-design/`, `views/studio-detail/` and
`packages/i18n/`. Lock VERDICT command-exit 0, Test Files 505 passed
(505), Tests 4838 passed, 13 skipped.
- `pnpm --filter @object-ui/app-shell run type-check`, both tsc
programs, at `35c94a71`: lock VERDICT command-exit 0, 0 `error TS`. (The
final merge brings no app-shell or i18n file.)
- eslint on this round's changed ui files: 0 errors; the 15 warnings are
existing ones (`no-explicit-any`, `only-export-components`).
- Ablations this round, each through `scripts/ablation-replace.mjs`
under the lock (anchor 1 to 0, restore proven by blob == HEAD and `git
diff HEAD` empty):
8. The call site, `replace: studioCreateLandsInApp(areaHost?.packageId,
type),` to `replace: false,` in `ResourceEditPage.tsx`: the new
dashboard REPLACE case fails (1 failed, 2 passed of 3); both CONTROLs
stay green.
9. The notice line removed from `ReportNewPage.tsx`: the refusing-door
CONTROL fails (1 failed, 12 passed of 13).
</details>

<details><summary>Tests, previous rounds</summary>

- At `08107d2f`, the seven touched test files (`ReportNewPage-36692`,
`ReportView.designModeExclusion-36692`, `StudioAreaAppOpen-36906`,
`studioAppEdit`, `studioAddress`, `DashboardView.inPageEdit-36372`,
`urlParams`): lock VERDICT command-exit 0, 7 files, 99 tests passed.
- At `727300e5`, the wider set: every `DashboardView*` and `Report*`
test, every `ResourceEditPage*` test, every
`runtime-metadata-persistence*` test, `views/studio-design/`,
`views/studio-detail/`, `src/__tests__/`, `src/preview/`,
`urlParams.test.ts` and `packages/i18n/`. Lock VERDICT command-exit 0,
585 of 585 files, 5,662 passed, 13 skipped.
- `pnpm --filter @object-ui/app-shell run type-check`, both programs, at
`08107d2f`: exit 0, 0 `error TS`.
- eslint on the nine changed ui files: 0 errors. The warnings are
existing ones.
- Ablations, each through `scripts/ablation-replace.mjs` under the lock
(anchor 1 to 0; restore proven by blob == HEAD and `git diff HEAD`
empty). ui tests resolve `src` directly, so no `dist` leg applies:
1. New-report page, the ask removed: the two "x over unsaved edits" pins
fail (2 of 13).
2. New-report page, `dirty &&` dropped (asks on a clean x): the two
clean-x pins fail (2 of 13).
3. New-report page, the package resolve replaced by `null`: the package
pin, the pair pin and the refusing-door CONTROL fail (3 of 13). The
CONTROL fails because no door is asked at all.
4. Report builder, the ask removed: the Studio dirty pin and the new
outside-Studio pin fail (2 of 8).
5. `StudioAreaAppOpen`, the no-published-version fallback disabled: the
two draft-only pins fail (2 of 16).
6. `studioCreateLandsInApp` forced to `false`: the create-then-Back pin
and the rule pin fail (2 of 16). Corrected in rework 2: this reaches the
pure rule and the create stub's own copy of the landing in
`StudioAreaAppOpen-36906`, not `ResourceEditPage`'s call site (the
seat's call-site ablation left that file green, 16 of 16). Ablation 8
above reaches the call site.
7. Report New on a read-only base, the pair-door condition removed: the
closed-door pin fails (1 of 16).
</details>

<details><summary>Local gates, rework 2 (`dispatch-gates.mjs
--commands`, 73 families)</summary>

- At `298361bd`: all 74 derived families exit 0, each recorded as `cmd
:: exit N` and reconciled with `--ran`: "74 derived famil(ies) accounted
for — 74 run, 0 NOT-MEASURED". The ui `scripts/` family ran under the
lock with `--maxWorkers=1`: Test Files 172 passed, 2 skipped. (The same
72 non-ui families also ran at `35c94a71`, all exit 0 after
`check:skill-examples` first refused with exit 3 because
`@objectstack/client-react` was not built in this worktree, then exit 0
once built.)
- Also at `298361bd`: `check:test-source-alias` exit 0, ui
`check:i18n-keys` exit 0 (every call-site key resolves against the en
pack), `check:nul-bytes` exit 0, `check-platform-checklist
--changed-from origin/main` exit 0 (0 anchored files), and
`overlap-check` VERDICT clean exit 0 (`origin/main` `057cedfa`, objectstack-ai#37249,
objectstack-ai#37210, objectstack-ai#37169, objectstack-ai#37166). The same alias and overlap checks also ran
clean before the push.
- CI runs the full farm on this PR.
</details>

<details><summary>Local gates, previous round (`dispatch-gates.mjs
--commands`, 73 families at that head)</summary>

- At `08107d2f`: all 73 derived families exit 0, each recorded as `cmd
:: exit N` and reconciled with `--ran`: "73 derived famil(ies) accounted
for — 73 run, 0 NOT-MEASURED". Two needed a second run:
`check:skill-examples` first exited 3 (it refused, measuring nothing,
because `packages/client`'s source was newer than its build after a
local history rebuild), then 0 after rebuilding `client`; the ui
`scripts/` family ran under the lock with `--maxWorkers=1`: 172 files
passed, 2 skipped.
- `check:test-source-alias` first exited 1 at `727300e5`: the new-report
page now imports the draft bar's package rule, which reaches
`@objectstack/lint`. The test file pays that load at collection (`import
'@objectstack/lint'`, the gate's prescription); exit 0 since, and at
`08107d2f`.
- Also at `08107d2f`: `overlap-check` VERDICT clean (main, objectstack-ai#37249,
objectstack-ai#37210, objectstack-ai#37169, objectstack-ai#37168, objectstack-ai#37166), `@objectstack/spec check:generated`
exit 0 after the merge, and `check-platform-checklist --changed-from
origin/main` exit 0 (no anchored file changed).
- CI runs the full farm on this PR.
</details>

## Human Minimum

- [x] 1. Schemas start as Zod; `packages/spec` holds no runtime logic.
- [x] 2. Every name I added uses the casing for its kind.
- [x] 3. No formatter ran; `pnpm lint` passes. (eslint on the changed
files locally; the repo-wide run is CI's.)
- [x] 4. One issue, one branch off an up-to-date `main`, one pull
request.
- [x] 5. A change that publishes carries a changeset, and both
declaration lines are filled in here and in the changeset.
- [x] 6. `packages/spec` touched: its generated artifacts are
regenerated and committed. (Not touched.)
- [x] 7. No hand edits to `content/docs/references/`,
`packages/*/CHANGELOG.md` or `content/docs/releases/`.
- [x] 8. Title, body and comments are in English.
- [x] The *Before Submitting* list in CONTRIBUTING.md is done.

---
_Generated by [Claude
Code](https://claude.ai/code/session_01QSeKYmSqW1KzbiTWCnSN1K)_

<!-- signed: repo:objectstack#4 · os-justin ·
session_01QSeKYkkwuF6UuFtu85Yd5H -->

---------

Co-authored-by: Claude <noreply@anthropic.com>
Nenzyz pushed a commit to Nenzyz/objectstack that referenced this pull request Dec 1, 2026
… and their notes follow the new currency (objectstack-ai#37284)

repo:objectstack#4 · os-justin · session_01QSeKYnagJvGbCtNg2PhvgW

Fixes objectstack-ai#36412

Clause-②: yes (widening)
Metadata-protocol: none

## 维护者速读

-
用户可见变化:在报价、订单、发票里选产品带出价格后,如果在同一次编辑中改了币种,价格不会被改动或清空,下方会说明这笔价格是按哪个币种带入的、记录现在是哪个币种;没带入的价格提示会跟着换成新币种;改成与产品价格相同的币种时,提示保留、价格仍空,并提示重新选取即可带入。
- 为什么做:这是「选产品不跨币种抄价格」那张卡里最后一项(「保留金额并提示」及其 B 方案),替多币种单据的使用者补上改币种后的说明。
- 出错会怎样:只影响价格下方的提示文字,不写入、不清除任何金额;手动输入的金额不显示提示;可以直接撤回这一个合并。
- 要你做什么:无。

## What changes

The ruling item on this card (comment 7118795825, 「保留金额并提示」) and its
branch B (comment 7158109013), on both hosts: the line-item grid
(`GridFieldWidget`) and the record form (`LookupField` with the declared
pairs). Scope is bounded by ADR-0144 D2: new records, records with no
saved lines, lines staged in the same edit, and declared pairs on the
record's own amounts. Items 1–4 landed in objectstack-ai#36918. With this PR the
card's last open item is done.

- **Point 1: a currency change in the same edit never changes or clears
a filled amount.** Measured first. This already holds on `main`
(`057cedfa9b6`): nothing writes an amount when the code changes. The new
pins were run against main's source files, and every amount assertion
passed there; the only failures were the note lines that come after them
(see Tests). Pinned either way, on both hosts. This PR adds no write.
- **Point 2: an amount a pick copied gets a note once the currencies
differ.** `judgePickWrites` now records each amount it copies as
`CopiedAutofill` (`target`, `source`, `value`, `under`: the code the
target was in at the write). The plan gains the optional `copied`,
absent when there is none. Each host keeps these beside the withheld
values of the same pick. When drawing, it shows "Unit Price was copied
as $100.00, but the record is now in EUR. Enter Unit Price in EUR if it
should change." only when all of these hold (`copiedAutofillNow`): the
field still holds that pick, the target still holds the copied value,
and the code the target is in now is known and differs from `under`. A
currency change back ends the note.
- **Point 3: a withheld note already shown refreshes to the record's new
currency.** `withheldAutofillNow` judges each shown withheld item again
with `crossCurrencyRefusal`, using the picked amount's own currency (its
`from`) against the target's currency as it is now. The note follows the
new code, and its reason too: a code cleared reads "no currency is
chosen".
- **Point 4: a hand-typed amount gets no note.** Only a pick records a
copied amount, and the note needs the target to still hold the copied
value. So an amount typed by hand, or typed over a copied one, says
nothing.
- **Branch B.** When the record's currency turns to the picked amount's
own, the re-judgement copies nothing. The item takes the new reason
`nowSameCurrency`, the note stays and the cell stays empty: "Unit Price
was not filled when it was picked. The record is now in USD: pick again
to fill $100.00." A pick again fills it (pinned as the control on the
record form). When the target still holds an earlier value (`held`), the
sentence says to clear the field, then pick again
(`lookup.autofillNowSameCurrencyHeld`, round 3).
- "Now" on each host is the same context the pick used, with no picked
row. On the grid that is `gridAutofillCurrency` on the current line,
with `columnCurrencies` (a header-following line) or `columnFields` (the
line's own code). On the record form it is `currencyFor` on the live
record, followed parent included. So a code written later in the edit is
read exactly as a pick would read it.
- i18n: three sentences, `lookup.autofillNowSameCurrency`,
`lookup.autofillNowSameCurrencyHeld` and `lookup.autofillCopiedUnder`,
in all 11 packs (zh-Hant generated by `gen:zh-hant`) and in
`FIELD_DEFAULTS`.
- One changeset, `.changeset/36412-currency-change-notes.md`:
`@object-ui/fields` and `@object-ui/i18n`, both `patch`. The objectstack-ai#36918
changeset is left untouched. `@object-ui/plugin-form` changes in its
test file only, which is not published.

## Clause-② rework: route (a), `copied` optional

At the seat's rework the first declaration, `Clause-②: no`, did not
hold. Route (a) is taken; no route (b), nothing here needs `copied` to
be required. `LookupAutofillPlan.copied` is now optional (`copied?:
CopiedAutofill[]`). `judgePickWrites` leaves it out when the pick copied
no amount under a judged currency, and every in-package reader treats
absent as none (`LookupField`'s two `noteWithheld` calls,
`GridFieldWidget`'s pick, `planLookupAutofill`'s pass-through). A plan
built without `copied` is still a plan, so nothing is narrowed. The
published `@object-ui/fields` surface widens:
- new exports `withheldAutofillNow`, `copiedAutofillNow`,
`copiedAutofillMessage` and the type `CopiedAutofill`;
- the optional member `LookupAutofillPlan.copied`;
- the `WithheldAutofill.reason` union gains `nowSameCurrency`, so code
that switches over every reason gains one case.

The same declaration is in the changeset. `Metadata-protocol: none`
stands: no spec key, value or metadata type changes. A pin asserts that
a plan which copied no amount carries no `copied`.

## Tests

Round 3 (the seat's S1, N1, N2 and N4), all under `os-verify-lock`:
- Both pin files at `dd0ebf7f96`: Tests 71 passed (71). Two new pins
hold the held branch B case on each host (grid: header USD over a line
holding 80, then EUR; form: an `overwrite: true` pair over a typed 80 on
a EUR quote, then USD). Each asserts the exact clear-then-pick-again
sentence and that the earlier value stays. The grid branch B pin now
ends with the N4 control: a pick again fills 100 and no note remains.
- Ablation: the held arm in `withheldAutofillMessage` is deleted
(`ablation-replace --delete`, restored to the HEAD blob `848e5fd1844c`).
Tests 2 failed, 9 passed: exactly the two held pins fail. The non-held
branch B pins on both hosts stay green, so their wording is unchanged.
- The three-package run at `dd0ebf7f96` failed one test,
`all-locales-key-parity` "placeholders match en in every pack": the
first zh-Hans text of the new key named `{{field}}` three times against
en's two, and zh-Hant was generated from it. Fixed in `315c0d8fef`. At
that head, `packages/i18n/` gives Test Files 111 passed, Tests 2028
passed, 13 skipped. Only locale strings changed between the two heads;
fields and plugin-form were green at `dd0ebf7f96` (685 of 687 files
passed, 1 skipped, and the one failure was that i18n test). `type-check`
of the three packages exits 0 at `315c0d8fef`.

Round 2 (the Clause-② rework), head `a602513471`, all under
`os-verify-lock`: the same three-package run gives Test Files 686
passed, 1 skipped (687), and Tests 9840 passed, 21 skipped (9861),
`VERDICT command-exit 0`. `type-check` of the three packages exits 0.
Ablations of the reworked lines, each restored to the HEAD blob
`e96dadd3fbba`:
- `copied` always present (`return copiedAmounts.length > 0 ? { ...plan,
copied: copiedAmounts } : plan;` becomes `return { ...plan, copied:
copiedAmounts };`): Tests 1 failed, 8 passed. The absent-means-none pin
fails.
- No copied note, re-run on the new head: Tests 3 failed, 6 passed. The
copied note fails on both hosts, plus the pure pin.

Round 1 readings follow. Tests on head `482148532`, all under
`os-verify-lock`: `pnpm --dir ui exec vitest run --maxWorkers=2
packages/fields/ packages/plugin-form/ packages/i18n/` gives Test Files
686 passed, 1 skipped (687), and Tests 9840 passed, 21 skipped (9861),
`VERDICT command-exit 0`. `type-check` of `@object-ui/fields`,
`@object-ui/plugin-form` and `@object-ui/i18n` exits 0, after the
closure build. Both pin files are in the `tsconfig.test.json` program
(`--listFiles`: 1 hit each).

<details><summary>New pins, the point 1 measurement, and
ablations</summary>

- `ObjectForm.lookupAutofill-28245.test.tsx`, new describe "a same-edit
currency change keeps amounts and says so", 4 tests through
`ObjectForm`. (1) A USD quote picks a $100 product. Changed to EUR, it
keeps 100 and shows the copied note with its exact text. Control: before
the change there is no note, and changing back to USD ends it. (2) A JPY
quote's withheld note names GBP and no longer JPY after the code becomes
GBP, and the price stays empty. (3) Branch B: a EUR quote's withheld
note reads exactly "Unit Price was not filled when it was picked. The
record is now in USD: pick again to fill $100.00." once the code becomes
USD, and the price stays empty. Control: the pick again fills 100 and no
note remains. (4) A typed 55 gets no note through a currency change, and
neither does 55 typed over a copied 100.
- `GridField.lookupAutofill-28245.test.tsx`, new describe of the same
name, 5 tests. The same four cases through `GridField`, with the header
currency handed in as `columnCurrencies` and changed by a rerender, for
a product priced in EUR. One more is pure: `withheldAutofillNow` follows
the currency now, `nowSameCurrency` applies when it matches, and with no
currency known the item is returned unchanged; `copiedAutofillNow` names
a differing code only while the target holds the copied value. The
objectstack-ai#36412 declared-pairs pin now also asserts `copied` (the price is
recorded under the code the same pick wrote).
- **Point 1 measured on main's code.** The five source files were
restored to `057cedfa9b6` in the tree only, the `-t ruling` pins were
run, and the files were restored with `git checkout HEAD` (`git diff
HEAD` empty afterwards). Result: 7 failed, 2 passed. The two hand-typed
pins passed. Both copied-amount pins failed on the note line after their
amount assertion (ObjectForm line 745, GridField line 641): the amount
kept its value through the currency change on main. The refresh and
branch B pins failed on their note text, and the pure pin failed on the
missing export. Point 1 has no implementing line to ablate: nothing
writes an amount on a currency change, before or after this PR.
- Ablations on the committed tree with `scripts/ablation-replace.mjs`
(`lookupAutofill.ts`; vitest aliases `@object-ui/*` to `src`, so no
`dist` sits between mutation and run), `-t ruling`, each restored to the
HEAD blob `18535d11faef`:
- ` if (!now) return item;` becomes ` return item;` (no refresh): Tests
5 failed, 4 passed. Refresh and branch B on both hosts, plus the pure
pin.
- ` return to && to !== item.under ? to : undefined;` becomes ` return
undefined;` (no copied note): Tests 3 failed, 6 passed. Copied note on
both hosts, plus the pure pin.
- ` if (!sameValue(current, item.value) || !now) return undefined;`
becomes ` if (!now) return undefined;` (a typed-over amount keeps the
note): Tests 3 failed, 6 passed. Hand-typed on both hosts, plus the pure
pin.

</details>

## Acceptance notes

- Clause-②: `yes (widening)` (see the rework section above). The diff
touches no `packages/spec/**` and no metadata. `git grep` finds
`LookupAutofillPlan` only inside `ui/packages/fields`.
- Branch B over a filled target (round 3, the seat's S1): a withheld
value that carries `held` (a pick over a target that still holds an
earlier value) now gets its own branch B sentence,
`lookup.autofillNowSameCurrencyHeld`: "Unit Price was not filled when it
was picked and still holds its earlier value. The record is now in USD:
clear Unit Price, then pick again to fill $100.00." For a declared pair
without `overwrite`, picking the same record again does not replace a
value that record did not fill (the spec's overwrite rule), so the
sentence says to clear the field first. Re-pick behaviour is unchanged.
- A copied amount whose record's currency becomes unset or unreadable
gets no note (no current code to name). Only a known, different code is
named, as the ruling's example reads.
- N9 (record-page editor re-renders): not measured. The new work per
render is one re-judgement per shown note, and nothing runs when no pick
left a note.

## Verification

<details><summary>Gates</summary>

- Round 3: `dispatch-gates --commands` derived the same 41 at
`315c0d8fef`. All 41 ran with exit 0, including the ui `scripts/` family
(172 files passed, 2 skipped; 5130 tests passed). `--ran`: 41 derived,
41 run, 0 NOT-MEASURED, 0 UNRUN. ui `check:i18n-keys`,
`check:i18n-drift`, `check:i18n-dead-keys` and
`check:new-line-citations` exit 0 (run at `dd0ebf7f96`; the later commit
changes two locale strings, and key parity is pinned by the i18n suite
above). Size: 19 files, +582/-38 (620 changed lines); with objectstack-ai#36918's 714
the card totals 1,334, under 3,000.
- Round 2: `dispatch-gates --commands` derived the same 41 at
`a602513471`. All 41 ran with exit 0, including the ui `scripts/` family
(172 files passed, 2 skipped; 5130 tests passed). `--ran`: 41 derived,
41 run, 0 NOT-MEASURED, 0 UNRUN.
- Round 1: `dispatch-gates --commands` (no paths, change set from the
merge base) derived 41 commands at `482148532`. All 41 ran with exit 0.
`pnpm --dir ui exec vitest run scripts/` ran under the lock with
`--maxWorkers=2`: Test Files 172 passed, 2 skipped, and Tests 5130
passed, 2 skipped. `dispatch-gates --ran` with exit codes recorded: 41
derived, 41 run, 0 NOT-MEASURED, 0 UNRUN, exit 0.
- ui `check:i18n-keys`, `check:i18n-drift`, `check:i18n-dead-keys` and
`check:new-line-citations`: exit 0, with 0 new citations.
- `overlap-check` before each push: VERDICT clean, exit 0. Re-read after
`git fetch` against `origin/main` `622f3985fe` and 5 PR heads that share
files (objectstack-ai#37282, objectstack-ai#37249, objectstack-ai#37226, objectstack-ai#37210, objectstack-ai#37166): clean. `--pr=37264`
named explicitly: merges cleanly.

</details>

Read first, by risk: (1) `judgeCopy`, `withheldAutofillNow` and
`copiedAutofillNow` in `lookupAutofill.ts`; (2) the note block at the
end of `LookupField.tsx` (`pickStands`, `currencyNow`); (3) the per-row
note block in `GridFieldWidget.tsx` (`lineCurrencyNow`).

Two-minute check: `pnpm --dir ui exec vitest run
packages/plugin-form/src/ObjectForm.lookupAutofill-28245.test.tsx -t
ruling` passes 4 tests. In them, a USD quote picks a $100 product,
changes its currency to EUR, keeps 100, and shows "Unit Price was copied
as $100.00, but the record is now in EUR."

https://claude.ai/code/session_01QSeKYnagJvGbCtNg2PhvgW

🤖 Generated with [Claude Code](https://claude.com/claude-code)

---
_Generated by [Claude
Code](https://claude.ai/code/session_01QSeKYnagJvGbCtNg2PhvgW)_

---------

Co-authored-by: Claude <noreply@anthropic.com>
Co-authored-by: objectstack-fleet[bot] <332303061+objectstack-fleet[bot]@users.noreply.github.com>
Nenzyz pushed a commit to Nenzyz/objectstack that referenced this pull request Dec 1, 2026
…or Setup > Packages (objectstack-ai#37166)

Fixes objectstack-ai#36908
Clause-②: no
Metadata-protocol: none

## 维护者速读

- 管理员和开发者打开 Studio
不再看到软件包卡片页:有上次用过的软件包就直接进它;没有的话,能打开设置软件包列表的人进那个列表,打不开的开发者进「全部元数据」;已安装应用「改了什么」挪到了设置里的软件包详情;「添加应用」菜单去掉了「用
AI 搭建」,「在 Studio 中新建」改名为「新建空白应用」,凡是开放了元数据编辑的环境都会出现。
- 这是 Studio 重构专题的「去掉 Studio 首页」一步:首页的入口大多已有去处,但软件包的「管理」和「全部软件包」要等 Studio
顶栏菜单那张卡(objectstack-ai#37139)补上,一步「新建应用」要等新建软件包对话框那张卡(objectstack-ai#37134);另有三个入口没能在真实环境走过,「添加应用」菜单这一轮的变化(去掉「用
AI 搭建」、改名「新建空白应用」)也没在真实环境走过,都只有自动测试覆盖。
-
维护者已裁定统一「已定制」的口径(objectstack-ai#37236),但设置里的软件包详情和本次更新说明里的一句话目前仍把标签页等排列调整算作「已定制」;改正由那张卡完成,本
PR 不妨碍它。
- 只有 Studio 权限、没有设置权限的开发者现在没有任何页面能新建软件包,因为新建入口只在设置里;这要等 Studio
顶栏菜单(objectstack-ai#37139)和新建软件包对话框(objectstack-ai#37134)两张卡落地。
- 如果出错,用户进 Studio 会落到软件包列表或「全部元数据」页,而不是首页;这次只改界面,不改数据,可以直接撤回。
  - 服务器没有报告用户权限时,这些「新建」入口按有权限处理,把人带到设置里的新建软件包;真正能否创建仍由服务器判断,席位建议保持这样。
- 本 PR 超过 3000 行(主要是删除旧首页和它的测试),请您按大 PR 流程审核后再合并。

## What changes

Epic objectstack-ai#36890 decision 9: the package-card page at bare `/studio`
(`BuilderLanding`) is removed. This PR finds a new home for every entry
it carried and deletes the page, the code only it used, and its tests.

Every Studio exit that names no package now makes one choice,
`studioEntryFallbackPath`: Setup → Packages
(`/apps/setup/component/developer/packages?face=admin`) for a principal
holding `setup.access` and `manage_platform_settings`, and
`/studio/~all/metadata` (the All metadata area) for one who may enter
Studio but not that page. The capability set is the one Studio's entry
gate read: app-shell now exports `StudioEntryPermissionsProvider` and
`useStudioEntryPermissions`, and the console's `RequireStudioAccess`
provides the set around the `/studio` subtree. Outside that provider the
set reads as holding nothing, so nobody is sent to a page they may not
open.

| Entry the home carried | Where it goes now |
|:---|:---|
| bare `/studio` | `StudioEntryRedirect` (in the lazy Studio chunk). It
opens the newest remembered package (the recent `package` entries
`StudioRoute` records) that `GET /api/v1/packages` still lists, else
`studioEntryFallbackPath`. If the list cannot be read, it opens the
newest remembered package, and Studio reports the failed read itself. |
| New package (`/studio?new=package`) | `SETUP_NEW_PACKAGE_PATH`: the
admin face with `?new=package`. It opens New Package on arrival and
drops the param with a replace. After create it lands in Studio on the
new package (objectstack-ai#36834). Callers: Home's no-agent chip, the `/ai`
no-assistant screen, the 「Add app」 menu and the no-apps screen, all
labelled 「New blank app」 / 「新建空白应用」 now (below); for an author who may
not open Setup → Packages each of them, like the bookmark, opens the All
metadata area instead (`useNewPackageDoorPath`, `newPackageDoorPath`).
An old `/studio?new=package` bookmark goes there for a holder of the
pair, and to the All metadata area for anyone else
(`studioNewPackageEntryPath`). One-step 新建应用 is objectstack-ai#37134. |
| `~all` / `~org` cards | Already in the left menu (objectstack-ai#36899). Nothing
more to do here. |
| Per-app "n customized, m switched off" and the "Customizations in this
environment" panel | `PackageCustomizationsPanel`, shown in a read-only
base's detail sheet on the admin face. It is not shown for an authored
package, a `.custom` pair or a kernel package. It has a summary line,
rows with tabs (adds Layouts), search, Show all, and 「Customize in
Studio」. **"Customized" now counts `counts.arrangements`.** This
delivers objectstack-ai#36833's requirement in the panel's new home; objectstack-ai#36833 was closed
as not planned (ruling 7125820739), so this PR does not close it. |
| Card Manage and the All packages link (development face) | Not this
card: the door is added by objectstack-ai#37139 (card note 7146329913). The
development face stays reachable by its address. |
| Recently viewed | Now Studio's entry itself: `/studio` opens the
newest remembered package. |
| 「包不存在」 → Studio home | The button follows `studioEntryFallbackPath`:
「Open the package list」 → Setup → Packages for a holder
(`engine.studio.notFound.packageList`), 「Open All metadata」 → the All
metadata area otherwise (new key `engine.studio.notFound.allMetadata`).
|
| `AppContent` fallbacks, `packagedActionsStudioPath` fallback with no
package named | `SETUP_PACKAGES_PATH`. |
| `studio:builder` (the `@objectstack/studio` app's 「应用构建」) | Forwards
to `/studio`. |
| 「Add app」 (sidebar app menu, and the no-apps screen's buttons) |
Maintainer rulings 7153161067 and 7153400210 on objectstack-ai#36908: 「Build with AI」
(to bare `/studio`) is removed, and `new-in-studio` is pushed for every
admitted viewer on a deployment that offers metadata authoring, whether
or not the build agent is served. It is relabelled under its existing
key `home.build.inStudio`: en "New blank app", zh-Hans 「新建空白应用」, zh-Hant
regenerated (「新建空白應用」), and the eight other packs translated anew, as
`check:i18n-drift` requires of an en change. Home's no-agent chip and
the `/ai` button read the same key; their inline `defaultValue` now
matches the en value (`check:i18n-keys`); the chip's condition and
target are unchanged. It stays inside `isAiStudioEnabled()`, because
with `features.aiStudio` false the runtime offers no metadata authoring;
a viewer `useMayAddApp` admits there gets the marketplace's two entries,
so the list is never empty for an admitted viewer. `SidebarAppMenu`
reads the list itself and draws neither 「Add app」 nor its separator for
an empty list. Home's 「Build an app」 chip and Home's 「Build with AI」
drawer button are untouched. |

Removed: `BuilderLanding.tsx`, its `BuilderLanding.*` test files,
`fetchInstalledPackageRow` (only the home's Manage called it) with its
pin, and the home's console frame in `StudioRoute` (header and command
palette). Two deleted suites still pinned code that stays, and those
halves moved (see Tests): the permission matrix's read-only hint copy,
and the three new-app door cases. `LandingCustomizationsPanel` and
`landingCustomizations-io` were renamed and rewritten as
`PackageCustomizationsPanel` and `packageCustomizationRows`.
`newAppDoor.ts`, `PackageFormDialog`'s `newApp` branch and the
`engine.studio.newApp.*` strings stay for objectstack-ai#37134; the branch keeps its
three cases, now mounted on `PackageFormDialog` itself.

**Strings.** The home's `engine.studio.landing.*` keys and
`engine.studio.landingHome` that ship in the released
`@object-ui/i18n@18.6.0` (71 in each of `en` and `zh`, measured against
the published tarball; 3 of them are still read by the Packages page)
stay, the other 68 no longer read. Removing a published key is a
narrowing, so this PR removes none. The four landing keys added after
18.6.0 and never released (`manage`, `manageTitle`, `allPackages`,
`allPackagesTitle`) are removed. `engine.packages.customizations.*`,
`engine.studio.notFound.packageList` and
`engine.studio.notFound.allMetadata` are added (38 keys per language).
The PR changes no existing value.

**Changesets.** `36908-remove-studio-home.md` (app-shell, console,
platform-objects) says what users see, in their words. The i18n note is
in its own `@object-ui/i18n`-only changeset,
`36908-studio-home-strings.md`. Both carry the two declaration lines.

Checklist: `studio-authoring.package-customization-counts-and-marks`
(rev 4) and `studio-authoring.org-scope-flows` (rev 5) are re-pointed.
The rev 4 note now says objectstack-ai#36833 was closed as not planned and this card
delivers its requirement; its `acceptance[2].verify` names
`PackageCustomizationsPanel.test.tsx` as the pin. Also re-pointed off
the removed home: `automation.setup-packaged-automation-board` (rev 15:
title, `steps[1]`, `acceptance[0]`; the packaged-actions bookmark with
no `?package=` opens Setup → Packages),
`studio-authoring.first-run-loop` (rev 16, `steps[1]`: 「Build an app」
opens the last package or Setup → Packages, the other chip reads 「New
blank app」), and the fixture lines of
`automation.packaged-flow-clone-contract` (rev 14),
`studio-authoring.held-edit-leave-guard` (rev 12) and
`ux-conventions.write-feedback` (rev 18), which made their scratch
package on the Studio landing.

Size at `54e4586e`: +2,306 / −5,217 across 101 files rename-aware
(+2,680 / −5,591 across 103 without renames), mostly deletions. Per
ruling 7145880574 on objectstack-ai#36890 this lands as one PR, reviewed by the
maintainer after L1.

**Overlaps** (overlap-check at `54e4586e`, against `origin/main`
`4fb03ebb`, exit 1 for objectstack-ai#37249 below): origin/main merges cleanly. This
round merged main six times: `cf77ecb9` (K 12) was clean, and `54e4586e`
(K 9, with objectstack-ai#37169) is resolved below. Resolved:
- objectstack-ai#37089 (landed as `886e9707`): conflicted in
`StudioDesignSurface.notFound-26708`; both sides added the same
`@object-ui/plugin-detail` import, main's comment kept. The same merge
brought objectstack-ai#37198's address-guard fixtures spelling the removed
`STUDIO_LANDING_PATH`; they are dropped here.
- objectstack-ai#37185 (landed as `ad604c10`): `PackageSwitcher.tsx` keeps this
branch's side (`fetchInstalledPackageRow` and `STUDIO_LANDING_PATH`,
which objectstack-ai#37185 moved onto the authenticated fetch, are deleted here); its
edits to the six test files this branch deletes were stub adaptations (a
`headers` field, a module-top import, the gate's fetch double) with no
subject left to pin. The new customizations read goes through
`packageCustomizations-io.ts`, already on the authenticated fetch;
`PackageCustomizationsPanel.test.tsx`'s stub now carries `headers: new
Headers()`.
- objectstack-ai#37204 (landed as `bd98dd12`): `StudioRoute.test.tsx` and
`StudioRoute.lazyBuilder-11798` keep this branch's removal of the
home-frame cases; `StudioRoute.metadataArea-28561` keeps this branch's
comment line and objectstack-ai#37204's `app-bar-product-home` test-id absence,
without the old-name check.

- objectstack-ai#37241 (landed as `fc216747`): `SidebarAppMenu.tsx` takes its
`AppMenuList` and keeps this branch's `offerAddApp` separator; its new
`SidebarDocsPortalMenu` gets the same rule (the 「Add app」 list read
there, nothing drawn for an empty list, `AddAppSubmenu entries={…}`),
pinned in its `SidebarAppMenu-36112` block (「New blank app」 and no
「Build with AI」 with the build agent served; a Studio-only author to
`~all`; the empty-list guard).
- objectstack-ai#37168 (landed as `1b91538b`): `PackageFormDialog.newAppStep-36748`
keeps this branch's host and adds objectstack-ai#37168's
`/studio/:packageId/metadata/*` route; `notFound-26708` keeps this
branch's provider and Setup / All metadata routes and adds objectstack-ai#37168's
metadata-area route (the removed home's `/studio` route stays out). Its
edits to the two `BuilderLanding.*` files this branch deletes were the
switched-off action's new address; that pin now lives at
`PackageCustomizationsPanel.test.tsx:188`, updated here to
`/studio/APP/metadata/object/opportunity?action=clone_opportunity`.

- objectstack-ai#37169 (landed as `4fb03ebb`; this PR is the second lander):
`BuilderLanding.orgScope-11553` stays deleted. objectstack-ai#37169 only moved the
removed home's ~org card to `/studio/~org/metadata/flow?source=runtime`,
and the org-scope entry is pinned by
`StudioDesignSurface.packageLessFlows-11553`, which objectstack-ai#37169 updated.
`notFound-26708` keeps this branch's `StudioEntryPermissionsProvider`
and Setup / All metadata routes, with objectstack-ai#37169's comment naming
`/automations` too. Nothing else conflicted. `AREA_DESIGNER_PAGE_TYPES`
and the removed `AreaHistoryRedirect` exemption came in untouched. The
18.6.0 studio key comparison was re-run against `4fb03ebb`: the branch
removes only the four never-released keys, adds 38 per language and
changes 0 values; all 71 released landing keys are present.

Still open; whichever lands second merges main and resolves:
- objectstack-ai#37249 (objectstack-ai#37227) conflicts in `HomePage.desktopNoApps-36732` and
`HomePage.noAgentsBuildChip-26614` (this branch's Studio-only chip
case). Beyond the text: its first case expects the no-apps doors
`[template, marketplace]` with the build agent served, and 「New blank
app」 now shows there too (ruling 7153400210), so the second lander keeps
`new-in-studio` first. Its HomePage filter of `build-with-ai` becomes a
no-op. It touches neither `home.build.inStudio`'s values nor the chip's
lines (measured by `git merge-tree` against its branch).
- objectstack-ai#37226, objectstack-ai#37215, objectstack-ai#37210, objectstack-ai#37165, objectstack-ai#37282 and objectstack-ai#37284 merge cleanly.

### Read first

1.
`ui/packages/app-shell/src/views/studio-design/StudioEntryRedirect.tsx`:
the whole `/studio` decision, and the two capability helpers. Risk:
where a non-administrator lands (the `studioEntryFallbackPath` pair),
now for the bookmark too.
2.
`ui/packages/app-shell/src/views/studio-design/PackageCustomizationsPanel.tsx`
and the mount in `PackagesPage.tsx` (`PackageDetailSheet`). Risk: the
gate `!authoring && !writable && !isKernel &&
!isCustomizationPackage(id)`.
3. `ui/apps/console/src/components/StudioRoute.tsx` with
`studioEntryPermissions.ts`: the index route and the capability set the
entry gate provides to Studio (`StudioEntryPermissionsProvider`), which
the not-found exit reads.

### Two-minute verification

As the seeded admin with nothing remembered, open `/_console/studio`.
Expected: you land on Setup → Packages
(`…/developer/packages?face=admin`). Open the ObjectStack Showcase row:
its detail shows "Customizations in this environment" with a Customize
in Studio link.

## Tests

New pins:
- `StudioEntryRedirect.test.tsx` (12 cases): the newest remembered
package the list still names opens; a package the list no longer names
is skipped; nothing remembered leads to Setup → Packages, read without a
list request; a Studio-only principal lands on `~all`; a failed list
read opens the newest remembered package; the old new-package bookmark
is forwarded for an administrator (CONTROL) and sends a Studio-only
principal to `~all`, never to Setup; both helpers read the same
capability pair.
- `StudioDesignSurface.notFound-26708`: the not-found button opens Setup
→ Packages for an administrator (CONTROL), and for a Studio-only
principal it reads 「Open All metadata」 and opens `~all`, never Setup.
The harness provides the entry gate's set through
`StudioEntryPermissionsProvider`.
- `PermissionMatrixEditor.readOnlyHintCopy-12171.test.ts`: the half of
the deleted `BuilderLanding.environmentOverlayCopy-12171` that covered
`perm.readOnly.artifact.hint`, which `PermissionMatrixEditor` still
draws. No table names the organization axis; lit control that it names
the environment overlay in every table; lit control that `t()` serves
the value the extractor read, for every declared locale.
- `PackageFormDialog.newAppStep-36748.test.tsx`: the three
`BuilderLanding.newAppDoor-36748` cases, moved onto `PackageFormDialog`
with `newApp={newAppStep(client, locale)}`, mounted as the home mounted
it (create mode, Studio on the new package after save): the dialog
worded for an app in zh; package POST, app draft, app publish, then the
Studio header names the app and 「‹ Back to app」 opens it; a taken app
name refuses the confirm and writes nothing.
- `PackageCustomizationsPanel.test.tsx`: the rows and counts, including
the **objectstack-ai#36833 arrangement-only case**; the empty and failed states (never
"0"); row and switched-off-action links; tabs, search and Show all; zh
words; and the moved rows and labels io.
- In the `PackagesPage` administration-face harness, two describes: "the
new-package deep link" (3 cases) and "a read-only base's customizations
in its detail" (6 cases: a code package draws the section with
arrangements counted; an authored package does not; the development face
does not; a read-only `.custom` pair draws none and sends no
customizations request; a kernel package's detail, opened directly
because the admin face lists none, draws none and sends no request;
CONTROL, the same direct render of a code package draws it and reads
once).
- Unreported capability set on the doors:
`HomePage.noAgentsBuildChip-26614` renders Home inside the real
`MePermissionsProvider` with an authenticated answer that carries no
`systemPermissions`; the chip opens Setup's New Package (the fail-open).
CONTROL, the same provider with a reported set holding `manage_metadata`
alone: the chip opens `/studio/~all/metadata`.
- Studio-only author on the doors outside Studio: `SidebarAppMenu-36112`
(「New blank app」 links to `/studio/~all/metadata`) and
`HomePage.noAgentsBuildChip-26614` (the chip navigates there, never to
Setup); `StudioEntryRedirect.test` holds `newPackageDoorPath` to the
same two answers.
- `SidebarAppMenu-36112` (the shared harness, new top-level describe):
with build and ask, the legacy build id, ask only, other agents only, or
no agent served, 「Add app」 offers `new-in-studio` ("New blank app", to
New Package), the template and the marketplace, and never 「Build with
AI」; never empty for an admitted viewer with authoring but no
marketplace, or a marketplace but no authoring; CONTROL, with neither
the viewer is not admitted; guard, an admitted viewer handed no entries
gets no 「Add app」 and no separator. `HomePage.desktopNoApps-36732`: the
no-apps doors are `[new-in-studio, template, marketplace]` with the
build agent served.
- Converted, not deleted: the StudioRoute gate, lazy-module,
recent-visit and access-notice pins; `studio:builder` registration (now
a forward); `setupMetadataRedirect`; `studioAddress` and its guard (the
guard no longer names the deleted `STUDIO_LANDING_PATH`); the Home,
sidebar 「Add app」 and `/ai` deep-link hrefs; the vocabulary census;
`consoleTopBar.height-12639`; `AppContent.setupMetadataStudio-28578`.

<details><summary>Local runs at this round's heads</summary>

**Rework 2, objectstack-ai#37169's merge, head `54e4586e`** (after merging
`origin/main` `4fb03ebb`, K 9, and `pnpm --filter
'@object-ui/console^...' build`, lock VERDICT command-exit 0):
- vitest over app-shell `views/studio-design`, `console/home`,
`console/ai`, `console/__tests__`, `layout/`, `hooks/`, `PackagesPage*`
and `PackageFormDialog*`, plus console `components/`: Test Files 826
passed (826); Tests 6948 passed; lock VERDICT command-exit 0.
- type-check `@object-ui/app-shell` (src + `tsconfig.test.json`) and
`@object-ui/console`: exit 0. eslint on the two touched test files: exit
0.
- Exit 0: check:test-source-alias, check:nul-bytes,
check:cross-package-test-inputs, `check-platform-checklist
--changed-from origin/main` (11 anchors, 0 lost), and under `ui/`
check:i18n-keys, check:i18n-drift, check:unreferenced-sources and the
three vi-mock gates.
- The full `check:platform-checklist` exits 1 on one finding, and
`origin/main` `4fb03ebb` fails the same way: `automation.json` anchors
`FlowItemMoreMenu.tsx#FlowItemMoreMenu`, which objectstack-ai#37169 removed. That is
main's to fix, not this PR's.

**Rework 2 (delta L1 S1, N4, N5), head `cf77ecb9`** (after merging
`origin/main` `4ed453dc`, K 12, clean, and `pnpm --filter
'@object-ui/app-shell^...' build`, lock VERDICT command-exit 0):
- vitest over `console/home`, `console/ai`, `RequireAiSurface`,
`AppContent.setupMetadataStudio-28578`, `setupMetadataRedirect.test`,
`PackageCustomizationsPanel.test`, `StudioEntryRedirect.test`,
`SidebarAppMenu-36112` and `hooks/`: Test Files 210 passed (210); Tests
1827 passed; lock VERDICT command-exit 0.
- Mutation through `scripts/ablation-replace.mjs`:
`useNewPackageDoorPath` made to fail closed
(`Array.isArray(systemPermissions) && hasCapabilities(…)`) →
`HomePage.noAgentsBuildChip-26614` 4 failed / 12: the new unreported
case, plus the three no-agent cases whose stub leaves
`systemPermissions` undefined; the reported-set control stayed green.
Restored to the HEAD blob, `git diff HEAD` empty.
- type-check `@object-ui/app-shell` (src + `tsconfig.test.json`): lock
VERDICT command-exit 0. eslint `--no-inline-config` on the 4 touched ui
files: exit 0.
- Exit 0: check:platform-checklist, `check-platform-checklist
--changed-from origin/main` (4 anchored files, 11 anchors, 0 lost),
check:test-source-alias, check:nul-bytes,
check:cross-package-test-inputs, check:issue-citations, and under `ui/`
check:i18n-keys, check:vi-mock-specifiers, check:vi-mock-inherit,
check:vi-mock-override-shape. `git grep -n "Studio landing"
docs/qa/platform-checklist/areas`: history entries only, plus
`studio-authoring.json:35` and `:2290`, already stale on main (the
studio-home button).
- overlap-check: exit 1, only for objectstack-ai#37249 and objectstack-ai#37169 (objectstack-ai#37169 has since
landed; see Overlaps).

**Third part (seat answers to N1 and N3, then objectstack-ai#37241's and objectstack-ai#37168's
merges), final head `1c7f29cc`:**
- After merging main with objectstack-ai#37241 and objectstack-ai#37168 (`2ae0823f`) and rebuilding
(VERDICT command-exit 0): `views/studio-design`, `layout/`,
`console/docs`, `console/home`, `console/ai`, `console/__tests__`,
`hooks/`, `PackagesPage*`, `PackageFormDialog*`,
`PermissionMatrixEditor*`, console `components/` and `pages/`,
`packages/i18n/src/__tests__`: Test Files 1162 passed (1162); Tests
10870 passed, 13 skipped; VERDICT command-exit 0. type-check
`@object-ui/i18n`, `@object-ui/app-shell`, `@object-ui/console`: VERDICT
command-exit 0. Exit 0 at this head: check:test-source-alias,
check:nul-bytes, check:cross-package-test-inputs, check:i18n-stale-fill,
check:keyed-text-bounds, check:platform-checklist,
check:issue-citations, check-changeset-no-major, check-empty-changeset,
check-adr-0087-registration, `check-platform-checklist --changed-from
origin/main`, and under `ui/` check:i18n-keys, check:i18n-drift,
check:unreferenced-sources, check:phantom-deps,
check:vi-mock-specifiers, check:vi-mock-inherit,
check:vi-mock-override-shape.
- After a fresh closure build (VERDICT command-exit 0): `layout/`,
`console/home`, `console/ai`, `RequireAiSurface`, `hooks/`,
`StudioEntryRedirect*`, `notFound-26708`, console `StudioRoute*`: Test
Files 376 passed (376); Tests 3153 passed; VERDICT command-exit 0.
- Mutation through `scripts/ablation-replace.mjs`:
`useNewPackageDoorPath` forced to the Setup path (`true ||
hasCapabilities(…)`) → 2 failed / 43, exactly the two Studio-only door
cases; restored to the HEAD blob, `git diff HEAD` empty.
- type-check `@object-ui/app-shell` and `@object-ui/console`: VERDICT
command-exit 0. eslint on the 7 touched files: 0 errors. Exit 0:
check:test-source-alias, check:nul-bytes,
check:cross-package-test-inputs, and under `ui/` check:i18n-keys,
check:i18n-drift, check:unreferenced-sources, check:phantom-deps,
check:vi-mock-specifiers, check:vi-mock-inherit,
check:vi-mock-override-shape.

**Second part of the round (the 「Add app」 rulings, then three main
merges), head `64e7071b`:**
- At `048a5a84` (rulings + first merge): `layout/`, `console/home`,
`console/ai`, `RequireAiSurface`, `hooks/`, `packages/i18n/src`,
`PackageCustomizationsPanel`, console `StudioRoute*`: Test Files 486
passed (486); Tests 5161 passed, 13 skipped; lock VERDICT command-exit
0.
- At `fe78cd2b` (after objectstack-ai#37185's merge), the overlap:
`views/studio-design`, `layout/`, `console/home`, `console/ai`,
`console/__tests__`, `PackagesPage*`, `PackageFormDialog*`,
`PermissionMatrixEditor*`, `sameServerFetch*` (objectstack-ai#37185's ratchet),
`apps/console/src/components`, `packages/i18n/src`: Test Files 1 failed,
888 passed (889); Tests 2 failed, 8291 passed. The failures were two
cases of `layout/__tests__/designModeMenuSave-36363`, a file this branch
does not touch; run alone it read 47 passed (47), and it passed again in
the run below, so it was load in the big run.
- At `45e4a5eb` (after objectstack-ai#37204's merge and a rebuild):
`apps/console/src/components`, `layout/`, `console/home`, `console/ai`,
`RequireAiSurface`, `packages/i18n/src/__tests__`: Test Files 436 passed
(436); Tests 4837 passed, 13 skipped; lock VERDICT command-exit 0. (A
first attempt at this run hit a 590 s cap before its verdict and is not
counted.)
- Mutation checks through `scripts/ablation-replace.mjs` (blob moved,
restored to the HEAD blob, `git diff HEAD` empty): the hook's entry key
back to `build-with-ai` → `SidebarAppMenu-36112` 7 failed / 32; the
empty-list guard removed (`offerAddApp = mayAddApp`) → 1 failed / 32,
the guard case.
- CI on `45e4a5eb` failed `Type Check UI` at `check:i18n-keys`: Home's
chip kept `defaultValue: 'New in Studio'` against the new en value.
Fixed at `64e7071b` with the chip's default and the eight packs
(`check:i18n-drift`); locally at `64e7071b`, exit 0: `check:i18n-keys`,
`check:i18n-drift`, and the job's other static steps
(`check:phantom-deps`, `check:self-import`,
`check:unreferenced-sources`, `check:doc-example-readers`,
`check:side-effects-array`, `check:spec-symbols`,
`check:icon-record-names`, `check:designer-field-key-parity`,
`check:action-forward-parity`, `check:esm-specifiers`,
`check:handler-key-reads`, `check:metadata-write-doors`,
`check:control-bytes`, `check:shell-escape-residue`,
`check:vi-mock-specifiers`, `check:vi-mock-inherit`,
`check:vi-mock-override-shape`, `check:test-path-roots`,
`check:prompt-keys`), plus `check:keyed-text-bounds` and
`check:i18n-stale-fill`. Vitest over `packages/i18n/src`,
`console/home`, `console/ai`, `RequireAiSurface`,
`SidebarAppMenu-36112`: Test Files 213 passed (213), Tests 2745 passed,
13 skipped, lock VERDICT command-exit 0.
- type-check at `45e4a5eb` after `pnpm --filter '@object-ui/console^...'
build` (VERDICT command-exit 0): `@object-ui/i18n`,
`@object-ui/app-shell` (src + `tsconfig.test.json`),
`@object-ui/console` passed, VERDICT command-exit 0. eslint
`--no-inline-config` on this part's 6 ui files: 0 errors.
- Gates at `45e4a5eb`, all 0: check:test-source-alias, check:nul-bytes,
check:cross-package-test-inputs, check:i18n-stale-fill,
check:keyed-text-bounds, check:platform-checklist,
check:issue-citations, check-changeset-no-major, check-empty-changeset,
check-adr-0087-registration, `check-platform-checklist --changed-from
origin/main` (11 anchors, 0 lost). `pnpm --filter @object-ui/i18n
gen:zh-hant` after the merges: every target already current.
- 18.6.0 studio-namespace comparison at `fe78cd2b`, unchanged: 71/71
published landing keys present in `en` and `zh`; 35 missing, all already
missing on main; 0 values changed vs main, 4 never-released keys
removed, 38 added.

**First part of the round (L1 and contract-review fixes):**

- Targeted vitest at `4121473e` (after the first main merge, K 26), one
locked run over `apps/console/src`, `packages/i18n/src`,
`views/studio-design`, `metadata-admin/PackagesPage*`,
`PackageFormDialog*`, `PermissionMatrixEditor*`,
`console/__tests__/AppContent*`, `console/home/__tests__/HomePage*` and
`layout/`: Test Files 1 failed, 1050 passed (1051); Tests 1 failed,
10456 passed, 13 skipped. The failure was the moved new-app pin's own
harness (it navigated to the bare package path, which only the console
route table expands); fixed at `4121473e` by landing on the package's
Studio home as the removed home did, then 3 passed (3).
- After the second main merge (`df4a65cb`) and the guard fix
(`329ddefc`), the overlap re-run under the lock: `views/studio-design`,
`apps/console/src/components`, `PackagesPage*`, `PackageFormDialog*`,
`PermissionMatrixEditor*`, `packages/i18n/src`, `consoleTopBar*`,
`AppContent*`: Test Files 594 passed (594); Tests 6016 passed, 13
skipped; lock VERDICT command-exit 0.
- Mutation checks, each through `scripts/ablation-replace.mjs` (anchor 1
→ 0, blob verified moved, restored to the HEAD blob with `git diff HEAD`
empty), at `4121473e`:
- 「组织」 written into the zh `perm.readOnly.artifact.hint`:
`PermissionMatrixEditor.readOnlyHintCopy-12171` 1 failed / 3 ("no table
names the organization axis").
- `!isKernel` removed from the detail gate (`PackagesPage.tsx:1271`): 1
failed / 6, the kernel case only.
- `!isCustomizationPackage(id)` removed: 1 failed / 6, the `.custom`
pair case only.
- The bookmark forward reverted to `SETUP_NEW_PACKAGE_PATH`:
`StudioEntryRedirect.test` 1 failed / 11, the Studio-only bookmark case.
- The not-found exit reverted to `SETUP_PACKAGES_PATH`: `notFound-26708`
1 failed / 14, the Studio-only case.
No dist leg was needed: these tests import app-shell by relative path,
and the ui vitest config aliases `@object-ui/i18n` to its `src`.
- type-check at `329ddefc` after `pnpm --filter '@object-ui/console^...'
build` (lock VERDICT command-exit 0): `@object-ui/i18n`,
`@object-ui/app-shell` (src and `tsconfig.test.json`, which lists all
six new or changed test files) and `@object-ui/console` passed, lock
VERDICT command-exit 0.
- eslint `--no-inline-config` on this round's 11 changed ui files: 0
errors, 15 warnings.
- Gates at `329ddefc`, exit captured before any pipe, all 0:
check:test-source-alias, check:nul-bytes,
check:cross-package-test-inputs, check:i18n-stale-fill,
check:keyed-text-bounds, check:platform-checklist,
`check-platform-checklist --changed-from origin/main` (11 anchors, 0
lost). At `4121473e`, also 0: check:issue-citations,
check:doc-authoring, check:gitlink-declared, check-changeset-no-major,
check-empty-changeset, check-adr-0087-registration (2 non-breaking
changesets), check-closing-keyword-parity,
check:changeset-gate-self-tests, and the edited
`ui/scripts/check-eager-closure-budget.mjs`'s tests (6 files, 305
passed). `check:i18n`: PREREQUISITE NOT MET locally (the CLI build
closure is not built); it reads the platform translation bundles, which
this round does not touch; its evidence is CI. `dispatch-gates --ran`:
57 of 74 derived families not run locally, declared; their evidence is
this head's check-runs.
- **i18n against the published `@object-ui/i18n@18.6.0`** (`npm pack`,
read by AST, nothing evaluated), on the merged tree: all 71 published
`engine.studio.landing*` keys are present in `en` and `zh`; 35 published
keys are missing at this head and all 35 are already missing on
`origin/main`; against `origin/main` this PR changes 0 values, removes
exactly the four never-released keys, and adds 38 per language
(`engine.packages.customizations.*`,
`engine.studio.notFound.packageList`,
`engine.studio.notFound.allMetadata`).
</details>

## Acceptance notes

- The environment-wide list the home drew across all installed apps (one
list, a total, grouped by app) is now shown per app only, in each
read-only base's detail in Setup → Packages.
- "Customized" now has two meanings. The Setup detail counts tab,
field-group and action-layout arrangements with overrides and
extensions; the All metadata header still draws `customizationTotal`
(overrides + extensions, `customizationMarks.ts:96-97`, drawn at
`DirectoryPage.tsx:246-249`), and the same total gates the list filters
in `ResourceListPage` and `useListOrderedNames`. Not aligned here:
adding arrangements to that total would stop the header equalling the
sum of its per-type tiles and change which lists offer the customized
filter. Not aligned here (seat answer A): follow-up card filed: objectstack-ai#37236.
objectstack-ai#37236 has since been ruled B (7158100447): 「已定制」 stays overrides +
extensions, and the Setup detail's count changes there to match. Until
it lands, the Setup detail counts arrangements as described here.
- The new-package doors outside Studio (Home's no-agent chip, the `/ai`
screen's door, 「Add app」's 「New blank app」 and with it the no-apps
screen) make the same choice as Studio's entry, through
`useNewPackageDoorPath` (seat answer to N1): Setup's New Package for a
holder of `setup.access` + `manage_platform_settings`, the All metadata
area for an author who may enter Studio but not open that page. They sit
outside the entry gate's provider, where `useStudioEntryPermissions`
holds nothing, so they read the session's own
`usePermissions().hasCapabilities`, which fails open on an unreported
set as the doors' own authoring gate does (the Setup app still refuses a
non-holder). That is the doors' doctrine, judged A in contract review
7162083002 ④: the door is only a link, and the server still refuses a
package create without `manage_metadata` (`package-routes.ts:102-106`).
Pinned by the unreported-set case in `HomePage.noAgentsBuildChip-26614`
(the real `MePermissionsProvider`, no `systemPermissions`, the chip
opens Setup's New Package; control: a reported set without the pair
opens `/studio/~all/metadata`).
- A Studio-only author (`studio.access` + `manage_metadata`, without the
Setup pair) has no screen that creates a package at this head: 「New
blank app」 opens All metadata, which has no New Package, where on main
the same door opened the dialog inside Studio. The server still admits
the create. This follows ruling N1 (a), and waits for objectstack-ai#37134 / objectstack-ai#37139.
- Two console test files pinned only the home's frame and are deleted:
`StudioRoute.landingI18n.test.tsx` (its header crumb) and
`StudioRoute.searchPalette-11863.test.tsx` (⌘K on the home; ⌘K inside
Studio is objectstack-ai#36900). The other StudioRoute pins now stub the entry.
- Duplicate pins named for deleted tests (AGENTS.md, ruling 6120820653):
the new-package deep link is pinned in the `PackagesPage` admin harness;
the customization counts, rows and labels in
`PackageCustomizationsPanel.test.tsx`; the org-scope entry by
`StudioDesignSurface.packageLessFlows-11553` and the menu pins from
objectstack-ai#36899; the permission hint copy and the new-app step moved, above. The
home's own layout, ordering, Duplicate form, recent cards and Manage
pins have no remaining surface to pin.
- Possibly orphaned now that the frame is gone, not removed here:
`AppHeader` `variant="studio"` and `CommandPalette` `scope="studio"`
(objectstack-ai#36900 may reuse the scope).
- 「Build with AI」 is gone from the 「Add app」 menu and the no-apps screen
(ruling 7153161067). Home's 「Build an app」 chip still targets bare
`/studio`, and Home's own 「Build with AI」 drawer button is untouched;
objectstack-ai#37227 / objectstack-ai#37249 removes both from Home.
- The kept-unread released studio keys stay as they are this round (the
seat made dropping them optional under the 19.0.0 ruling);
`home.buildWithAI` is still read by Home and is untouched.
- Recents are read local-first, and the server copy arrives after first
render (`RecentItemsProvider`). On a device with no local copy,
`/studio` falls back before that copy arrives; "opens the package you
were last in" holds on a device that already has it.
- The 68 published landing keys are kept and unread.
`check-i18n-dead-keys` (report-only, not in CI) will list them as
candidates, and a later change can decide to retire them.
- `docs/qa/platform-checklist/FOLLOW-UPS.md` still names
`BuilderLanding` in a dated follow-up entry; it is a log and was left as
written.

## Verification

Walked on a live stack at `a21c7b6f` (the previous head). Server: `pnpm
-C examples/app-showcase exec objectstack dev --seed-admin -p 4710` (CLI
and showcase closure built in a worktree). Console: this branch's
`ui/apps/console` under Vite on 4711, proxied to it. Signed in as the
seeded admin and driven with Playwright; key screens confirmed by
screenshot.

| Entry | Observed |
|:---|:---|
| `/studio`, nothing remembered | →
`/apps/com.objectstack.setup/component/developer/packages?face=admin` |
| `/studio?new=package` (old bookmark) | → same page, `new=package`
dropped, New Package dialog open |
| `/apps/setup/component/automation/packaged-actions` (no package) | →
Setup → Packages (admin face) |
| `/studio/no_such_pkg_36908` | 「Package not found…」 with 「Open the
package list」 → Setup → Packages |
| ObjectStack Showcase (code) row → detail | "Customizations in this
environment", "No changes in this environment yet", Customize in Studio
→ `/studio/com.example.showcase/data` |
| `/studio` after visiting that package | → back into
`/studio/com.example.showcase/data…` (remembered) |
| Sidebar app menu → 「Add app」 | New in Studio (the label at `a21c7b6f`;
「New blank app」 now) → `…packages?face=admin&new=package`; clicked, it
lands there with the dialog open |
| `/ai` (no assistant on this stack) | 「New in Studio」 (the label at
`a21c7b6f`; 「New blank app」 now) → `…packages?face=admin&new=package` |
| New Package dialog → Create package | →
`/studio/com.default.walk-pkg-36908/data` |
| That authored package's detail | no customizations section (count 0);
Open in Studio present |
| `/studio/~all/metadata` | renders the All Metadata Types area |

Not walked live, each pinned by unit tests:
- Home's 「New blank app」 chip (「New in Studio」 at `a21c7b6f`): its
condition does not hold on this seeded stack
(`HomePage.noAgentsBuildChip-26614`, `HomePage.desktopNoApps-36732`).
- A non-administrator's landings (bare `/studio`, the old bookmark and
the not-found button for a Studio-only principal): no such principal is
seeded (`StudioEntryRedirect.test.tsx`,
`StudioDesignSurface.notFound-26708`); their target `~all` renders
above.
- `studio:builder`: the `@objectstack/studio` app does not load on a
stock boot (`registerStudioComponents.builderLazy-11798`).

This round's changes were not walked live: the Studio-only exits, the
moved pins and the changesets change no administrator-visible entry
above; the 「Add app」 menu's new contents (no 「Build with AI」, 「New blank
app」 always) and the relabel are pinned in `SidebarAppMenu-36112` and
`HomePage.desktopNoApps-36732`.

---
_Generated by [Claude
Code](https://claude.ai/code/session_01QSeKYkEULEjF814KSPBLVC)_
<!-- signed: repo:objectstack#4 · os-justin ·
session_01QSeKYkkwuF6UuFtu85Yd5H -->

---------

Co-authored-by: Claude <noreply@anthropic.com>
Nenzyz pushed a commit to Nenzyz/objectstack that referenced this pull request Dec 1, 2026
…sentence name the app start page (objectstack-ai#37340)

repo:objectstack#4 · os-justin · session_01QSeKYnagJvGbCtNg2PhvgW
Fixes objectstack-ai#37207

Clause-②: yes (widening) — one new published language-pack key,
console.ai.unavailableErrorDesktop, in all eleven packs
Metadata-protocol: none

## 维护者速读

- 用户能看到什么变化:桌面端无权进入 Studio 时的「返回首页」按钮改为「返回应用起始页」;AI
服务连不上时的提示句末尾也从「返回首页」改为「返回应用起始页」,与下方按钮一致;手机端不变。
- 为什么做:属于「去掉顶栏和平台首页那一层」专题的收尾,补上上一轮同类改动没覆盖到的两处文字。
- 出错会怎样:最坏是某种语言的提示句读起来不顺,跳转目标没有任何改动;可直接撤回。
- 要你做什么:无。

## What changes

Measured first, at `origin/main` fbb62e1 (after objectstack-ai#37166 landed):
`StudioRoute.tsx` `StudioAccessRequired` read
`empty.appAccessDeniedHome` 「Back to home」, and
`console.ai.unavailableError` ended "or head back home." on every width.
This follows objectstack-ai#37204's desktop/phone split (`usePhoneViewport`, under 768
px is a phone).

- `ui/apps/console/src/components/StudioRoute.tsx`: the Studio refusal's
way-home link reads `layout.appSwitcher.backToHome` 「Back to app start
page」 from 768 px up, and `empty.appAccessDeniedHome` 「Back to home」 on
a phone. `usePhoneViewport` comes from the `@object-ui/app-shell`
barrel, which already exports it. The link target (`useHomePath()`) is
unchanged.
- `ui/packages/app-shell/src/console/ai/AiUnavailable.tsx`: with
`hasError`, the sentence reads the new
`console.ai.unavailableErrorDesktop` from 768 px up ("Couldn't reach the
AI service. It may be temporarily offline — try again, or go back to the
app start page."). A phone keeps `console.ai.unavailableError`. It now
names the same place as the button under it.
- `@object-ui/i18n`: `console.ai.unavailableErrorDesktop` added once in
each of the 11 packs. Each translation reuses that pack's own
`layout.appSwitcher.backToHome` wording for "app start page" (zh-Hans
返回应用起始页). No key removed or renamed.

Clause-② measured: leaf keys per pack, base fbb62e1 → head, read by
importing each pack file: en 5040→5041, zh-Hans 5040→5041,
zh-Hant/ja/ko/de 5034→5035, fr/es/pt-BR 5191→5192, ru 5348→5349, ar
5662→5663. The new key is present in 11 of 11 packs and absent from all
11 at base. Only this one key is added. Props, exports and targets are
unchanged.

Read first, by risk:
1. `ui/packages/app-shell/src/console/ai/AiUnavailable.tsx`: the nested
`phone` ternary inside `hasError`.
2. `ui/apps/console/src/components/StudioRoute.tsx`: the link label
ternary.
3. `ui/packages/i18n/src/locales/de.ts` (and the other non-en packs):
the translated sentence.

Two-minute check: at a desktop width, sign in as a user without
`studio.access` and open `/studio`. The button reads 「Back to app start
page」. Narrow the window under 768 px and it reads 「Back to home」.

## Tests

One pin each, at desktop width, with the phone as the CONTROL. Each is a
new top-level `describe` in the surface's existing harness:
- Studio refusal: `StudioRoute.test.tsx` "/studio refused: the way home
names where it goes, by viewport". At 1280 px the link is 「Back to app
start page」 and no 「Back to home」 link exists. CONTROL at 375 px: 「Back
to home」.
- AI unreachable: `RequireAiSurface.test.tsx` "the unreachable-service
sentence names where its way home goes, by viewport". It renders
`AiUnavailable` with `hasError`. Desktop:
`console.ai.unavailableErrorDesktop`, not `console.ai.unavailableError`.
CONTROL on a phone: the reverse.

Existing pins moved to the desktop wording, because jsdom's window is
1024 px: `StudioRoute.test.tsx` `WAY_HOME`, and
`StudioRoute.accessNotice-12035.test.tsx` `wayHomeIn` (now reads
`layout.appSwitcher.backToHome` from each pack).

<details><summary>Affected suites (vitest, from ui/), head
51f74e6</summary>

```
pnpm exec vitest run --maxWorkers=2 RequireAiSurface StudioRoute console-namespace-3546 all-locales-key-parity en-zh-key-parity AiChatPage
 Test Files  44 passed (44)
      Tests  386 passed (386)
os-verify-lock: VERDICT command-exit 0
```
</details>

<details><summary>Ablations (one-shot, restored to the HEAD
blob)</summary>

Studio refusal. In `StudioRoute.tsx`, `node
scripts/ablation-replace.mjs` swapped the desktop arm's
`layout.appSwitcher.backToHome` for `empty.appAccessDeniedHome` (anchor
x1 -> x0, blob eb1f535 -> 95423fd7baec):
```
× on a desktop, where home is an app's start page, it reads as the app pill's row does
(+ 7 existing desktop refusal cases that read WAY_HOME)
Tests  8 failed | 12 passed (20)
ablation-replace: ok restored: blob == HEAD (eb1f535) and `git diff HEAD` is empty
```
The phone CONTROL stayed green.

AI unreachable. In `AiUnavailable.tsx`, the swap was
`console.ai.unavailableErrorDesktop` → `console.ai.unavailableError`
(anchor x1 -> x0, blob be89670 -> dada400011a4):
```
× on a desktop, where the button opens an app's start page, the sentence says so
Tests  1 failed | 13 passed (14)
ablation-replace: ok restored: blob == HEAD (be89670) and `git diff HEAD` is empty
```
Neither ablation needed a build step: both test files import the mutated
source directly (console's own file; app-shell by relative path).
</details>

<details><summary>Type-check, i18n gates, derived gates</summary>

```
pnpm --filter '@object-ui/console^...' build   VERDICT command-exit 0
pnpm --filter @object-ui/app-shell --filter @object-ui/console --filter @object-ui/i18n run type-check   VERDICT command-exit 0
ui: check:i18n-keys EXIT=0 (5898/5898 literal keys resolve) · check:i18n-drift EXIT=0 (1 key added, 0 en values changed) · check:i18n-dead-keys EXIT=0
node scripts/pm/overlap-check.mjs: VERDICT clean exit 0 (origin/main; objectstack-ai#37249 shares the 11 locale packs and merges cleanly)
dispatch-gates --commands (after the changeset): 41 derived families; 40 run locally, all 40 exit 0
NOT MEASURED: pnpm --dir ui exec vitest run scripts/ (the ui scripts/ suite). The first run was SIGKILLed by the
  shared box's OOM killer; two lock retries got queue-timeout (exit 99) behind another session's full dogfood run.
  This diff edits no ui/scripts file. CI runs the suite.
dispatch-gates --ran: 41 derived, 40 run, 1 UNRUN (the line above)
```
</details>

## Acceptance notes

- `RequireAiSurface`'s `redirectTo` prop can still send the button
somewhere other than `useHomePath()`. objectstack-ai#37204 already accepted this for
the button label, and the new sentence takes the same assumption.
- Stale prose that the card lists as not in scope (`runtime-config.ts`
`hideSingleAppSwitcher`, `approvals.json`, `studio-authoring.json:35`):
none of those files is in this diff, so none is touched.

## Verification

Local: affected suites, both ablations, type-check of the three touched
packages, the ui i18n gates, the derived gate families. CI owns the full
farm.

---

_Generated by [Claude
Code](https://claude.ai/code/session_01QSeKYnagJvGbCtNg2PhvgW)_

---------

Co-authored-by: Claude <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation pm:awaiting-merge PR only: landing waits on the maintainer's own review and merge (SKILL.md 复核 ②); never on an issue size/m tooling Fix lands in tooling, not a product package — enters pm:queue only with Unblocks: or a named surface

Projects

None yet

Development

Successfully merging this pull request may close these issues.

首页(手机与「暂无应用」空状态)去掉「用 AI 搭建」和「搭建应用」两个入口

3 participants