# Vessel Variants & Actions
Source: https://docs.maelstrom-ai.co/dev/guides/react/variants-and-actions/
Documentation revision: 89a8f5e9d10cedcf0b30376d7846113f06f26120
SDK manifests in this build: @maelstrom-co/react@0.2.1, @maelstrom-co/client@0.2.1, @maelstrom-co/connectors@0.2.1, @maelstrom-co/protocol@0.2.1, @maelstrom-co/engine@0.2.1
These docs follow this source revision. Manifest versions do not prove release compatibility; verify the installed package exports before using an API.

A vessel becomes interactive when it has more than one variant and a set of actions the engine can invoke to move between them. This guide adds both to the `greetingVessel` from the previous guide.

> [!NOTE]
> Note
> 
> **Before you start:** this guide builds directly on the `greetingVessel` defined in [Creating Vessels](https://docs.maelstrom-ai.co/dev/guides/react/creating-vessels/). Have that vessel, its component, and the `createMaelstrom()` setup in place first.

## SDK 0.2.1

In SDK 0.2.1, mark a repeatable Action with `idempotent: true`. Register a handler even when a Variant switch has no other application effect. Here the handler returns success so the client can apply the transition:

sdk-0.2.1/greeting.tsx

```tsx
import { ok, type VesselActionDefinition } from '@maelstrom-co/protocol';
import { createMaelstrom, defineVessel, vessel, type TypedVesselProps } from '@maelstrom-co/react';

const expand = {
  name: 'expand',
  description: 'Show the expanded greeting.',
  transitionsTo: 'expanded',
  idempotent: true,
} as const satisfies VesselActionDefinition;

const greeting = defineVessel({
  id: 'greeting',
  name: 'Greeting',
  description: 'Show a greeting.',
  defaultVariant: 'card',
  variants: {
    card: { props: {}, minSize: { width: 2, height: 1 }, actions: [expand] },
    expanded: { props: {}, minSize: { width: 4, height: 2 }, actions: [] },
  },
});

const handlers = { expand: async () => ok(undefined) } satisfies Record<typeof expand.name, () => unknown>;

function Greeting({ instanceId, variantProps, executeAction }: TypedVesselProps<typeof greeting>) {
  m.useActions('greeting', instanceId, handlers);
  return variantProps.variant === 'card'
    ? <button onClick={() => executeAction('expand')}>Show more</button>
    : <p>Hello from the expanded greeting.</p>;
}

export const m = createMaelstrom({ vessels: [vessel(greeting, Greeting)] });
```

## Development version

The rest of this guide targets the unreleased Action API on `main`. It replaces the 0.2.1 `idempotent` flag with `effect`. On this API, a mounted runner can omit the handler for an Action with `effect: 'none'`.

### What you’ll wire up

By the end of this guide your `greetingVessel` will:

1.  carry a second variant alongside the original `card` variant
2.  define actions, some with typed parameters and some that transition to another variant
3.  fire an action from the component with `executeAction`
4.  handle that action in your app with `useActions`

## Mental model

A variant is a legal UI state. An action is a legal transition or operation from the currently active state. The engine can only invoke actions declared on the active variant, so the state machine is both a UI model and a safety boundary. When external data changes these definitions or a live Instance, use the [state synchronization prompt](https://docs.maelstrom-ai.co/agents/prompts/maelstrom-state-sync/) to inspect the supported update path and conflicts before editing.

Synchronize Vessel state and definitions

```

Diagnose and, if authorized, implement the correct Maelstrom Vessel definition or
runtime-state update path for this case.

Vessel / Instance: [ID OR PATH]
Registration: [FACTORY-DECLARED | RUNTIME-REGISTERED | UNKNOWN]
External state source: [STORE / API / PROPS / OTHER]
Observed conflict or desired change: [DETAILS]
Implementation authorized: [YES / NO]

## Inspect ownership and state

Read the application owner of each relevant value, registration site, installed
SDK version and the matching update API/types/source/tests. Determine whether the
request changes an Instance's Variant/props, republishes a definition, changes
layout, or combines these. Record whether removed Variants or Actions are used by
live Instances, and whether requests/updates may be in flight. Keep unknown
ownership or policy as explicit questions.

## Select the supported path

- The client owns layout state; do not treat the Engine as the source of
  application data or overwrite its decisions as a reconciliation loop.
- Use the inspected factory-aware path for factory-declared Vessels and the
  inspected registration handle/update path for runtime-registered Vessels.
  Confirm method names and return/conflict behavior in the installed version.
- Handle live Variant/Action and in-flight update conflicts explicitly. Do not
  drop or force an update unless the application has an authorized policy.
- Preserve UpdateCoordinator's supported batching; do not reproduce its internals
  unless the app intentionally uses the lower-level client API.
- When processing an Engine response, preserve atomic command order: apply
  `set_layout` before `execute_actions`, so actions may target newly placed
  Instances. Do not add inline size/overflow reconciliation; a changed Chart
  dimension is handled by the existing resize request path.

If implementation is authorized, make the smallest change within the supplied
scope; otherwise make no edits. Add deterministic tests for the selected update
path and conflict behavior. Run affected checks and report exact commands and
outcomes; do not claim live Engine verification from a test double.

Return an ownership map, observed registration/update mechanism with source
anchors, conflict/race handling, changed files or plan, test results, and
unresolved policy questions.
```

## Define variants

The `variants` map holds the discrete states a vessel can be in. Each variant carries its own `props`, `minSize`, and `actions`. Add a second `expanded` variant next to `card`:

src/vessels/greeting/greeting.vessel.ts

```ts
import { defineVessel } from '@maelstrom-co/protocol';

export const greetingVessel = defineVessel({
  id: 'greeting',
  name: 'Greeting',
  description: 'Displays a personalised greeting message.',
  defaultVariant: 'card',
  variants: {
    card: {
      props: {
        name: '' as string,
      },
      minSize: { width: 3, height: 2 },
      actions: [],
    },
    expanded: {
      props: {
        name: '' as string,
        message: '' as string,
      },
      minSize: { width: 4, height: 3 },
      actions: [],
    },
  },
});
```

Each variant defines an independent prop shape, so `expanded` can require a `message` field that `card` never had. `TypedVesselProps` turns this map into a discriminated union: `variantProps` is `{ variant: 'card', name } | { variant: 'expanded', name, message }`. Narrow on `variantProps.variant` before reading variant-specific props:

src/vessels/greeting/greeting.component.tsx

```tsx
import type { TypedVesselProps } from '@maelstrom-co/react';
import { greetingVessel } from './greeting.vessel';

export default function GreetingComponent({
  variantProps,
}: TypedVesselProps<typeof greetingVessel>) {
  if (variantProps.variant === 'card') {
    return (
      <div style={{ padding: '1rem' }}>
        <h2>Hello, {variantProps.name}!</h2>
      </div>
    );
  }

  // variantProps narrowed to the 'expanded' variant; `message` is in scope.
  return (
    <div style={{ padding: '1rem' }}>
      <h2>Hello, {variantProps.name}!</h2>
      <p>{variantProps.message}</p>
    </div>
  );
}
```

> [!TIP]
> Tip
> 
> `minSize` is per-variant because `expanded` may need more grid cells than `card`. The engine enforces the active variant’s minimum in grid mode. Tiling ignores `minSize` (see [Grid vs Tiling](https://docs.maelstrom-ai.co/dev/understanding/grid-vs-tiling/)).

## Define actions

Actions live on each variant’s `actions` array. A `VesselActionDefinition` has five fields:

-   **`name`**: the identifier the LLM emits and your runner keys off. Must be unique within a variant.
    
-   **`description`**: what the action does, in plain language. The LLM reads this to decide when to invoke it.
    
-   **`parameters`** _(optional)_: an array of `ActionParameter` describing typed inputs the LLM fills.
    
-   **`transitionsTo`** _(optional)_: the name of the variant this action moves the vessel into. Omit it for actions that mutate data without changing variant.
    
-   **`effect`** _(optional, defaults to `'any'`)_: what running the action does beyond its `transitionsTo`. It decides whether the action needs a handler and whether it is safe to run again:
    
    -   `'none'`: the action has no application effect. Maelstrom only switches the variant, so it needs no handler. Use it for a view switch such as `expand` or `showWeek`. It must declare `transitionsTo` and no parameters.
    -   `'idempotent'`: the action needs a handler, and running it twice with the same parameters leaves the vessel where running it once would, such as opening an entry that may already be open.
    -   `'any'`: the action needs a handler and may append, remove or otherwise accumulate, so running it twice is not safe. Leave `effect` unset for these.
    
    The Engine may re-emit an action on a turn triggered by nothing but a chart resize, and it cannot see vessel contents to tell a first run from a repeat. Such a turn admits only `'none'` and `'idempotent'` actions that the LLM invoked with no parameters. A parameter value there could only have come from earlier in the conversation, so `setLocation("Tokyo")` is refused on a resize even when it is declared `'idempotent'`.
    

Give `card` an action that takes a parameter and an action that switches to `expanded`. Switching views needs nothing from your app, so `expand` declares `effect: 'none'`:

src/vessels/greeting/greeting.vessel.ts

```ts
    card: {
      props: {
        name: '' as string,
      },
      minSize: { width: 3, height: 2 },
      actions: [
        {
          name: 'setName',
          description: 'Update who the greeting is addressed to.',
          parameters: [
            {
              name: 'name',
              type: 'string',
              description: 'The name to greet.',
              required: true,
            },
          ],
        },
        {
          name: 'expand',
          description: 'Show the greeting with a longer message.',
          transitionsTo: 'expanded',
          effect: 'none',
        },
      ],
    },
```

### ActionParameter reference

Each entry in `parameters` is an `ActionParameter`:

| Field | Type | Description |
| --- | --- | --- |
| `name` | `string` | Parameter key. Becomes a property on the typed params object. |
| `type` | <code>&#39;string&#39; &#124; &#39;number&#39; &#124; &#39;boolean&#39; &#124; &#39;object&#39;</code> | The value type. Drives the TypeScript type your handler receives. |
| `description` | `string` | What the parameter means; the LLM uses this to fill the value. |
| `required` | `boolean` _(optional)_ | When `false`, the param is optional on the typed params object. Defaults to required. |
| `defaultValue` | `unknown` _(optional)_ | Fallback metadata for your Action runner. The Engine never applies it; to allow omission, also set `required: false` and have the runner substitute the fallback. |
| `enum` | `unknown[]` _(optional)_ | Constrains Engine-planned Actions only when it contains at least one JSON-normalized value compatible with the declared `type`; otherwise only `type` applies. |

The `type` union maps to TypeScript as you’d expect: `'string'` → `string`, `'number'` → `number`, `'boolean'` → `boolean`, `'object'` → `Record<string, unknown>`. A variant whose `actions` array is empty produces no callable actions for that state.

These Engine checks do not validate Actions invoked locally through `executeAction`; validating those values and applying any `defaultValue` remain the app’s responsibility in its [Action runner](https://docs.maelstrom-ai.co/dev/guides/react/variants-and-actions/#the-app-handles-actions). See [Three rules](https://docs.maelstrom-ai.co/dev/guides/react/variants-and-actions/#three-rules) for the full `enum` behavior.

## transitionsTo wiring

When an action defines `transitionsTo`, invoking it does two things: it runs the action’s handler, which an `effect: 'none'` action may omit, and it moves the instance into the named target variant. `defineVessel` only preserves literal types for downstream inference. It performs no validation itself. Rejection happens at registration: `registerVessel()` runs `VesselSchema` (via `validateVessel`) and throws if a `transitionsTo` names a variant that doesn’t exist, so a typo fails fast rather than at runtime.

The order of those two steps depends on who invoked the action:

-   **Local `executeAction`**: the instance moves to the target variant first, so the UI responds at once. The handler runs next, and if it fails, the variant reverts, unless a newer change has already replaced it.
-   **Engine-planned action**: the handler runs first, while the instance is still in the variant it had before the action. The transition applies only after the handler succeeds, so a failed handler leaves the variant alone. An action declared `effect: 'none'` needs no handler: its transition applies on its own, as long as the component has called `useActions` for that instance. Any other action without a handler is skipped and its variant does not change. Each engine action is checked against the variant the instance has when that action’s turn comes, so an action that a previous action moved away from is skipped.

After a transition, your component re-renders with `variantProps` narrowed to the target variant. That is why `expand` above moves `card` → `expanded`: the next render hits the `expanded` branch and gains access to `message`. The target variant’s `minSize` becomes the floor for later grid layout validation; it has no effect in tiling mode.

An action without `transitionsTo` (like `setName`) keeps the vessel in its current variant. Use the transition only when the action should change the displayed state.

## Invoke vs handle (the two halves)

An action has two ends. The **component fires** it; the **app handles** it. Wiring both completes the round-trip.

### The component fires actions

`TypedVesselProps` gives your component an `executeAction` function. Its signature is parameter-aware: actions with parameters require a typed params object, parameterless actions take just the name.

src/vessels/greeting/greeting.component.tsx

```tsx
export default function GreetingComponent({
  variantProps,
  executeAction,
}: TypedVesselProps<typeof greetingVessel>) {
  if (variantProps.variant === 'card') {
    return (
      <div style={{ padding: '1rem' }}>
        <h2>Hello, {variantProps.name}!</h2>
        <button onClick={() => executeAction('setName', { name: 'Ada' })}>
          Greet Ada
        </button>
        <button onClick={() => executeAction('expand')}>Show more</button>
      </div>
    );
  }

  return (
    <div style={{ padding: '1rem' }}>
      <h2>Hello, {variantProps.name}!</h2>
      <p>{variantProps.message}</p>
    </div>
  );
}
```

`executeAction('setName', { name: 'Ada' })` is type-checked against the parameter list: passing `setName` without a `name` string is a compile error, and `executeAction('expand')` rejects extra arguments because `expand` has no parameters. `executeAction` returns `void`; the result of running the action is observed through the handler, not the return value.

### The app handles actions

`m.useActions(vesselId, instanceId, runner)` registers the handlers. The `runner` maps action names to handlers. It needs a handler for every action not declared `effect: 'none'`, and TypeScript reports a runner that leaves one out. Handlers for `effect: 'none'` actions are optional. Each handler returns an `ActionResult`, signalled with `ok(...)` or `err(...)` from `@maelstrom-co/protocol`:

src/vessels/greeting/greeting.actions.tsx

```tsx
import { ok, err } from '@maelstrom-co/protocol';
import { m } from '../../maelstrom';

export function GreetingActions({ instanceId }: { instanceId: string }) {
  m.useActions('greeting', instanceId, {
    setName: async ({ name }) => {
      if (!name) return err(new Error('name is required'));
      await saveGreetingTarget(name);
      return ok(undefined);
    },
  });

  return null;
}
```

The handler params are typed from the vessel definition: `setName` receives `{ name: string }`, and a parameterless action’s handler takes none. `expand` is declared `effect: 'none'`, so the runner leaves it out. Handlers run for both engine-initiated actions and the `executeAction` calls fired from your component, so the same `setName` logic serves the LLM and the button.

> [!NOTE]
> Note
> 
> Pass a stable `runner`: define it outside the component or wrap it in `useMemo`. A fresh object each render re-registers the handlers on every render. Only one `useActions` call per `instanceId` is supported; a second registration overwrites the first.

### Register one runner per instance

Call `useActions` once per instance, in a component that stays mounted while the instance moves between variants, such as the vessel’s root component. Render variant-specific content as child components, and keep the runner in the parent:

src/vessels/inbox/inbox.component.tsx

```tsx
export default function InboxComponent({
  instanceId,
  variantProps,
}: TypedVesselProps<typeof inboxVessel>) {
  m.useActions('inbox', instanceId, inboxRunner);

  return variantProps.variant === 'detail' ? <DetailView /> : <ListView />;
}
```

Do not call `useActions` from a child that only renders for one variant. React registers a runner in an effect after it commits, so a runner that mounts with the new variant is not in place yet when the next action of the same engine plan runs. If the engine plans `showDetails` and then `selectItem({ id })`, `selectItem` reaches the list view’s runner, which has no handler for it, and is skipped.

A runner that outlives variant changes serves every variant, so its handlers must not assume the variant that was showing when the runner was created. If a handler behaves differently per variant, read the current variant inside the handler when it runs.

### Missing handlers and invalid parameters

If the engine or a component invokes an action without a registered handler, Maelstrom does not crash the Chart. What happens next depends on the action’s `effect`:

-   **`effect: 'none'`**: the action needs no handler. Its `transitionsTo` still moves the instance to its target variant.
-   **`'idempotent'` or `'any'`**: the action is reported as skipped and the variant does not change, even when it declares `transitionsTo`. Without this rule, an action such as `selectItem({ id })` with a stale or missing handler would switch to the detail view, select nothing, and still report success. The `ActionRunner` type catches a missing handler at compile time when the Vessel definition keeps its literal Action names. A definition widened to plain `VesselDefinition`, a runner assembled at runtime, or a runner registered for the wrong vessel gets no compile-time check and can reach this case.

A locally invoked action that is skipped this way reverts its optimistic transition, the same as a failed handler.

Engine-planned actions still need a registered runner: the Vessel’s component must call `useActions` for the instance, with an empty handler map if all of its actions are declared `effect: 'none'`. If no runner registers before the readiness timeout, the engine’s actions for that instance are reported as skipped and its variant does not change. When an action needs data or side effects, return `err(...)` from the handler for invalid parameters so the failure reaches the error surface instead of silently mutating state.

```tsx
setName: async ({ name }) => {
  if (!name.trim()) return err(new Error('name must not be empty'));
  await saveGreetingTarget(name);
  return ok(undefined);
}
```

With both halves wired, the loop is complete: the component (or the LLM) fires `setName`, the runner’s handler saves the name, and the component re-renders with it. When it fires `expand`, Maelstrom moves the vessel to `expanded` with no handler involved, and the component re-renders into the expanded state.

## Options that change at runtime

### Why

`setName`’s `name` parameter is typed `'string'`, which tells the engine nothing about which names are actually valid — it has to guess, or invent one. Declaring `enum` on a parameter puts the real list of values directly in the engine’s prompt, instead of a bare type. If you’re using voice, the same `enum` values are exposed to the realtime model through `get_capabilities`, so both paths read from the one declaration.

### Static lists

When the valid values are fixed — a module-level constant, not something that changes while the app runs — declare `enum` inline on the parameter:

src/vessels/greeting/greeting.vessel.ts

```ts
const GREETABLE_NAMES = ['Ada', 'Grace', 'Alan'];

// ...
{
  name: 'setName',
  description: 'Update who the greeting is addressed to.',
  parameters: [
    {
      name: 'name',
      type: 'string',
      description: 'The name to greet.',
      required: true,
      enum: GREETABLE_NAMES,
    },
  ],
},
```

The engine now sees `setName(name: Ada|Grace|Alan)` instead of `setName(name: string)` — a much narrower target to aim at.

### Live lists

Most interesting option lists aren’t static — they’re derived from data that changes while the app is running (the set of open documents, the names of events on today’s calendar, whatever a store currently holds). For those, build a copy of the vessel definition with fresh `enum` values and republish it with `m.updateVessel(vessel)` whenever the underlying data changes:

src/vessels/greeting/greeting-option-sync.tsx

```tsx
import { useEffect } from 'react';
import { m } from '../../maelstrom';
import { greetingVessel } from './greeting.vessel';
import { useRosterStore } from '../../roster.store';

function withNameOptions(names: readonly string[]) {
  return {
    ...greetingVessel,
    variants: {
      ...greetingVessel.variants,
      card: {
        ...greetingVessel.variants.card,
        actions: greetingVessel.variants.card.actions.map((action) =>
          action.name === 'setName'
            ? {
                ...action,
                // An empty list leaves the parameter untouched rather than
                // publishing `enum: []` — see the "Three rules" section
                // below for why that distinction matters.
                parameters: action.parameters?.map((parameter) =>
                  parameter.name === 'name' && names.length > 0
                    ? { ...parameter, enum: [...names] }
                    : parameter,
                ),
              }
            : action,
        ),
      },
    },
  };
}

/** Renders nothing — keeps setName's option list in step with the roster store. */
export function GreetingOptionSync() {
  const { names } = useRosterStore();
  // Keyed on the serialized list, not the array reference: the store hands
  // back a new array identity on every render even when the contents are
  // unchanged, and re-publishing the vessel on every render is wasted work.
  const namesKey = JSON.stringify(names);

  useEffect(() => {
    m.updateVessel(withNameOptions(names));
  }, [namesKey]);

  return null;
}
```

Mount `<GreetingOptionSync />` once, inside `<m.Provider>`, alongside the rest of your app.

> [!WARNING]
> Caution
> 
> **Only a session change drops republished options — `connector` and `layoutMode` no longer do.** `<m.Provider>` keeps the same Orchestrator across a `connector` or `layoutMode` change: the new value is pushed into the live instance (`setConnector` / `setLayoutMode`) instead of rebuilding it, so `<GreetingOptionSync />` stays mounted with its republished options intact. `debug` behaves the same way in effect — it only gates logging, so changing it has nothing to revert.
> 
> A `sessionId` change is different: `sessionId` is captured once per mount, and switching sessions means remounting `<m.Provider key={...}>` under a new key — a new session starts empty by definition, including `greetingVessel`’s pristine, `enum`\-less definition. `<GreetingOptionSync />` remounts along with everything else in that case, and its mount-time `updateVessel` call republishes fresh options immediately. If your app switches sessions, remount whatever republishes definitions (by `key`, at the same boundary) rather than relying on the effect to catch up. [`initialLayout`](https://docs.maelstrom-ai.co/dev/guides/react/default-screen/) is captured the same way — once per mount — so a remount is also how you’d seed a different default screen alongside the session switch.

### Why not `registerVessel`

The two functions take different inputs, and that difference is the whole reason they behave differently. `registerVessel(entry)` takes a full `VesselEntry` — the `{ vessel, component }` pair `vessel()` produces — and writes `entry.component` into the component registry `<m.Chart />` reads from. `updateVessel(vessel)` takes a bare `VesselDefinition` and never touches that registry at all; there’s no component in its argument to write.

That difference in surface area is also why `registerVessel` _can_ remount a vessel and `updateVessel` never does. For a lazy entry, `registerVessel` wraps `entry.component` in a fresh `React.lazy(...)` on every call, so the component identity `<m.Chart />` renders changes and React remounts it. For a non-lazy entry it’s less clear-cut — passing back the exact same component function reference wouldn’t change identity and wouldn’t force a remount — but the common case is a freshly-declared or re-imported reference, so treat `registerVessel` as “may remount” and reach for it only when you actually mean to touch the component. `updateVessel` republishes the description, variants, and action parameters the engine and voice model see, structurally incapable of writing to the component registry, so it never remounts anything. For a vessel like `greetingVessel` that hardly matters, but it matters a lot for a vessel that owns state React doesn’t manage — a canvas element holding a live WebGL context, a focused input, an open WebSocket. Use `updateVessel` whenever you’re only changing what the vessel _says_ it can do, not what it _is_.

### Three rules

-   **An empty list behaves the same as omitting `enum` entirely.** Both the engine’s prompt serializer and the voice capability catalog treat a present-but-empty `enum: []` as “no options declared”. The prompt renders the parameter as `name: string` — the declared `type` standing in for the option list — and the voice catalog, which carries `type` on every parameter regardless, simply leaves `options` off. `m.updateVessel` callers don’t need to special-case an empty derived list before republishing — passing `enum: []` and leaving `enum` unset produce the same result.
-   **The engine enforces prompt-visible `enum` values.** Before returning an execution plan, the engine rejects a model-generated value outside the options it showed in the prompt. It compares JSON-normalized values, so an object option with an omitted `undefined` property or a `toJSON` method matches the same JSON object the model sees. Values whose normalized JSON type conflicts with the declared parameter type are not shown. Empty lists and lists with no type-compatible JSON-renderable values remain unconstrained. Action runners should still validate application-specific rules and locally supplied values, which do not cross this engine boundary.
-   **`enum` values are transmitted verbatim, not just referenced.** Every chart request carries the actual `enum` values, and so does the voice model’s `get_capabilities` catalog if you’re using voice — the engine sees the real strings, not a count or a pointer into your store. Don’t put anything sensitive in a value the model shouldn’t be told (a task titled with an access token, an event with a private attendee list), and keep lists bounded — the two paths bound them very differently. The prompt serializer joins values with `|` and never truncates, so a vessel that reuses the same option list across several actions — like the demo’s `tasks` vessel, which repeats every task title across `removeTask`, `checkTask`, `uncheckTask`, and `addSubtask` — pays that full list’s size once per action, per request. The voice catalog does cap it: past `MAX_CAPABILITY_OPTION_COUNT` (100) values, or `MAX_CAPABILITY_OPTIONS_TOTAL_CHARS` (2000) characters across them, it drops the list wholesale rather than truncating it and flags the parameter `optionsOmitted`, so the model learns values exist but not which ones. On both paths an individual value with no faithful text form — a cyclic object, a symbol — is dropped rather than shown as a placeholder the model could pick but your vessel couldn’t act on.

## Next steps

-   [Layout Modes](https://docs.maelstrom-ai.co/dev/guides/react/layout-modes/) — how variant `minSize` interacts with grid and tiling layouts
-   [Setting a Default Screen](https://docs.maelstrom-ai.co/dev/guides/react/default-screen/) — seed a known first screen with `initialLayout` instead of waiting on the engine’s first response
-   [Error Handling](https://docs.maelstrom-ai.co/dev/guides/react/error-handling/) — surface `err(...)` results from action handlers in the UI
-   [Vessel State Machine](https://docs.maelstrom-ai.co/dev/understanding/vessel-state-machine/) — the conceptual model of how variants and actions compose
