Features  /  Sandbox App & Deploy

Sandbox App & Deploy

Feature flags no longer have a Test and a Live side. The key decides. Every App that has users has a Sandbox App: its own App, with its own flags, users and keys. Your development builds use the Sandbox App's onelo_pk_test_* key and read its flags; production uses the App's onelo_pk_live_* key and reads the App's flags. The flags' former Test values moved to the Sandbox App; their Live values stayed on the App.

Which flags a build reads

The Features section shows the flags of whichever App is open in the top bar — the App or its sandbox. There is open the Sandbox App to change what development builds see, or the App to change production values.

Keyenvironment sent by the SDKResult
App key—The App's flags
App keytest (transition only)The Sandbox App's flags, with an Onelo-Warning header
Sandbox App key—The Sandbox App's flags
Sandbox App keyliveRefused (400): the key decides
The key chooses the registry. Use the Sandbox App's key for development and the App's key for production; do not add a runtime environment override. During the transition, an App key with environment=test still reads the Sandbox App and shows a warning; switch that build to the Sandbox App's key. This compatibility path is removed in the next major SDK: it will refuse environment=test instead of selecting the Sandbox App.

New flags are discovered only in the Sandbox App. A production build registers nothing.

Deploy — staging, then publishing

Nothing you edit is live immediately. Edits stage as pending; the SDK keeps serving the last deployed snapshot until you press Deploy for the open App.

1

Edit anything

Change a status, gate a plan, add or reorder a rule, add or remove a pack member. The header's pending counter bumps (unsaved changes).
2

Click 🚀 Deploy

A confirm dialog reviews the diff — every pending change since the last deploy. Deploying in the Sandbox App reaches the builds on its key; deploying in the App reaches production. Apps on the live stream pick up the change almost immediately; apps on the polling fallback on their next poll; offline apps on their next reconnect.
3

The snapshot is promoted and broadcast

The backend copies your staged edits into the deployed snapshot, permanently removes anything you'd marked for deletion, bumps the App's version, resets its pending counter, and broadcasts the new version to connected clients. The online/version bars show how many instances have caught up.
You can't undo a deploy directly. To roll back, edit the features back to their previous state and deploy again. Staged changes you haven't deployed yet can be thrown away — the deploy dialog has a Discard changes action that reverts everything pending. (Deletions of already-deployed rules are soft until the next deploy, so a mistaken delete can be recovered by re-adding before you deploy.) One more gate: if your Onelo plan no longer includes targeting while targeting rules are still in use, Deploy is blocked until you fix or remove them.
Nobody online when you deploy? That's fine. A deploy persists the new snapshot and bumps the version regardless of who's connected — with zero online, the confirm fleet panel just shows zero online. The live push reaches no one, but nothing is lost: the next time any app starts or reconnects it receives the latest snapshot automatically, no manual step. The flip side matters too — a change you stage but don't Deploy reaches no one either, online or not. Deploy is the only thing that publishes, so "my change isn't showing" is almost always "not deployed yet," not "no one was online."

Connected instances — who's online, on which version

The deploy panel shows your live fleet — N apps online, a per-platform breakdown, and version bars (how many instances run each config version, and the % on the latest). Expand Show N connected instances for the detail; rows are grouped by (platform, app version, SDK version, config):

ColumnWhat it shows
PlatformThe SDK platform — swift, python, electron, js, react-native, android, flutter.
App verYour app's version (— if the SDK doesn't send one).
SDK verThe Onelo SDK version (e.g. 0.5.0a20).
ConfigWhich deployed version (e.g. v196) that instance is currently on — so you can see who is still behind right after a deploy.
InstancesHow many running copies are in that group — shown as N when all are online, or online/total.
Last seen"online" if live now, otherwise the time it last connected.
What "Instances" actually counts. One running app = one live connection = one instance. A backend (e.g. Python) is normally 1 — a single process — unless you run several replicas for redundancy. A mobile or desktop app is one instance per user currently running it: if 10 people have your macOS (Swift) app open, that row reads 10. So for client apps the count tracks your live audience; for servers it stays small and steady.

Two filters: Platform (all, or a single platform) and Online only (on by default — uncheck to also list instances that are offline now, with their last-seen time and the last config version they held).

Moving sandbox changes to production

Changes made in the Sandbox App reach the App through Promote to production, one screen for every module, approved by a person in the panel. An AI agent prepares it with application.prepare_promotion; a person then reviews and approves the selectable diff in the panel.

Clear all features

🗑 Clear all features (Registry header) is the nuclear option. It permanently deletes every feature of the open App — both active and archived — together with:

  • All targeting rules and plan mappings
  • All feature packs and pack items
  • All per-user feature overrides
  • All monitor events, aggregates, and history
Connected SDK clients receive an empty snapshot in real time. This cannot be undone — the modal makes you type DELETE to confirm. In a Sandbox App a dev build re-registers its slugs as hidden on the next batch-ping; production builds register nothing, so in the App the slugs stay gone until you re-add them.

Next

Sandbox App, Deploy & Instances — Features — Onelo Docs