Launch modes
A launch mode says where and why an app was opened, from the launcher to a task or the Command Center. Apps declare the modes they support in the manifest and adapt their layout to the current one.
The same app can open full page from the launcher, inside a panel of the Command Center or in front of a person who has a task to finish. Each situation calls for a different layout and a different interaction. The launch mode tells the app which one it is in.
The app lists the modes it supports in manifest.json:
{
"supported_launch_modes": ["launcher", "fullscreen", "command-center", "embedded"]
}At runtime, the current mode is sdk.session.launchMode.
The modes
| Mode | Opened from | Input | Output | Typical use |
|---|---|---|---|---|
launcher | The app tile in the launcher. | Optional | Optional | General apps, dashboards, tools. |
fullscreen | Direct navigation, or the launcher with the fullscreen flag. Full viewport, no chrome. | Optional | Optional | Data-heavy dashboards. |
embedded | Another view, inside a panel, a modal or a sidebar. Compact. | Usually from the parent | Optional | Contextual widgets, detail panels. |
command-center | A Command Center command or agent routing. Panel inside the Command Center. | From the command | Expected | Quick actions, lookups. |
task | A person opens an assigned task. | The task payload | A decision | Approvals, reviews, data validation. |
workflow | A workflow step that needs a person. | The node payload | The node output | Forms inside a workflow. |
notification | An action button of a notification. | The notification context | Optional | Acknowledge, respond, escalate. |
deep-link | A direct URL with route and parameters. | URL parameters | Optional | Bookmarks, shared links. |
Choose the modes
| App | supported_launch_modes |
|---|---|
| Workspace: dashboards, tools, admin surfaces | ["launcher", "fullscreen", "command-center", "embedded", "deep-link"] |
| Task and human in the loop: review, approval, decision | ["task", "workflow", "command-center", "embedded"] |
| Utility: quick actions, lookups | ["launcher", "command-center", "embedded"] |
A new app starts with ["launcher", "fullscreen", "command-center"].
Adapt the layout
function AppLayout({ sdk, children }) {
const launchMode = sdk?.session?.launchMode;
const isCompact = ['embedded', 'command-center', 'task'].includes(launchMode);
return (
<div style={{ padding: isCompact ? '8px' : '16px' }}>
{!isCompact && <Sidebar sdk={sdk} />}
<main>{children}</main>
</div>
);
}When an app opens another app
sdk.apps.open({ slug }) with mode: 'auto' keeps the current mode only when the origin is fullscreen. From a
modal, an embedded panel or the Command Center, the host opens the destination in fullscreen, carries the input and
keeps the origin in the browser history, so the back button returns to it. The destination must support fullscreen.