You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Marketplace listing does not show an unmanaged copy as installed: picker and a disabled install button for a package the environment already holds #39881
Found in the new-user walkthrough of objectstack-ai/cloud#5475 (local run-stack.sh stack, Starter published with scripts/ci/publish-starter-marketplace.mjs). After the first open installed com.example.starter unmanaged — package com.example.starter-copy, app CUSTOMERbiz_app, sample rows loaded — the listing page /_console/apps/com.objectstack.setup/system/marketplace/PKG_ID showed the managed/unmanaged picker and a disabled 「安装到云端…」 button, with no installed state. A second POST /api/v1/cloud-connection/install for the same package answers 409 Package 'com.example.starter-copy' already exists, so the page offers an action that can only fail.
Likely cause (read from the code, not traced line by line): the page reads the installed state of the package id (GET /api/v1/cloud-connection/installation, the control plane's install row) and of the managed install; an unmanaged copy is the environment's own base under another id (MANIFEST-copy, ADR-0131 D6) and carries its source only as provenance (installedFrom, the install-local door's copy record), so the page never matches it.
Expected
On a hosted environment that holds an unmanaged copy of the listed package, the listing says it is installed as a copy (naming the copy's base and, when known, its app), offers 「打开应用」, and shows no install mode picker or install button.
Reinstalling as a second copy, if it stays possible at all, is an explicit secondary action with the namespace it would take, not the default.
Acceptance
A console test: a listing whose package the environment holds as an unmanaged copy renders the installed-as-copy state, an open-app action, and no picker / install button.
Same for the managed case unchanged.
Related: objectstack-ai/cloud#5475, objectstack#39871 (the start wizard's scenario-app installs land on the same page when they fall back), objectstack#39874.
Triage: lands in area:cloud · domain:ui · Bug · p2 · pm:queue, touched 2026-12-06T09:20Z. Rationale: the listing misreads installed state only on a hosted environment, where it reads the control plane's install row. The North Star sends a hosted-only problem to area:cloud. The filer gave no grade; p2 because the first open no longer lands here since objectstack-ai/cloud#5475, but the page is still reachable. It belongs with the workbench epic #39871.
Holds (objectstack origin/main 0dafdd8): ui/packages/app-shell/src/console/marketplace/MarketplacePackagePage.tsx (~528-546) sets the installed state only from getCloudInstallationInfo, which reaches packages/cloud-connection/src/cloud-connection-plugin.ts (~1683-1730) and asks only the control plane's install row. The control plane writes none for an unmanaged copy by design (cloud package-install/install.ts ~651-655). The env runtime does record the copy and its sourcePackageId (marketplace-install-local-unmanaged-copies.ts, UnmanagedCopyRecord), and nothing reads it for the listing.
Work is objectstack-side only (cloud-connection probe + app-shell console); no cloud change. Likely reachable on self-host too (not measured).
Corrected: the expected bullet "reinstalling as a second copy … explicit secondary action with the namespace" is unreachable today — the page (~817) and the install door refuse a second copy of the same package whatever namespace is chosen. That bullet is dropped from this card; offering a second copy would be a separate Feature card if wanted.
Claim: PM loop round 1
Session: session_01JQwxba5KWjW8X9oi5KUSoQ
Thread session: session_01JQwxbX7B4DmAgKJfAAfNzR
Account: os-warren
Branch: claude/project-thread-68aw82
Worktree: objectstack-issue-39881
Domain: domain:ui
Seat: repo:objectstack#2
Area: o2-C
File surface: packages/cloud-connection/src/cloud-connection-plugin.ts, packages/cloud-connection/src/marketplace-install-local-unmanaged-copies.ts (path per the dev's premise read), ui/packages/app-shell/src/console/marketplace/marketplaceApi.ts, ui/packages/app-shell/src/console/marketplace/MarketplacePackagePage.tsx, console i18n bundles (reason: new labels)
Container & model: M, mode:thread, model: default (dispatch-gates --tier: no path-derived mandate), effort: high (M; possible Clause-② on the /installation answer)
Clause-②: yes
Metadata-protocol: none
Responsibility: objectstack's console listing and cloud-connection /installation probe produce the risk (objectstack); no platform path covers it; any admin who opens the listing of a package the environment holds as an unmanaged copy reaches it today
Thread-read: 7459559226
Premise: corrected 7459559226
Serial constraints cleared: none
{
"issue": 39881,
"status": "done",
"branch": "claude/project-thread-68aw82",
"pr": "https://github.com/objectstack-ai/objectstack/pull/39949",
"session": "session_01JQwxbX7B4DmAgKJfAAfNzR",
"premise_still_valid": true,
"summary": "Premise holds as corrected (7459559226): the /installation probe asked only the control plane's install row. It now, when no managed installation answers, asks the environment's install-local door (new optional heldUnmanagedCopyOf, logic in marketplace-install-local-unmanaged-copies.ts findHeldUnmanagedCopy, wiring in the new cloud-connection-installed-copy.ts) and answers installed:true, installMode:'unmanaged', copy:{packageId, version?}, read by a new optional manifest_id query param (the hosted catalog's route id is the sys_package record id, the copy record keeps the manifest id). The console sends manifest_id, and for a held copy on the hosted path draws an 'Installed as a copy · BASE' badge plus 'Open APP' (or an Installed status), no mode picker, no Install (new UnmanagedCopyInstalled.tsx). A successful unmanaged install from the page flips to the same state. One i18n key in 11 packs, one docs bullet, changeset (cloud-connection + i18n patch). Head b5edf6df.",
"tests": "HEAD b5edf6df. cloud-connection: vitest src/cloud-connection-installed-copy.test.ts (new, 12) + cloud-connection-plugin.test.ts + marketplace-install-local-purge.test.ts + marketplace-install-local-install-modes.test.ts -> Test Files 4 passed, Tests 179 passed (run with the container's leaked OS_CLOUD_API_KEY / OS_CLOUD_API_KEY_PROD unset: with them set two existing single-environment /status tests fail, independent of this diff). typecheck (tsc + tsconfig.test) exit 0. ui: vitest packages/app-shell/src/console/marketplace/ packages/i18n/ -> Test Files 180 passed, Tests 2559 passed, 13 skipped; the new MarketplacePackagePage.unmanagedCopyInstalled-39881.test.tsx is 4/4 (held copy with app, held copy without app, managed control, nothing-held control). No ablation: the tested behaviour is new (each new test fails on base by construction: base has no copy branch).",
"gates": "dispatch-gates --commands derived 110 commands (repo objectstack-ai/objectstack @ 90d0e9be change set, 23 paths, 912 lines). Ran locally, exit captured before any pipe: 96 exit 0; NOT MEASURED 13: check-plugin-teardown-shape --self-test exit 3 (shallow clone, pinned fixture commit unreachable), @objectstack/spec check:skill-examples exit 3 and check:dual-build-cjs-loads exit 3 (PREREQUISITE NOT MET, dist not built), check:query-options-erasure / check:slot-lookup / check:type-check-debt timed out at 120 s, pnpm --dir ui exec vitest run scripts/ stopped by me after ~9 min at 8 GB RSS, and 6 not reached in the run budget (check:undeclared-dep-imports, check:vendor-version-stamps, check:vouch-for-reference-callers, check:watch-hint-literal, check:where-matcher, check:wildcard-fallthrough). Zero findings. @object-ui/app-shell + @object-ui/i18n type-check NOT MEASURED (ui dependency closure dist not built; a closure build attempt failed on a misplaced --concurrency forwarded to tsup, my error). CI check-runs on #39949 not yet read at report time; the seat's ACCEPT reads them.",
"mcp_calls": "0",
"api_writes": "2 — relay pr_create (POST /repos/objectstack-ai/objectstack/pulls + POST issues/39949/assignees, run 47671572346, read-back identical); this os-dev-report comment via post-stamped (POST /repos/objectstack-ai/objectstack/issues/39881/comments). git push x2 not counted.",
"classifier_refusals": [],
"open_questions": [],
"security_findings": "none",
"out_of_scope_findings": [
"carrier: none · noted, not filed — a self-hosted runtime (install-local route) holding an unmanaged copy likely shows the same not-installed listing; unmeasured, in PR Acceptance notes",
"carrier: none · noted, not filed — the container exports OS_CLOUD_API_KEY / OS_CLOUD_API_KEY_PROD, which turns two existing cloud-connection single-environment /status tests red locally; environment, not code"
],
"deviations": "Claim file surface grows: install-local-door-service.ts (seam member + HeldUnmanagedCopy type), marketplace-install-local-plugin.ts (one wiring line), new cloud-connection-installed-copy.ts (+test), new UnmanagedCopyInstalled.tsx, new console test, content/docs/deployment/install-modes.mdx (one bullet), .changeset. Clause-②: yes stands (the /installation answer gains installMode and copy, the request gains manifest_id). First push refused by check:commit-card-trailers for a model-named co-author trailer; amended before publish to the model-free pair. Worktree kept for a patch round in this thread."
}
Claim revision · 2026-12-06T16:13Z · amends claim 7459682336
File surface: adds install-local-door-service.ts, marketplace-install-local-plugin.ts (one wiring line), new cloud-connection-installed-copy.ts + its test, new UnmanagedCopyInstalled.tsx + console test, content/docs/deployment/install-modes.mdx (one bullet), .changeset/* (reason: the dev's measured route; the /installation answer gains installMode + copy, the request gains optional manifest_id because the hosted catalog route id is the sys_package record id while the copy record keeps the manifest id). Clause-② yes stands. Metadata-protocol none.
Activity
objectstack-fleet commentedon Dec 6, 2026
triage@hotlong · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH
Triage: lands in area:cloud · domain:ui · Bug · p2 · pm:queue, touched 2026-12-06T09:20Z. Rationale: the listing misreads installed state only on a hosted environment, where it reads the control plane's install row. The North Star sends a hosted-only problem to
area:cloud. The filer gave no grade; p2 because the first open no longer lands here since objectstack-ai/cloud#5475, but the page is still reachable. It belongs with the workbench epic #39871.objectstack-fleet commentedon Dec 6, 2026
repo:objectstack#2 · os-warren · session_01JQwxba5KWjW8X9oi5KUSoQ
Premise corrected · 2026-12-06T15:05Z
ui/packages/app-shell/src/console/marketplace/MarketplacePackagePage.tsx(~528-546) sets the installed state only fromgetCloudInstallationInfo, which reachespackages/cloud-connection/src/cloud-connection-plugin.ts(~1683-1730) and asks only the control plane's install row. The control plane writes none for an unmanaged copy by design (cloudpackage-install/install.ts~651-655). The env runtime does record the copy and itssourcePackageId(marketplace-install-local-unmanaged-copies.ts,UnmanagedCopyRecord), and nothing reads it for the listing.objectstack-fleet commentedon Dec 6, 2026
repo:objectstack#2 · os-warren · session_01JQwxba5KWjW8X9oi5KUSoQ
Claim: PM loop round 1
Session:
session_01JQwxba5KWjW8X9oi5KUSoQThread session:
session_01JQwxbX7B4DmAgKJfAAfNzRAccount:
os-warrenBranch:
claude/project-thread-68aw82Worktree:
objectstack-issue-39881Domain:
domain:uiSeat:
repo:objectstack#2Area:
o2-CFile surface:
packages/cloud-connection/src/cloud-connection-plugin.ts,packages/cloud-connection/src/marketplace-install-local-unmanaged-copies.ts(path per the dev's premise read),ui/packages/app-shell/src/console/marketplace/marketplaceApi.ts,ui/packages/app-shell/src/console/marketplace/MarketplacePackagePage.tsx, console i18n bundles (reason: new labels)Container & model:
M,mode:thread,model: default (dispatch-gates --tier: no path-derived mandate),effort: high (M; possible Clause-② on the /installation answer)Clause-②: yes
Metadata-protocol: none
Responsibility: objectstack's console listing and cloud-connection /installation probe produce the risk (objectstack); no platform path covers it; any admin who opens the listing of a package the environment holds as an unmanaged copy reaches it today
Thread-read: 7459559226
Premise: corrected 7459559226
Serial constraints cleared: none
os-warren commentedon Dec 6, 2026
repo:objectstack#2 · os-warren · session_01JQwxbX7B4DmAgKJfAAfNzR
os-dev-report
{ "issue": 39881, "status": "done", "branch": "claude/project-thread-68aw82", "pr": "https://github.com/objectstack-ai/objectstack/pull/39949", "session": "session_01JQwxbX7B4DmAgKJfAAfNzR", "premise_still_valid": true, "summary": "Premise holds as corrected (7459559226): the /installation probe asked only the control plane's install row. It now, when no managed installation answers, asks the environment's install-local door (new optional heldUnmanagedCopyOf, logic in marketplace-install-local-unmanaged-copies.ts findHeldUnmanagedCopy, wiring in the new cloud-connection-installed-copy.ts) and answers installed:true, installMode:'unmanaged', copy:{packageId, version?}, read by a new optional manifest_id query param (the hosted catalog's route id is the sys_package record id, the copy record keeps the manifest id). The console sends manifest_id, and for a held copy on the hosted path draws an 'Installed as a copy · BASE' badge plus 'Open APP' (or an Installed status), no mode picker, no Install (new UnmanagedCopyInstalled.tsx). A successful unmanaged install from the page flips to the same state. One i18n key in 11 packs, one docs bullet, changeset (cloud-connection + i18n patch). Head b5edf6df.", "tests": "HEAD b5edf6df. cloud-connection: vitest src/cloud-connection-installed-copy.test.ts (new, 12) + cloud-connection-plugin.test.ts + marketplace-install-local-purge.test.ts + marketplace-install-local-install-modes.test.ts -> Test Files 4 passed, Tests 179 passed (run with the container's leaked OS_CLOUD_API_KEY / OS_CLOUD_API_KEY_PROD unset: with them set two existing single-environment /status tests fail, independent of this diff). typecheck (tsc + tsconfig.test) exit 0. ui: vitest packages/app-shell/src/console/marketplace/ packages/i18n/ -> Test Files 180 passed, Tests 2559 passed, 13 skipped; the new MarketplacePackagePage.unmanagedCopyInstalled-39881.test.tsx is 4/4 (held copy with app, held copy without app, managed control, nothing-held control). No ablation: the tested behaviour is new (each new test fails on base by construction: base has no copy branch).", "gates": "dispatch-gates --commands derived 110 commands (repo objectstack-ai/objectstack @ 90d0e9be change set, 23 paths, 912 lines). Ran locally, exit captured before any pipe: 96 exit 0; NOT MEASURED 13: check-plugin-teardown-shape --self-test exit 3 (shallow clone, pinned fixture commit unreachable), @objectstack/spec check:skill-examples exit 3 and check:dual-build-cjs-loads exit 3 (PREREQUISITE NOT MET, dist not built), check:query-options-erasure / check:slot-lookup / check:type-check-debt timed out at 120 s, pnpm --dir ui exec vitest run scripts/ stopped by me after ~9 min at 8 GB RSS, and 6 not reached in the run budget (check:undeclared-dep-imports, check:vendor-version-stamps, check:vouch-for-reference-callers, check:watch-hint-literal, check:where-matcher, check:wildcard-fallthrough). Zero findings. @object-ui/app-shell + @object-ui/i18n type-check NOT MEASURED (ui dependency closure dist not built; a closure build attempt failed on a misplaced --concurrency forwarded to tsup, my error). CI check-runs on #39949 not yet read at report time; the seat's ACCEPT reads them.", "mcp_calls": "0", "api_writes": "2 — relay pr_create (POST /repos/objectstack-ai/objectstack/pulls + POST issues/39949/assignees, run 47671572346, read-back identical); this os-dev-report comment via post-stamped (POST /repos/objectstack-ai/objectstack/issues/39881/comments). git push x2 not counted.", "classifier_refusals": [], "open_questions": [], "security_findings": "none", "out_of_scope_findings": [ "carrier: none · noted, not filed — a self-hosted runtime (install-local route) holding an unmanaged copy likely shows the same not-installed listing; unmeasured, in PR Acceptance notes", "carrier: none · noted, not filed — the container exports OS_CLOUD_API_KEY / OS_CLOUD_API_KEY_PROD, which turns two existing cloud-connection single-environment /status tests red locally; environment, not code" ], "deviations": "Claim file surface grows: install-local-door-service.ts (seam member + HeldUnmanagedCopy type), marketplace-install-local-plugin.ts (one wiring line), new cloud-connection-installed-copy.ts (+test), new UnmanagedCopyInstalled.tsx, new console test, content/docs/deployment/install-modes.mdx (one bullet), .changeset. Clause-②: yes stands (the /installation answer gains installMode and copy, the request gains manifest_id). First push refused by check:commit-card-trailers for a model-named co-author trailer; amended before publish to the model-free pair. Worktree kept for a patch round in this thread." }Generated by Claude Code
objectstack-fleet commentedon Dec 6, 2026
repo:objectstack#2 · os-warren · session_01JQwxba5KWjW8X9oi5KUSoQ
Claim revision · 2026-12-06T16:13Z · amends claim 7459682336
File surface: adds
install-local-door-service.ts,marketplace-install-local-plugin.ts(one wiring line), newcloud-connection-installed-copy.ts+ its test, newUnmanagedCopyInstalled.tsx+ console test,content/docs/deployment/install-modes.mdx(one bullet),.changeset/*(reason: the dev's measured route; the /installation answer gainsinstallMode+copy, the request gains optionalmanifest_idbecause the hosted catalog route id is the sys_package record id while the copy record keeps the manifest id). Clause-② yes stands. Metadata-protocol none.