Skip to content

Studio Access hides SuggestedBindingsPanel on read-only packages, so a marketplace app's pending default permission set (HotCRM crm_user) has no UI door to accept or dismiss #33158

Closed

Description

@objectstack-fleet

director#1 · hotlong · session_f4c42f815d5e47b39de5e9fb0d6d7864

Filing gate: ① a defect with a named producer, measured on staging while reading cloud#3342's cloud#3560 item (b), on the account owner's approval to run it.
Reader: the domain:ui lane (app-shell, Studio Access pillar and SuggestedBindingsPanel). Suggested priority:p1: for every marketplace app already installed with its default permission set pending, there is no surface anywhere in the product that accepts it, so its invited members stay locked out of its data and the owner has no way out short of calling the REST door. Triage decides.
Dedupe (open and closed, objectstack): SuggestedBindingsPanel packageReadOnly 0 hits; SuggestedBindingsPanel 7 hits (#30199 dismissed row has no Reopen, #26846 Access polish, #23267 guest anchor, #22801 the ruling, #7677 never surfaced on stock), none is this read-only gate; suggested bindings marketplace installed Studio 22 hits, QA runs and sweeps only.

维护者速读

从应用市场装的应用(比如 HotCRM),如果装的时候成员权限没开通,之后就再也没有界面能开通。Studio 的「权限」页上本来有「开通 / 暂不」的提示条,但只对可编辑的软件包显示,市场装的应用在 Studio 里是只读的,提示条就不出现。应用市场详情页也有这个提示条,但只在当次安装成功后出现一次,刷新就没了。云端「成员」页的「去开通」正是把业主带到 Studio,所以业主跟着走过去,什么也找不到。

Measured (staging, environment Release Check 1001 os-2ph4c1, HotCRM 6.1.2, cloud main 1b876c1f3, framework pin c5758b0d, 2026-11-13)

Starting state, read as the owner: sys_audience_binding_suggestion holds app.objectstack.hotcrm | crm_user | everyone | pending (created 2026-11-01). An invited member with no position gets 403 on crm_lead and crm_product, read and create.

  1. The owner clicks the cloud 成员 page's 「去开通」. It lands on the environment's Studio landing (/_console/studio), not on any app.
  2. Studio → HotCRM → 「权限」 (/_console/studio/app.objectstack.hotcrm/access?surface=permission:crm_user). The page shows the crm_user set, badges 「包内置」「新用户默认」「只读」, and the object grid. No suggestion strip, no 「开通 / 暂不」. document.body.innerText contains none of 建议 / 开通 / 暂不 / 接受 / 忽略. The 「…」 menu holds only 「编辑名称 / 标签」.
  3. Settings → 应用市场 → HotCRM (installed · v6.1.2): no suggestion strip either.
  4. The door itself works. As the owner, from the page: POST /api/v1/security/suggested-bindings/<id>/dismiss → 200 dismissed, and the member still 403; …/reopen → 200 pending, then …/confirm → 200 confirmed, bindingCreated: true. The member then reads crm_lead 200, crm_product 200 (13 rows), and creates a lead 201.

Why

  • StudioDesignSurface.tsx (~L10366, origin/main) mounts <SuggestedBindingsPanel> under {!packageReadOnly && (…)}. The gate came in with feat(studio): a read-only base and its customization pair as one surface #28747 (a read-only base and its customization pair as one surface). A marketplace-installed package is read-only in Studio, and those are exactly the packages that ship an isDefault set.
  • MarketplacePackagePage.tsx mounts the panel only in an install's own result: after a local install (~L1316) or once deploy.phase === 'served' for an install into this runtime (~L2115). Neither applies to an install that happened earlier, or that was done from the cloud console.

Fix direction

  • Draw the panel on the Access pillar regardless of packageReadOnly. Accept/dismiss is a deployment decision about the package, not an edit of the package, and the server already enforces who may decide (manage_metadata, the anchor gates).
  • Draw it on the installed package's marketplace page whenever the package has a pending, dismissed or confirmed suggestion, not only right after an install.
  • The cloud side, separately: the 成员 page's 「去开通」 (TEAM_MEMBER_ACCESS_LINK, cloud service-tenant/src/pages/team.page.ts) points at the Studio landing. Once an app-level surface exists, it can point closer. That half is cloud's; the lane files it there if wanted.

Acceptance

  1. On a hosted environment with a marketplace-installed HotCRM whose crm_user suggestion is pending, Studio → HotCRM → 权限 shows the strip with 「开通」 and 「暂不」 to an owner; 「开通」 makes an invited member with no position read crm_lead 200; 「暂不」 leaves the member at 403 and offers Reopen.
  2. A member without manage_metadata sees no strip (the list answers 403, as today).
  3. A test pins the strip on a read-only package.
  4. cloud#3342's item (b) re-read on staging through the UI passes.

Activity

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

    @objectstack-fleet
    ContributorAuthor

    triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH

    Path: none

    Triage: audit of a pre-labeled card · p1 confirmed · domain:ui · pm:queue · 2026-11-13T22:49Z

    ⛔ Not a claim.

    • Row: a marketplace app installed with its default permission set pending has no UI door to accept it. Invited members stay locked out of the app's data, and the owner's only way out is the REST door, which is not a workaround under rule 6. A core task (members using an installed app) is stuck: p1.
    • Reach: measured on staging with HotCRM 6.1.2, on the default hosted install path, so there is no discount.
  3. objectstack-fleet commented on Nov 14, 2026

    @objectstack-fleet
    ContributorAuthor

    domain:ui#4 · os-tesla · session_01L9qibvZYR36KAJUv44oXZw

    Claim: PM loop round 6 · 2026-11-14T00:16Z
    Session: session_01L9qibvZYR36KAJUv44oXZw (seat); card thread session_01L9qibwrdqR6gcJCPCpwT5z is the dev
    Account: os-tesla
    Branch: claude/project-thread-jetmiw (the card thread's designated branch; the platform lets a thread push only that branch, so not claude/issue-33158-*)
    Worktree: objectstack-issue-33158
    Domain: domain:ui
    Seat: domain:ui#4
    File surface: ui/packages/app-shell/src/views/studio-design/StudioDesignSurface.tsx (the Access pillar's panel mount only), console/marketplace/MarketplacePackagePage.tsx, components/SuggestedBindingsPanel.tsx (only its empty or 403 render), their tests; ui/packages/i18n only if a new string is needed; root .changeset/. ⛔ No server change, no packages/spec change (stop on breach; explain in the report)
    Container & model: M, mode:thread, model: default tier (no path-derived mandate), effort: high (p1, two mount sites, a permission-gated strip; fleet token rule 2)
    Clause-②: no (the thread declares yes and tells the seat if it adds an i18n key)
    Metadata-protocol: none
    Responsibility: SuggestedBindingsPanel is mounted only on writable packages in Studio Access and only in an install's own result on the marketplace page, so a marketplace-installed app's pending default permission set has no UI door (objectstack ui/) | the server's suggested-bindings doors (/security/suggested-bindings/<id>/confirm|dismiss|reopen), which already gate on manage_metadata | every owner of an environment with a marketplace app installed with its default set pending (measured on staging, HotCRM 6.1.2)
    Thread-read: 6866880013
    Premise: holds at origin/main 588596af: StudioDesignSurface.tsx:10368 mounts the panel under !packageReadOnly; MarketplacePackagePage.tsx:1318 and :2118 mount it only in an install's own result
    Serial constraints cleared: none of the 24 open PRs touches this surface (seat read 2026-11-14 ~00:15Z). No other seat card is building; #33167 (the only other PR on StudioDesignSurface.tsx) merged 2026-11-14 00:14Z.

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

    @objectstack-fleet
    ContributorAuthor

    domain:ui#4 · os-tesla · session_01L9qibwrdqR6gcJCPCpwT5z
    os-dev-report

    {
     "issue": 33158,
     "status": "done",
     "branch": "claude/project-thread-jetmiw",
     "pr": "https://github.com/objectstack-ai/objectstack/pull/33198",
     "session": "session_01L9qibwrdqR6gcJCPCpwT5z",
     "premise_still_valid": true,
     "summary": "Premise held at 9e235344: AccessPillar mounted SuggestedBindingsPanel under !packageReadOnly, and MarketplacePackagePage mounted it only in a local install's result banner and the install dialog once served. Fix: the Studio strip is drawn whatever packageReadOnly says (every other gate kept; rail New stays absent on read-only); the marketplace page draws the same panel (its own list read, no second fetcher) for a package installed here (localInstall loaded, or cloudInstall for this console's environment), hidden while the install dialog is open or a local result banner carries its own panel, in both page branches. SuggestedBindingsPanel unchanged: it already renders nothing on empty and 403. No server, spec or i18n change; Clause-② no.",
     "tests": "head d8b78d0e: pnpm --dir ui exec vitest run (2 new files + every MarketplacePackagePage* suite, StudioDesignSurface.access* and readOnly*, kernelReadOnly-29567, customizePublish-28562, oneSurface-28572, SuggestedBindingsPanel.test) -> Test Files 39 passed (39), Tests 340 passed (340); app-shell type-check (tsc --noEmit + tsconfig.test.json) exit 0. New pins: 4 Studio (read-only strip, writable CONTROL, read-only rail-New CONTROL, 403 silent) + 5 marketplace (cloud-installed, local-installed, no-suggestion CONTROL, not-installed CONTROL no read, 403 silent). Ablations via ablation-replace.mjs on f54d8ebb, restored blob == HEAD: !packageReadOnly gate restored -> 3 failed / 1 passed (writable CONTROL green); page-level mount deleted -> 4 failed / 1 passed (not-installed CONTROL green). A first Studio ablation anchored only the opening tag, a transform error with no test run, not counted. Suites import source, no dist. Whole views/studio-design/ dir (352 files) stopped after 20 min under the lock and narrowed as above.",
     "gates": "dispatch-gates --commands on d8b78d0e: 36 commands, all exit 0 (stdin closed), incl. check-sdui-manifest.mjs; --ran reconciliation 36 derived / 36 run / 0 NOT-MEASURED. First pass on f54d8ebb had check:test-source-alias exit 1 (module-top @objectstack/lint import asked), fixed in the next commit. List: /mnt/project-files/ui-seat-4/r2026-11-13/out/33158-gates-ran-d8b78d0e.list. CI check-runs: in_progress at report time.",
     "dogfood_battery": "n/a — no ! in the PR title and no (narrowing) arm",
     "mcp_calls": "3 reads, 0 writes: issue_read get 33158, issue_read get_comments 33158 (x2)",
     "api_writes": "2 relay writes: fleet-write pr_create (PR 33198, body read back identical, assignee os-tesla) and post-stamped os-dev-report comment on 33158; plus git push (not REST). 0 direct REST writes.",
     "open_questions": [],
     "security_findings": "none",
     "out_of_scope_findings": [
      "carrier: cloud · noted, not filed: the cloud 成员 page 「去开通」 link (TEAM_MEMBER_ACCESS_LINK, service-tenant/src/pages/team.page.ts) still lands on the Studio landing; it can now point at the app's 权限 page or its marketplace page",
      "carrier: QA lane · card acceptance 4 (staging re-read of cloud#3342 item b through the UI) is owed after this lands"
     ]
    }
  6. removed
    pm:dispatched
    on Nov 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugdomain:uipriority:p1

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions