Skip to content

CommandProcessingState

CommandProcessingState = object

Defined in: packages/client/src/lib/command-processor/command-processor.state.ts:14

Observable command state; failures preserve the last applied layout and Instances.

instances: Map<InstanceId, VesselInstance>

Defined in: packages/client/src/lib/command-processor/command-processor.state.ts:18

Reconciled by set_layout; omitted Instances are removed.


lastError: Error | null

Defined in: packages/client/src/lib/command-processor/command-processor.state.ts:29

Last thrown command error. Individual Action failures emit action_error; this field clears when the next command starts. waitForIdle() is the supported way to observe a failure after the fact; it does not read this field.


layout: GridLayout | TilingLayout | null

Defined in: packages/client/src/lib/command-processor/command-processor.state.ts:20

Last successfully applied layout; Action and failed layout commands leave it unchanged.


layoutMode: LayoutMode

Defined in: packages/client/src/lib/command-processor/command-processor.state.ts:22

Initial-state metadata that CommandProcessor does not read or update.


status: CommandProcessingStatus

Defined in: packages/client/src/lib/command-processor/command-processor.state.ts:16

Returns to idle after the queue drains, including after a command error.