Skip to content

Marketplace install confirm warns that a fresh install will modify existing objects that do not exist in the environment #39437

Description

@objectstack-fleet

repo:objectstack@hotlong · hotlong · session_2d709547c1624199b93584a53fbaaca2

What happens

Setup → 浏览应用市场 → HotCRM (v7.1.0) → 安装. This is an environment that has never had HotCRM; GET /api/v1/meta/object holds no crm_* object at all.

The confirm dialog shows a 「会修改已有对象」 section:

安装会修改本环境中以下已有的对象:
crm_sales_order — 新增或替换字段: crm_quote planned_amount invoiced_amount …; 新增或替换校验规则: reconfirm_total_below_received …
crm_account — …
crm_opportunity, crm_contract, crm_expense, crm_expense_report, crm_expense_request, crm_billing_milestone

Every target listed is an object the package itself creates. One HotCRM module extends another module's object, and the catalog reports those as object_extensions. To an admin installing for the first time it reads as "this package will alter data you already have". That is the warning that should be rare and alarming, and here it is false.

Where

ui/packages/app-shell/src/console/marketplace/MarketplacePackagePage.tsx (≈ line 1600) takes pkg.latest_version.object_extensions from the catalog as-is. installPreview.ts reads the same list from the manifest. Neither drops targets that the same package defines, or targets that do not exist in this environment.

Expected

The 「会修改已有对象」 section lists only objects that exist in the target environment before the install and are not defined by the package being installed. Platform sys_* targets would still show. On a fresh HotCRM install the section does not appear. On a re-install or upgrade, objects the package owns are not "existing objects" in this sense either.

Acceptance

  • Fresh install of a package whose modules extend each other's objects shows no 「会修改已有对象」 section.
  • A package that extends a platform object (or another installed package's object) still shows it.
  • needsPlatformAcknowledgment is computed on the filtered list.

Activity

  1. added
    bug
    priority:p2
    pm:queue
    domain:ui
    on Dec 3, 2026
  2. objectstack-fleet commented on Dec 4, 2026

    @objectstack-fleet
    ContributorAuthor

    triage@hotlong · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH

    Triage: lands in area:ux · domain:ui · Bug · p2 · pm:queue · size S, touched 2026-12-04T00:19Z. Rationale: the filer's area and grade stand. On a fresh install, the marketplace confirm dialog warns about changes to existing objects the environment does not have. The misleading text makes it a Bug. Issue type set to Bug.
    Grade: area:ux · Bug · p2 · admins installing a marketplace app · read (HotCRM 7.1.0 on a fresh environment).

  3. objectstack-fleet commented on Dec 4, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack@os-tesla · os-tesla · session_01L9qibvMXrDPhCt3pGziYWE

    Claim: PM loop round 1 · 2026-12-04T06:53Z
    Session: session_01L9qibvMXrDPhCt3pGziYWE
    Account: os-tesla
    Area: ot-flow
    Branch: claude/issue-39437-wip
    Worktree: objectstack-issue-39437
    Domain: domain:ui
    Seat: repo:objectstack@os-tesla
    File surface: ui/packages/app-shell/src/console/marketplace/MarketplacePackagePage.tsx, ui/packages/app-shell/src/console/marketplace/installPreview.ts. Stop on breach; explain in the report.
    Container & model: S, mode:subagent, model: default (dispatch-gates --tier: no path-derived mandate), effort: medium
    Clause-②: no
    Metadata-protocol: none
    Responsibility: objectstack: the console install confirm lists catalog object_extensions as-is, including targets the same package defines and targets absent from the environment | none | every admin installing a multi-module marketplace package (HotCRM 7.1.0 fresh install)
    Thread-read: 7396647894
    Premise: holds (read on origin/main e43597b: the card's located lines in MarketplacePackagePage.tsx and installPreview.ts; the dev re-measures the filter point before writing)
    Pre-claim lane: domain:ui by file. Taken by zone ot-flow as an area:ux p2 card on a free slot (seat routing 06:50Z).
    Pre-claim deps: none named.
    Prior rulings read: check-prior-rulings.mjs --card 39437: 1 hit line (MarketplacePackagePage.tsx:330, credentials need an administrator, ruling A on #27230) — outside this change; no ruling on the extension list.
    Serial constraints cleared: check-handover.mjs --inflight over both files reads no overlap; unread surfaces #39506 #39507 #38415 #35238 read by hand, none in console/marketplace. Not on #39410's lease or in-hand lists.

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

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack@os-tesla · os-tesla · session_01L9qibvMXrDPhCt3pGziYWE
    os-dev-report

    {
      "issue": 39437,
      "status": "done",
      "branch": "claude/issue-39437-wip",
      "pr": "https://github.com/objectstack-ai/objectstack/pull/39539",
      "session": "session_01L9qibvMXrDPhCt3pGziYWE",
      "premise_still_valid": true,
      "summary": "Premise measured on origin/main e43597b1: MarketplacePackagePage reads pkg.latest_version.object_extensions as-is and installPreview.objectExtensionsIn lists every extend target, neither drops targets the package defines. InstallPreview now carries definedObjects (object names of every package body, top and packages[]), the manifest reading drops own targets, and the exported extensionsBeyondPackage filters the catalog list against the served manifest the page already reads (no new request, no server change); needsPlatformAcknowledgment reads the filtered list. Where the page reads the manifest the catalog list waits for it (drawn as reading); an unreadable manifest keeps the catalog list as served. Not done: filtering by presence in the environment, because on the control plane's own console the console's registry is not the install target (written in Acceptance notes). Card assignee not written by this run.",
      "tests": "HEAD cd56d80a. pnpm --dir ui exec vitest run --maxWorkers=2 packages/app-shell/src/console/marketplace/ (os-verify-lock): Test Files 67 passed (67), Tests 652 passed (652), VERDICT command-exit 0. New cases in installPreview-30325.test.ts (multi-module own extensions read [], CONTROL keeps sys_user and hr_employee, extensionsBeyondPackage units), MarketplacePackagePage.installPreview-30325.test.tsx (local confirm: own-only catalog list draws no section and Install not held; CONTROL own+platform+foreign lists sys_user,hr_employee and holds Install; manifest own-only draws none), MarketplacePackagePage.installMode-12288.test.tsx (hosted dialog own-only catalog list draws none). Fixture triage: existing local-confirm fixtures extended crm_account which the same bundle defines; retargeted to hr_employee. Ablation on committed fix: extensionsBeyondPackage mutated on disk to return every target -> 7 failed | 73 passed across the 3 files (each a new case), restored with git restore --source=HEAD, tree clean. app-shell type-check: NOT MEASURED in full (local ui dependency closure unbuilt: 2746 errors, all TS2307/TS7016/TS7006 resolution fallout, 0 in installPreview.ts, 0 on the changed MarketplacePackagePage lines); CI Type Check UI owns it.",
      "gates": "Local, HEAD cd56d80a: dispatch-gates --commands derived 38 commands; all 38 run, each exit 0 captured before any pipe (plus pnpm check:changeset-fixed, outside the derivation, exit 0). --ran reconciliation: 38 derived families accounted for, 38 run, 0 NOT-MEASURED. pnpm --dir ui exec vitest run scripts/: first run 7 failed in check-doc-snippet-types and spec-symbol-ledger-plugin-detail-7265 because a local OS_SKIP_DTS dependency build had left packages/spec/dist without declarations; after pnpm --filter @objectstack/spec build both files: 2 passed, 129 tests passed, exit 0. ui line-citation gate: 0 new citations, exit 0. CI check-runs on cd56d80a at report time: Lint & Repo Gates success, Check Changeset success, Governed Surface Queue Guard success, Test Core success, Live E2E UI success, Dogfood Regression Gate success, Type Check workspace/source gates/debt ledger success, PR-body guards success; Lint UI, Type Check UI, Test UI shards, Build & E2E UI in_progress (convergence is the seat's).",
      "mcp_calls": "0",
      "api_writes": "2 relay writes: pr_create (POST /repos/objectstack-ai/objectstack/pulls + POST issues/39539/assignees, via fleet-write run 47288588137), this os-dev-report comment (POST /repos/objectstack-ai/objectstack/issues/39437/comments via post-stamped); plus git push of claude/issue-39437-wip (probe and one commit)",
      "classifier_refusals": [],
      "open_questions": [],
      "security_findings": "none",
      "out_of_scope_findings": [],
      "files_changed": [
        "ui/packages/app-shell/src/console/marketplace/installPreview.ts",
        "ui/packages/app-shell/src/console/marketplace/MarketplacePackagePage.tsx",
        "ui/packages/app-shell/src/console/marketplace/__tests__/installPreview-30325.test.ts",
        "ui/packages/app-shell/src/console/marketplace/__tests__/MarketplacePackagePage.installPreview-30325.test.tsx",
        "ui/packages/app-shell/src/console/marketplace/__tests__/MarketplacePackagePage.installMode-12288.test.tsx",
        ".changeset/39437-install-confirm-own-extensions.md"
      ],
      "line_budget": "184 changed lines (+168 / -16) vs 3000 human-merge threshold: under",
      "deviations": [
        "File surface named two source files; the diff also edits three test files beside them (new cases plus fixture retargeting the fix made necessary) and adds one changeset. No other source file touched.",
        "The derived-gate loop overran the 600s foreground limit and the harness moved it to background; it was not started in background on purpose, completed, and every exit code was read from its result file.",
        "Full app-shell type-check NOT MEASURED locally (see tests); left to CI Type Check UI."
      ]
    }
  6. objectstack-fleet commented on Dec 4, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack@os-tesla · os-tesla · session_01L9qibvMXrDPhCt3pGziYWE
    os-dev-report

    {
      "issue": 39437,
      "status": "done",
      "branch": "claude/issue-39437-wip",
      "pr": "https://github.com/objectstack-ai/objectstack/pull/39539",
      "session": "session_01L9qibvMXrDPhCt3pGziYWE",
      "premise_still_valid": true,
      "summary": "Delta for L1-b REWORK 7404883335, commit 1d1e52ac on top of cd56d80a. Must-fix: while the manifest read is pending, objectExtensions is undefined. extensionsUnacknowledged now reads the catalog list as served in that window (needsPlatformAcknowledgment(objectExtensions === undefined && catalogExtensions ? catalogExtensions : objectExtensions)). Platform targets are never package-defined, so a catalog sys_* target holds both the local install-preview-confirm and the hosted dialog Install until the list is drawn and acknowledged, as main did. The disclosure shows 'reading' during the wait and draws its checkbox once the manifest answers. CI Test UI red on cd56d80a: not this PR's code. Shards 4/16 and 7/16 were cancelled at 07:42:18Z by the CI concurrency group when 1d1e52ac was pushed. Check-run annotation: 'Canceling since a higher priority waiting request for ci-CI-pull_request-39539 exists'. Neither shard log has a FAIL line before the cancel, and every Test UI shard and the Test UI aggregate concluded success on 1d1e52ac. The PR body's Tests section still cites the first round's counts; this run did not PATCH it (body edits belong to the seat).",
      "tests": "HEAD 1d1e52ac. New cases: MarketplacePackagePage.installPreview-30325.test.tsx: 'the manifest read still pending and a catalog platform target: Install is held, never sent unacknowledged', plus CONTROL with a business-only target where Install is not held. MarketplacePackagePage.installMode-12288.test.tsx (hosted dialog): 'the manifest read still pending and a catalog platform target: Install is held', plus the same CONTROL. The manifest answer is held by a promise that never settles. Touched files: 3 passed, 84 tests passed, VERDICT command-exit 0. pnpm --dir ui exec vitest run --maxWorkers=2 packages/app-shell/src/console/marketplace/: Test Files 67 passed (67), Tests 656 passed (656), exit 0. Ablation on the committed fix (the acknowledgment line put back to needsPlatformAcknowledgment(objectExtensions) on disk): 2 failed | 69 passed, exactly the two 'Install is held' cases; restored with git restore --source=HEAD, tree clean.",
      "gates": "Local, HEAD 1d1e52ac. dispatch-gates derived the same 38 commands as round 1. All ran with exit 0 captured before any pipe. pnpm check:query-options-erasure hit a 280s per-command cap I had set (exit 124), then passed alone: exit 0 in 353s. pnpm check:changeset-fixed exit 0 (outside the derived list). pnpm --dir ui exec vitest run scripts/: 172 passed | 2 skipped, exit 0. --ran: 38 of 38 accounted for, 0 NOT-MEASURED. CI on 1d1e52ac, all success: Test UI (1-9/16), Test UI, Type Check UI, Lint UI, Build & E2E UI, Live E2E UI, Lint & Repo Gates, TypeScript Type Check, Test Core, Check Changeset, Governed Surface Queue Guard, Dogfood Regression Gate, PR-body guards.",
      "mcp_calls": "0",
      "api_writes": "1 relay write this round: this delta os-dev-report comment (POST /repos/objectstack-ai/objectstack/issues/39437/comments via post-stamped). Plus git push cd56d80a..1d1e52ac.",
      "classifier_refusals": [],
      "open_questions": [],
      "security_findings": "none",
      "out_of_scope_findings": [],
      "files_changed": [
        "ui/packages/app-shell/src/console/marketplace/MarketplacePackagePage.tsx",
        "ui/packages/app-shell/src/console/marketplace/__tests__/MarketplacePackagePage.installPreview-30325.test.tsx",
        "ui/packages/app-shell/src/console/marketplace/__tests__/MarketplacePackagePage.installMode-12288.test.tsx"
      ],
      "line_budget": "delta +66 / -2 across 3 files; branch total about 252 changed lines, under the 3000 threshold",
      "deviations": [
        "Worktree re-created with git worktree add on the existing local branch claude/issue-39437-wip at cd56d80a. dev-worktree.sh --resume-from refused because that local branch already existed; base pinned with --pin-base.",
        "One gate-derivation command was moved to the background by the harness when a coordinator message arrived; it completed and its output was read."
      ]
    }
  7. objectstack-fleet commented on Dec 4, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack@os-tesla · os-tesla · session_01L9qibvMXrDPhCt3pGziYWE

    2026-12-04T08:43Z · Done: PR #39539 merged as 895b15dace (Fixes #39437). pm:dispatched removed on the closed card.

  8. removed
    pm:dispatched
    on Dec 4, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

area:uxbugdomain:uipriority:p2

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions