Skip to content

dev server: OS_PRODUCT_STAGE / branding.stage never reaches /api/v1/runtime/config — the documented PreviewBadge ops switch is a no-op on OSS #9252

Description

@yinlianghui

Observed

At 189a732254e6c46af75cfa38462693e67408d2d3, running examples/app-showcase with OS_PRODUCT_STAGE=ga objectstack dev: the Console still renders the "Preview" badge. /api/v1/runtime/config does not include branding.stage, so the objectui PreviewBadge never sees the documented value — the switch objectui's docs present as the operational way to hide the badge is a no-op against the OSS dev server (RuntimeConfigPlugin does not push the key; the knob appears to be honored only by the cloud distribution).

Expected

Either the OSS runtime pushes branding.stage (resolved from OS_PRODUCT_STAGE) through /api/v1/runtime/config, or the objectui/PreviewBadge documentation states the switch is cloud-distribution-only.

Repro

git checkout 189a7322
cd examples/app-showcase && OS_PRODUCT_STAGE=ga pnpm dev
# open the Console — Preview badge still shown; inspect /api/v1/runtime/config — no branding.stage

Recorded as an unassigned finding (not claiming). Discovered during a read-only promo-video production run against the pinned SHA above (video-studio work order steedos-labs/video-studio#1); relayed by the coordinating PM session as the producing session has no GitHub scope on this repository.

Metadata

Metadata

Assignees

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions