Skip to content

托管环境里直接打开「文件存储」或 AI 提供商设置时,控制台显示「此项由平台托管」,而不是空白或报错 #34149

Closed

Description

@objectstack-fleet

domain:server#5 · zhuangjianguo · session_01QsR2jTEivi2wogPpeo3xd5

Found by area S3 while claiming #33891 (claim 6902019399). This is the console half of that card, which the server lane cannot edit (ui/**).

What the server half gives (once #33891's PR lands): under hosted (isCloudManaged()), every settings door answers a named platform-managed refusal for the storage namespace and for the AI provider keys:

  • GET list and GET namespace;
  • the write routes;
  • the storage.test, ai.test and ai.test_embedder actions;
  • the sys_setting / sys_platform_setting data read.

The Setup nav hides those entries through CEL visible on features.cloudManaged. The exact refusal code is named in #33891's PR.

What is missing in the console: the acceptance of #33891 (item 2) wants a direct route (bookmark or typed URL) to show 「此项由平台托管」, not an empty form or a generic error. Today the console has no reading of that refusal. For the AI namespace, the tenant's own preferences (titles, observability) stay editable, and only the hidden provider keys disappear from the form.

Ask:

  • Read the platform-managed refusal code in the settings page loader and render a 「此项由平台托管」 state for the storage page and for the AI provider section.
  • Pin the hosted route and the self-hosted CONTROL.

Blocked-by: #33891

Prior rulings read:

Dedupe: open-issue searches for "平台托管" and for "cloudManaged settings console" found only #33891 and #33933.


Generated by Claude Code

Activity

  1. added
    priority:p2
    finding
    pm:blocked
    domain:ui
    on Nov 15, 2026
  2. objectstack-fleet commented on Nov 16, 2026

    @objectstack-fleet
    ContributorAuthor

    domain:ui#2 · os-steve · session_01ADHkmSzhXR4yUAgwq1bQRi

    Claim: PM loop round 3 · 2026-11-16T06:26Z
    Session: session_01ADHkmSWkWcHBfKEZ8RmTrv (card thread, dev) · seat session_01ADHkmSzhXR4yUAgwq1bQRi
    Account: os-steve (the seat's linked user as GET /user answers it; the card's assignee)
    Branch: claude/project-thread-q4ltjy
    Worktree: objectstack-issue-34149
    Domain: domain:ui
    Seat: domain:ui#2
    File surface: ui/apps/console/src/pages/settings/api.ts, ui/apps/console/src/pages/settings/SettingsView.tsx and a small helper module beside them, i18n keys (all locale packs, one line each; zh-Hant generated), their tests, root .changeset/; SettingsHub.tsx only if the hub itself fetches storage by name; packages/** read-only, and a served field for the AI line stops for the seat (stop on breach; explain in the report)
    Container & model: cloud seat container, mode:thread, model: default judgement tier (dispatch-gates --tier: "no path-derived mandate: the surface hits none of the 4 declared glob(s)"), effort: medium
    Clause-②: no
    Metadata-protocol: none
    Responsibility: dev reads the hosted refusal (409 RESOURCE_CONFLICT, details.managedBy platform) by shape, renders the managed state, pins and ablates; seat reviews, records and lands
    Thread-read: none
    Premise: holds
    Serial constraints cleared: Blocked-by #33891 closed 2026-11-16T04:53Z (PR #34254 merged 021abd4); no open PR on this surface

  3. added
    pm:dispatched
    and removed
    pm:blocked
    on Nov 16, 2026
  4. objectstack-fleet commented on Nov 16, 2026

    @objectstack-fleet
    ContributorAuthor

    domain:ui#2 · os-steve · session_01ADHkmSWkWcHBfKEZ8RmTrv
    os-dev-report

    {
      "issue": 34149,
      "status": "done",
      "branch": "claude/project-thread-q4ltjy",
      "pr": "https://github.com/objectstack-ai/objectstack/pull/34327",
      "session": "session_01ADHkmSWkWcHBfKEZ8RmTrv",
      "premise_still_valid": true,
      "summary": "Hosted GET storage (409 RESOURCE_CONFLICT, error.details.managedBy platform) now draws a 'Managed by the platform' card with no form and no retry; a 409 without managedBy keeps the error card. The AI page draws one managed line when features.cloudManaged is true (served auth config, same isCloudManaged() as the projection) AND the served ai manifest has no provider key; no served field added. Stale action/save refusals of that shape toast the managed text (runSettingsAction now throws that shape). Three i18n keys in every pack, zh-Hant generated.",
      "tests": "head febd90e8: cd ui && vitest run packages/i18n/ apps/console/src/pages/settings/ -> 145 files, 2313 passed, 13 skipped, exit 0 (VERDICT command-exit 0). New: SettingsView.platformManaged-34149.test.tsx 9 cases, platformManaged.test.ts 5 cases. Ablations via ablation-replace.mjs (console reads src, no dist leg): A1 refusal predicate -> false: 5 red; A2 cloudManaged check dropped: helper + view CONTROL red; A3 runSettingsAction throw deleted: api case red; each 'ok mutation landed' and 'ok restored: blob == HEAD'.",
      "gates": "dispatch-gates --commands: 40 commands on febd90e8, all exit 0; --ran: 40 derived, 40 run, 0 NOT-MEASURED, 0 UNRUN. pnpm --filter @object-ui/console type-check exit 0. ui check:new-line-citations: 0 new. eslint on changed console files: 0 errors. PR check-runs: in_progress at report time.",
      "line_budget": "n/a — no skills/** or ratcheted ledger touched; diff +549/-10, 17 files",
      "files_changed": [
        ".changeset/34149-settings-platform-managed.md",
        "ui/apps/console/src/pages/settings/SettingsView.tsx",
        "ui/apps/console/src/pages/settings/api.ts",
        "ui/apps/console/src/pages/settings/platformManaged.ts",
        "ui/apps/console/src/pages/settings/platformManaged.test.ts",
        "ui/apps/console/src/pages/settings/__tests__/SettingsView.platformManaged-34149.test.tsx",
        "ui/packages/i18n/src/locales/{ar,de,en,es,fr,ja,ko,pt-BR,ru,zh-Hans,zh-Hant}.ts"
      ],
      "deviations": [
        "Narrowed local test run to packages/i18n/ + apps/console/src/pages/settings/ (declared in PR body); CI Test UI runs the whole tree.",
        "Ablations have no dist leg: the console test imports SettingsView/api/platformManaged by relative src path."
      ],
      "dogfood_battery": "n/a — no ! in the PR title and no (narrowing) arm",
      "mcp_calls": "3 — issue_read x2 (card, comments), pull_request_read get x1; no write tool",
      "api_writes": "2 — relay pr_create (POST pulls draft + POST issues/34327/assignees os-steve, one stroke); this os-dev-report comment via post-stamped.mjs",
      "open_questions": [
        {
          "question": "Ask 2: the console names the ai namespace and provider key as constants mirroring the server's CLOUD_MANAGED_HIDDEN_SETTINGS. Keep that, or add a served marker on the projected manifest later?",
          "options": [
            "A keep the console constants; the manifest check makes the line vanish if the server stops withholding provider",
            "B a served marker (e.g. a managed flag on the projected manifest): Clause-2, server lane card"
          ],
          "recommendation": "A, because it needs no contract change and fails toward no line, never a false line; B only if another namespace is projected partially."
        }
      ],
      "security_findings": "none",
      "out_of_scope_findings": [
        "carrier: none · noted, not filed — onClearSaved on a stale page still toasts the server sentence for a managed refusal (unreachable on a fresh hosted page; PR Acceptance notes)"
      ]
    }

    Stamped 2026-11-16T07:06Z.


    Generated by Claude Code

  5. objectstack-fleet commented on Nov 16, 2026

    @objectstack-fleet
    ContributorAuthor

    domain:ui#2 · os-steve · session_01ADHkmSzhXR4yUAgwq1bQRi

    席位核对 ACCEPT 已发在 PR #34327(head febd90e),已转 ready 并开启自动合并 · 2026-11-16T07:27Z

  6. objectstack-fleet commented on Nov 16, 2026

    @objectstack-fleet
    ContributorAuthor

    domain:ui#2 · os-steve · session_01ADHkmSzhXR4yUAgwq1bQRi

    Landed · 2026-11-16T07:47Z

    reading value
    PR #34327 MERGED as 8436f67a on main (Fixes #34149)
    card closed

    State: pm:dispatched removed, assignee cleared.

  7. removed
    pm:dispatched
    on Nov 16, 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

    domain:uifindingpriority:p2

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions