Repository navigation
feat(cloud-connection,app-shell): Open on Cloud opens the runtime's declared cloudHomeUrl - #34945
Conversation
RuntimeConfigPlugin takes a host-declared cloudHomeUrl (absolute http(s), absent by default, refused and named at mount otherwise) and serves it verbatim beside cloudUrl and upgradeUrl. The Console reads it verbatim and the marketplace "Open on Cloud" link opens it, keeping cloudConsoleUrl() and its show/hide rule when the key is absent. Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01WGufzfrh8TiPJf1i2kMSoa
Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01WGufzfrh8TiPJf1i2kMSoa
Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01WGufzfrh8TiPJf1i2kMSoa
📓 Docs Drift CheckThis PR changes 1 package(s): 1 hand-written doc(s) NAME something this change touched and may need an implementation-accuracy re-verification:
What this run could not see
Coarse fallback — 7 page(s) merely mention a changed package (the pre-#9192 predicate, kept for the deliberately-wide backstop): Which tree this was computed onThis run read A worktree cut from an older # while this PR is open — GitHub drops the merge commit once it closes
git fetch origin 1aa289a822ec91ecf662f84dbb83c1cd4beb2456 && git checkout 1aa289a822ec91ecf662f84dbb83c1cd4beb2456
# afterwards, rebuild it from the two parents, which stay fetchable
git fetch origin b8408d82263f2c555305425f7e9d581151469d73 66f365013a1c054e71b71993cfa0baf134b09385 && git checkout -B drift-repro b8408d82263f2c555305425f7e9d581151469d73 && git merge --no-ff 66f365013a1c054e71b71993cfa0baf134b09385
node scripts/docs-audit/affected-docs.mjs --json b8408d82263f2c555305425f7e9d581151469d73
|
|
repo:objectstack#3 · os-support-ai · session_01WGufzgQsdnyS4QdR8stjDa L1 review (L1-d) · 2026-11-17T18:01ZL1: ACCEPT Read against claim 6953457788 on #34622 (restated,
What holds
Must-fixNone. Should-fixNone. Notes
Landing: not governed and green on this exact head. Because of |
|
repo:objectstack#3 · os-support-ai · session_01WGufzgh1zkZzDXL36ckWAG Contract reviewServed-tier: Inputs read: card #34622, its body and all 9 comments (triage 6937603697, premise correction 6947939206, claim 6949560908, slice-1 report 6951029706, amendment 6951594578, part-landed 6953400966, restated claim 6953457788, slice-2 report 6955880029, amendment 6955910260); the body, file list (9 files, +406 −7) and net diff of PR #34945 at the head; the 62 check-runs on the head. Code outside the diff ( ① Derived judgmentsThe diff implies four public-surface changes. It changes no accept set that a metadata author writes to.
Validation is pinned. Five refused values are each pinned as served-absent and named in the mount warning: The runtime-only ruling holds.
Part of, not Closes. The PR body says Gates. All 62 check-runs on the head are ② Semver level
Each changeset body carries Clause-②: yes (widening) — correct. It adds a new optional key to a served payload, a new optional host option, a new optional field on an exported console config type and a new console getter. Every addition is absent by default, and no existing key, option, default or meaning changes. ③ Boundary flags
No must-fix or should-fix finding. Implemented-by: VERDICT: PASS |
|
repo:objectstack#3 · os-support-ai · session_01WGufzfrh8TiPJf1i2kMSoa Landing (area o3-H) · 2026-11-17T18:20Z
State change: ready + auto-merge enabled. |
Requested by Yibo Wang · project thread
Part of #34622
Clause-②: yes (widening)
Metadata-protocol: none
repo:objectstack#3 · os-support-ai · session_01WGufzfrh8TiPJf1i2kMSoa
维护者速读
RuntimeConfigPlugin新增宿主选项cloudHomeUrl(控制面控制台首页的绝对地址),声明后在/api/v1/runtime/config顶层原样下发;控制台读取它,市场安装对话框里的「Open on Cloud」在声明时直接打开该地址。upgradeUrl同一形状,裁决 cloud#1850 A)。packages/cloud-connection/src/runtime-config-plugin.ts(构造函数的接受/拒绝与下发处的 spread)、ui/packages/app-shell/src/console/marketplace/MarketplacePackagePage.tsx(「Open on Cloud」一处)、ui/packages/app-shell/src/runtime-config.ts(cloudHomeUrl读取与getCloudHomeUrl())。pnpm --dir ui exec vitest run -t cloudHomeUrl packages/app-shell/src/runtime-config.test.ts packages/app-shell/src/console/marketplace/__tests__/MarketplacePackagePage.openOnCloud-34622.test.tsx,预期 12 passed。What changes
@objectstack/cloud-connection.RuntimeConfigPluginConfig.cloudHomeUrl?: stringis the absolute URL of the control plane's console home page. It follows theupgradeUrlcontract. It is a host option only, with no env var, because the cloud distribution fills it as it fillsupgradeUrl. By default it is absent: no key is served, never''or a guessed default, and an empty or whitespace-only value reads as unset. A value that is not an absolute http(s) URL, checked with the existingisAbsoluteHttpUrl, is refused, andstart()names the option and the refused value in onewarn, in the same shape as theupgradeUrlrefusal. An accepted value is served verbatim as a top-levelcloudHomeUrlbesidecloudUrlandupgradeUrl. The change adds a docblock in theupgradeUrlstyle, a line in the header response-shape comment, and one table row in the package README.@object-ui/app-shell.runtime-config.tsreads the servedcloudHomeUrlverbatim, the same way it readsupgradeUrl: absent, empty, whitespace-only and non-string values stay absent, and each payload re-derives the key. It exposesgetCloudHomeUrl(). The install dialog's "Open on Cloud" link opensgetCloudHomeUrl() ?? cloudConsoleUrl(). With the key absent, the link's target and its show/hide rule are unchanged.Clause-②: yes (widening)andMetadata-protocol: none, so the level ispatch(AGENTS.md Post-Task Checklist step 3: a kind ofnonetakespatch).packages/spectype, so nothing underpackages/specchanges.Cloud-repo follow-up (not filed here): the cloud distribution's
RuntimeConfigPluginsubclass should declarecloudHomeUrl, the console home page of its control plane, beside theupgradeUrlit already fills. Until it does, the link keeps opening the Cloud origin.Out of scope: item 4 of the card (the avatar menu's organization entries, #34591), and every other
cloudConsoleUrl()caller.Tests
Measured at head
66f36501(the merge oforigin/maind576509contoc24f0407; the incoming commits touch none of these packages). Dependency closures built first:pnpm --workspace-concurrency=2 --filter '@objectstack/cloud-connection...' build(VERDICT command-exit 0) andpnpm --workspace-concurrency=2 --filter '@object-ui/app-shell^...' build(VERDICT command-exit 0).describeinruntime-config-upgrade-url.test.ts, which reuses that file'sserveharness. It covers declared (served verbatim besidecloudUrlandupgradeUrl, with no warning), absent (no key, nothing derived fromcloudUrlorupgradeUrl), empty and whitespace (absent and silent), and five refused values (relative, bare host,javascript:,ftp:), each named in the mount warning. A refused value leaves a declaredupgradeUrland the rest of the payload untouched.@objectstack/cloud-connection: full suite, Test Files 90 passed (90), Tests 1324 passed (1324).typecheckexit 0.describein the sharedruntime-config.test.ts(8 tests), and a new card-namedMarketplacePackagePage.openOnCloud-34622.test.tsx(4 tests). The second is a new file because no MarketplacePackagePage test exercised this link and the page has no single shared harness file: each existing suite is card-named with its own mocks. It covers declared (openscloudHomeUrl, not the origin), declared on an emptycloudUrl(drawn), CONTROL absent (opens the origin), and CONTROL absent on an emptycloudUrl(not drawn).cloudConsoleUrlis the real implementation.packages/app-shell/src/console/marketplace/plusruntime-config*: Test Files 63 passed (63), Tests 667 passed (667).pnpm --filter @object-ui/app-shell run type-checkexit 0, both tsc projects.lint(eslint): 0 errors. The 21 warnings are all pre-existingno-explicit-anylines.Ablations (scripts/ablation-replace.mjs; tests import src by relative path, so no dist leg)
Server: the served spread for
cloudHomeUrlwas replaced with an empty spread. The two declared pins went red, and the absent, empty and refused pins stayed green, which is the expected direction.Console: the read
? body.cloudHomeUrlwas replaced with? undefined. The two declared reader pins and the two declared page pins went red, and every absent/CONTROL pin stayed green.Acceptance notes
packages/cloud-connection/README.md, which documents the runtime-config keys besideupgradeUrl.cloudHomeUrldeclared on a runtime whosecloudUrlis empty, the link is now drawn and opens the declared address. This matches theupgradeUrlslice: when the key is present, the console renders the link.Verification
node scripts/pm/dispatch-gates.mjs --commandsat66f36501: 72 derived families. 71 ran with exit 0.pnpm check:dual-build-cjs-loadsexited 3 with PREREQUISITE NOT MET because it reads every package's builtdist/and this tree has no full build, so it is NOT MEASURED locally and CI runs it. The--ranreconciliation reported 72 derived, 71 run, 1 NOT-MEASURED, 0 UNRUN.pnpm --dir ui check:new-line-citations: 0 new citations, exit 0.node scripts/pm/overlap-check.mjs --branch=claude/issue-34622-cloud-home-urlbefore both pushes: VERDICT clean, exit 0, merging cleanly withorigin/main.Generated by Claude Code