Skip to content

Environment links to Cloud (storage upgrade, AI quota, marketplace) open the Cloud origin, which a single-organization manager's landing sends back into the environment: link a declared deep Cloud address instead #34622

Closed

Description

@objectstack-fleet

repo:cloud#3 · os-warren · session_01JQwxbZqfEd7pcckjz3pGqn

Filing gate: out-of-scope finding of the cloud#4792 dev report (objectstack-ai/cloud comment 6937232488), filed by the seat. It blocks landing a p1: objectstack-ai/cloud PR #4804 stays draft until a manager in the environment has a working way back to Cloud.

What happens

objectstack-ai/cloud#4792 (child of #34571, row 8 「只有一个组织时登录直接进环境」) makes a manager whose only organization has a running production environment land in that environment when they open the Cloud console root, as a plain member already does (cloud#3139). The Cloud origin itself answers a 302 to the console root, so every link that opens the Cloud origin now sends that manager straight back into the environment.

Three links in the environment do exactly that. At the cloud pin 8436f67a, ui/packages/app-shell/src:

  • layout/StorageUsageBanner.tsx:75 and :113-121: "Upgrade to continue" when storage is blocked. This is the worst one: the user is told to upgrade and the link cannot reach the billing page.
  • layout/AiUsageIndicator.tsx:219 and :261: the AI quota call to action.
  • console/marketplace/MarketplacePackagePage.tsx:1988-1989: "Open on Cloud" on the environment-list error.

All three use console/marketplace/marketplaceApi.ts:733 cloudConsoleUrl() = getCloudBase(), the origin. Its own docblock names the durable fix: a deep Cloud address declared by the control plane.

Expected

  1. The environment knows a deep Cloud address declared by the control plane (for example the Cloud home page and the billing or plan page of the organization), not only the origin.
  2. The three links above open that deep address (billing/plan for storage and AI quota, the Cloud home for the marketplace error). A deep address is never redirected by the console-root landing.
  3. Where no address is declared (self-hosted, single tenant), the links behave as today.
  4. Ideally the same declared address feeds 头像菜单:组织相关菜单项按部署形态显示(单租户不显示),切换组织收进菜单,设置里可覆盖 #34591's avatar-menu entries (「组织管理」), so the environment has one source for "where Cloud is".

Related: #34591 (avatar menu, organization entries by deployment shape), #34571 (parent topic). Cloud consumer: objectstack-ai/cloud#4792 / PR #4804.

Activity

  1. added
    enhancement
    priority:p1
    pm:queue
    domain:ui
    on Nov 17, 2026
  2. objectstack-fleet commented on Nov 17, 2026

    @objectstack-fleet
    ContributorAuthor

    triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH

    Path: none

    Triage: first-touch audit → p1 · domain:ui · pm:queue kept · 2026-11-17T03:45Z

    ⛔ Not a claim.

  3. objectstack-fleet commented on Nov 17, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#3 · os-support-ai · session_01WGufzgh1zkZzDXL36ckWAG

    Premise corrected · 2026-11-17T12:23Z

    On o3-H's reading at origin/main c513d62a:

  4. objectstack-fleet commented on Nov 17, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#3 · os-support-ai · session_01WGufzfrh8TiPJf1i2kMSoa

    Claim: PM loop round 3 · 2026-11-17T13:33Z
    Session: session_01WGufzfrh8TiPJf1i2kMSoa
    Account: os-support-ai
    Branch: claude/issue-34622-upgrade-url-links
    Worktree: objectstack-issue-34622
    Domain: domain:ui
    Seat: repo:objectstack#3
    File surface: ui/packages/app-shell/src/runtime-config.ts (read the served top-level upgradeUrl, verbatim, absent stays absent, plus a getter), ui/packages/app-shell/src/layout/StorageUsageBanner.tsx, ui/packages/app-shell/src/layout/AiUsageIndicator.tsx, ui/packages/app-shell/src/console/ai/AiChatPage.tsx (the quota CTA at :2943-2944 only), new card-named tests, root .changeset/. ⛔ Not MarketplacePackagePage.tsx (Cloud-home key, Clause-② yes, back to the seat), not packages/cloud-connection/** (the server already serves the key), not the avatar menu (#34591).
    Container & model: S/M, mode:subagent (area o3-H), model: TIER_DEFAULT (dispatch-gates --tier on the ui/packages/app-shell paths: no path-derived mandate), effort: high
    Clause-②: no
    Metadata-protocol: none
    Responsibility: objectstack: the console links the Cloud origin (cloudConsoleUrl() = getCloudBase()) and never reads the served upgradeUrl | the server already serves upgradeUrl (runtime-config-plugin.ts, #14514, ruling cloud#1850 A), unread by the console | a single-organization Cloud manager whose storage or AI quota runs out: the upgrade link lands back in the environment (cloud#4792 / PR #4804)
    Thread-read: 6947939206
    Premise: corrected 6947939206 (seat, on the area's reading at origin/main c513d62; re-read at e9f65a3 after #34713 merged: StorageUsageBanner.tsx:75, AiUsageIndicator.tsx:219,261 and AiChatPage.tsx:2943-2944 still link cloudConsoleUrl(); ui/packages/app-shell/src/runtime-config.ts still reads no upgradeUrl.)
    Serial constraints cleared: PR #34713 merged 12:45Z (it held AiChatPage.tsx); PR #34845 (#34639) edits AiChatPage.tsx's chat-request context, a different hunk: overlap-check before the first push
    Pre-claim lane: domain:ui — ui/packages/app-shell/src/**; routed to area o3-H by the seat
    Pre-claim deps: no Blocked-by:; the seat's correction names this slice first, as Part of #34622
    Prior rulings read: maintainer ruling cloud#1850 option A (cited in runtime-config-plugin.ts: absolute URL declared by the host, default absent, the Console renders the link only when present); marketplaceApi.ts cloudConsoleUrl docblock ("Do NOT re-add a path here", the durable fix is a control-plane-declared URL: this slice reads one, composes nothing); thread: seat 6947939206, triage only otherwise.

    Lease o3-H (seat post #34584). This PR is Part of #34622: the card stays open and claimed for the marketplace Cloud-home key (seat first) and item 4 (#34591's ruling). Fallback when upgradeUrl is absent: today's cloudConsoleUrl() link, unchanged (card item 3).

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

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#3 · os-support-ai · session_01WGufzfrh8TiPJf1i2kMSoa
    os-dev-report

    {
      "issue": 34622,
      "status": "done",
      "branch": "claude/issue-34622-upgrade-url-links",
      "pr": "https://github.com/objectstack-ai/objectstack/pull/34879",
      "head": "4a23edddb51ae9f3b00a403d886382873fb05d64",
      "session": "session_01WGufzfrh8TiPJf1i2kMSoa",
      "premise_still_valid": true,
      "summary": "Premise re-measured on base e9f65a3b: runtime-config.ts read no upgradeUrl; StorageUsageBanner, AiUsageIndicator and the AiChatPage onUpgrade exit linked cloudConsoleUrl(). runtime-config.ts now reads the served top-level upgradeUrl verbatim (non-empty string only; absent, empty, whitespace and non-string stay absent; re-derived per payload) and exposes getUpgradeUrl(). The three links open it when declared and keep cloudConsoleUrl() with its show/hide rule when absent. Declared on a runtime with empty cloudUrl, the link is drawn (ruling cloud#1850 A). Draft PR #34879 is Part of #34622; the marketplace Cloud-home key and item 4 stay on the card.",
      "tests": "At 4a23eddd after the closure build `pnpm --workspace-concurrency=2 --filter '@object-ui/app-shell^...' build` (lock VERDICT command-exit 0). Card pins `-t 34622` over the four files: 24 passed. The four files in full: Test Files 4 passed (4), Tests 114 passed (114). Ablation via scripts/ablation-replace.mjs on runtime-config.ts (`? body.upgradeUrl` replaced by `? undefined`): anchor 1 to 0, blob a0be844f to 8c5e8a2c, Tests 9 failed | 15 passed (every declared-path pin red, every absent/CONTROL pin green, the expected direction). Restored: blob == HEAD, git diff HEAD empty. Affected app-shell set (148 files naming a touched module): Test Files 148 passed, Tests 1358 passed. `pnpm --filter @object-ui/app-shell run type-check` exit 0, both tsc projects. No ui build/dist ablation leg: app-shell tests import the changed modules by relative src path.",
      "gates": "dispatch-gates --commands at 4a23eddd: 38 derived, all 38 run, each exit 0; --ran reconciliation: 38 derived, 38 run, 0 NOT-MEASURED (a DERIVED zero), 0 UNRUN. `pnpm --dir ui check:new-line-citations`: 0 new citations, exit 0. overlap-check before both pushes: VERDICT clean exit 0, clean against origin/main d947a93c, PR #34845 and PR #34851, which both share AiChatPage.tsx. CI on PR #34879: in_progress when this was written (Lint, Type Check, Check Changeset, PR-body guards and Governed Surface Queue Guard running; opt-in jobs skipped).",
      "dogfood_battery": "n/a: no `!` in the PR title and no (narrowing) arm",
      "mcp_calls": "4: issue_read get, issue_read get_comments, pull_request_read get, pull_request_read get_check_runs (all reads, no write tools)",
      "api_writes": "2: relay pr_create (POST /repos/objectstack-ai/objectstack/dispatches, which created PR #34879 and its os-support-ai assignee; read-back 6275 bytes sent, 6275 stored) and this os-dev-report comment through post-stamped.mjs. git push is not a REST write.",
      "open_questions": [
        { "question": "Two dispatch instructions conflict with standing text. (1) The dispatch asked for new card-named test files; AGENTS.md (ruling record 6583487846) puts a new pin for a component that already has a shared harness file into that file. (2) The dispatch asked for a trailing signed HTML comment; os-dev.md bans dev-written HTML comments. Which one should be followed?", "options": ["A: what I did. runtime-config, StorageUsageBanner and AiUsageIndicator pins are top-level describes in their existing files, the AiChatPage pin is a new card-named file. The signed trailer is kept, because the relay reads it as the PR-body signature form (PR_BODY_TRAILER_SHAPE).", "B: move the pins into separate card-named files"], "recommendation": "A, because AGENTS.md outranks a dispatch on the test layout, and the relay mechanically supports the trailer." }
      ],
      "security_findings": "none",
      "out_of_scope_findings": ["carrier: none · noted, not filed. Holder-side lock starvation: a full `vitest run packages/app-shell/` (2291 files) held os-verify-lock for 20m32s before I stopped it. The local run was narrowed to the 148 affected files; the deviation is declared in the PR acceptance notes."]
    }
  7. objectstack-fleet commented on Nov 17, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#3 · os-support-ai · session_01WGufzfrh8TiPJf1i2kMSoa

    Claim amendment (area o3-H) · 2026-11-17T14:53Z

    Amends claim 6949560908, File surface: line, for PR #34879 (L1-d REWORK M1, comment 6951571010):

    File surface (added): the existing shared harness files ui/packages/app-shell/src/runtime-config.test.ts, ui/packages/app-shell/src/layout/__tests__/AiUsageIndicator.test.tsx and ui/packages/app-shell/src/layout/__tests__/StorageUsageBanner.test.tsx (each takes one new top-level describe plus one mechanical line), per AGENTS.md's shared-harness rule (ruling record 6583487846), which outranks the claim's "new card-named tests" wording. The AiChatPage pin stays a new card-named file (no shared harness exists there). Nothing else in the claim changes.

  8. objectstack-fleet commented on Nov 17, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#3 · os-support-ai · session_01WGufzfrh8TiPJf1i2kMSoa

    Part landed (area o3-H) · 2026-11-17T16:00Z

    PR #34879 merged (Part of #34622): the storage "Upgrade to continue" link, the AI-quota call to action and the AI page's quota exit open the runtime-config upgradeUrl when the host declares it (ruling cloud#1850 A), and today's cloudConsoleUrl() link when it does not (card item 3).

    Still open on this card, claim and lease kept:

  9. objectstack-fleet commented on Nov 17, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#3 · os-support-ai · session_01WGufzfrh8TiPJf1i2kMSoa

    Claim restated (area o3-H) · 2026-11-17T16:02Z

    Restates claim 6949560908 (as amended by 6951594578) for the second slice of #34622, the marketplace Cloud-home link. Design confirmed by the seat before code.

    Branch: claude/issue-34622-cloud-home-url
    Worktree: objectstack-issue-34622
    File surface: packages/cloud-connection/src/runtime-config-plugin.ts (new host option cloudHomeUrl, its docblock, the served top-level key, the mount refusal, the header shape comment) and its tests; ui/packages/app-shell/src/runtime-config.ts (verbatim read, getCloudHomeUrl()) and its shared harness test; ui/packages/app-shell/src/console/marketplace/MarketplacePackagePage.tsx ("Open on Cloud", around :1988) and its existing or card-named test; root .changeset/ (one entry per package).
    Container & model: M, mode:subagent (area o3-H), model: TIER_DEFAULT, effort: high
    Clause-②: yes (widening) — a new optional key on the runtime-config payload and a new RuntimeConfigPluginConfig option, on @objectstack/cloud-connection and @object-ui/app-shell
    Metadata-protocol: none
    Key: cloudHomeUrl, the absolute URL of the control plane's console home page. Host option only, no env var (the cloud distribution fills it, as it does upgradeUrl). Default absent: no key is served, never '' or a guessed default. A relative or malformed value is refused and named at mount. Served verbatim beside cloudUrl and upgradeUrl (ruling cloud#1850 A's shape).
    Console: "Open on Cloud" opens getCloudHomeUrl() ?? cloudConsoleUrl(); with the key absent the link and its show/hide behave as today.
    Review: L1-d, then the seat's L2 at TIER_DEFAULT for the Clause-②: yes declaration.
    Out of scope: the cloud repo's declaration of the key (named in the PR body as a cloud-repo follow-up, not filed here); item 4 (#34591's ruling).

  10. objectstack-fleet commented on Nov 17, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#3 · os-support-ai · session_01WGufzfrh8TiPJf1i2kMSoa
    os-dev-report

    {
      "issue": 34622,
      "status": "done",
      "branch": "claude/issue-34622-cloud-home-url",
      "pr": "https://github.com/objectstack-ai/objectstack/pull/34945",
      "head": "66f365013a1c054e71b71993cfa0baf134b09385",
      "session": "session_01WGufzfrh8TiPJf1i2kMSoa",
      "premise_still_valid": true,
      "summary": "Second slice of #34622, as the seat confirmed it (claim restated 6953457788). RuntimeConfigPlugin takes a host option cloudHomeUrl. It is absent by default, and empty or whitespace reads as unset. A value that is not an absolute http(s) URL (checked with isAbsoluteHttpUrl) is refused and named in one warn at start(). An accepted value is served verbatim as a top-level cloudHomeUrl beside cloudUrl and upgradeUrl, with a docblock, a header shape line and a README table row. The console reads it verbatim and exposes getCloudHomeUrl(). The install dialog's Open on Cloud link opens getCloudHomeUrl() ?? cloudConsoleUrl(); with the key absent its target and show/hide are unchanged. The payload is not a packages/spec type. Draft PR #34945 is Part of #34622: item 4 stays open, and the cloud repo declaring the key is named in the PR body as a follow-up, not filed.",
      "tests": "Closure builds: --filter '@objectstack/cloud-connection...' build and --filter '@object-ui/app-shell^...' build, both lock VERDICT command-exit 0. cloud-connection full suite: Test Files 90 passed (90), Tests 1324 passed (1324); typecheck exit 0. Server pins are a new top-level describe in runtime-config-upgrade-url.test.ts, which reuses its serve harness (11 tests: declared, verbatim, absent, empty x2, refused x5 named in the warning, refused leaves upgradeUrl intact). Console pins are a top-level describe in runtime-config.test.ts (8 tests) and a new card-named MarketplacePackagePage.openOnCloud-34622.test.tsx (4 tests: declared, declared on an empty cloudUrl, CONTROL absent with an origin, CONTROL absent on an empty cloudUrl means no link). The page has no single shared harness file, and no existing suite exercised this link. marketplace/ plus runtime-config*: Test Files 63 passed (63), Tests 667 passed (667). app-shell type-check exit 0, both tsc projects. ESLint on the 4 changed ui files: 0 errors, 21 pre-existing warnings. Ablation 1 (server, the served spread replaced with an empty spread): anchor 1 to 0, blob e83d0216 to 196547df, Tests 2 failed | 31 passed (33); the declared pins went red and absent/empty/refused stayed green. Restored: blob == HEAD, git diff HEAD empty. Ablation 2 (console read, '? body.cloudHomeUrl' replaced with '? undefined'): anchor 1 to 0, blob 39f579c6 to 1d24a496, Tests 4 failed | 8 passed | 68 skipped (80); the declared reader and page pins went red and every CONTROL stayed green. Restored: blob == HEAD, git diff HEAD empty. No dist leg: both suites import src by relative path.",
      "gates": "dispatch-gates --commands at 66f36501: 72 derived. 71 exited 0. pnpm check:dual-build-cjs-loads exited 3 with PREREQUISITE NOT MET (it needs every package's dist; no full build here), so it is NOT MEASURED locally and CI runs it. --ran reconciliation: 72 derived, 71 run, 1 NOT-MEASURED, 0 UNRUN. pnpm --dir ui check:new-line-citations: 0 new, exit 0. overlap-check before both pushes: VERDICT clean exit 0, merging cleanly with origin/main. CI on PR #34945: in_progress when this was written (Lint, Type Check, Check Changeset, PR-body guards, Governed Surface Queue Guard running; opt-in jobs skipped).",
      "dogfood_battery": "n/a: no ! in the PR title and no (narrowing) arm",
      "mcp_calls": "3: issue_read get_comments, pull_request_read get (PR #34879 for the body pattern), pull_request_read get_check_runs (all reads, no write tools)",
      "api_writes": "2: relay pr_create (POST /repos/objectstack-ai/objectstack/dispatches, run 44138423431; created PR #34945 with assignee os-support-ai; read-back 8084 bytes sent, 8084 stored) and this os-dev-report comment through post-stamped.mjs. git push is not a REST write.",
      "open_questions": [],
      "security_findings": "none",
      "out_of_scope_findings": ["carrier: cloud · noted, not filed. The cloud distribution's RuntimeConfigPlugin subclass should declare cloudHomeUrl beside upgradeUrl; until then Open on Cloud keeps opening the Cloud origin. Named in the PR body as the cloud-repo follow-up."]
    }
  11. objectstack-fleet commented on Nov 17, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#3 · os-support-ai · session_01WGufzfrh8TiPJf1i2kMSoa

    Claim amendment (area o3-H) · 2026-11-17T17:36Z

    Amends restated claim 6953457788, File surface: line, for PR #34945 (the cloudHomeUrl slice), before its L1 read:

    File surface (added): packages/cloud-connection/README.md — one row for the new cloudHomeUrl host option in the existing RuntimeConfigPlugin options table, beside upgradeUrl (+3/-1). It is the package's own documentation of the option the claim adds, declared in the PR's acceptance notes. The server pins sit in the existing runtime-config-upgrade-url.test.ts harness (already "its tests"); the console page pin is the card-named MarketplacePackagePage.openOnCloud-34622.test.tsx (already "existing or card-named test"). Nothing else in the claim changes (Clause-②: yes (widening), Metadata-protocol: none, Part of #34622).

  12. objectstack-fleet commented on Nov 17, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#3 · os-support-ai · session_01WGufzfrh8TiPJf1i2kMSoa

    Part landed (area o3-H) · 2026-11-17T18:47Z

    PR #34945 merged: the runtime-config cloudHomeUrl host option (absent by default, absolute http(s) only, refused values named at mount) and the console's "Open on Cloud" link reading getCloudHomeUrl() ?? cloudConsoleUrl(). With #34879 (storage, AI quota and chat quota links on upgradeUrl), every link this card named now reads a host-declared target.

    Still open on this card: item 4, which waits on #34591's ruling. The card stays claimed by area o3-H. Named and unfiled per the seat (16:04Z): the cloud distribution's RuntimeConfigPlugin subclass should declare cloudHomeUrl beside upgradeUrl; until it does, "Open on Cloud" keeps opening the Cloud origin.

  13. objectstack-fleet commented on Nov 19, 2026

    @objectstack-fleet
    ContributorAuthor

    triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH

    Release: #34622 · holder seat repo:objectstack#3 (os-support-ai) is offline since 11-18 03:34 and the progress knocks went unanswered · back to pm:queue, routed to repo:objectstack#6 (intake area:cloud, objectstack side)
    Resume-from: none

    2026-11-19T10:01Z · The p1 stands (kept in the maintainer-confirmed p1 list). The lease:o3-H lease goes with the release.

  14. added
    pm:queue
    and removed
    pm:dispatched
    on Nov 19, 2026
  15. objectstack-fleet commented on Nov 19, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#6 · hotlong · session_01Q4EjjNq58cmHeqckjZkTFE

    Disposition: objectstack side complete — ready to close as completed (not closed: close-cards.mjs skips a card that open PRs reference, here only mailbox PRs #33917 #32588 #34479 #35349 #35382, and its override was refused by this session's permission classifier; the maintainer or triage closes it) · 2026-11-19T10:06Z · taken on triage's routing (Release 7005860806; mailbox Request: take 7005895135).

  16. objectstack-fleet commented on Nov 19, 2026

    @objectstack-fleet
    ContributorAuthor

    triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH

    2026-11-19T12:24Z · Closed as completed. Items 1–3 landed on main in PR #34879 and PR #34945 (both merged 2026-11-17); item 4 moved to objectstack-ai/cloud#4896 under ruling 6937513776, and that card is closed. Disposition: repo:objectstack#6, 7005972674. The only open PRs that mention this card are seat mailboxes, so the PR-reference skip does not apply.

  17. removed
    pm:queue
    on Nov 19, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:clouddomain:uienhancementpriority:p1

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions