# MachineStatusProps

<!-- https://uncage.vercel.app/docs/api/react-ui/interfaces/machinestatusprops/ -->

Defined in: react-ui/src/components/MachineStatus.tsx:12

## Methods

### onSelect()?

```ts
onSelect?(machine): void;
```

Defined in: react-ui/src/components/MachineStatus.tsx:18

Called after a computer is picked, or connected from "Connect another computer…" (it is
already selected for new sessions). `<AgentChat>` opens a new draft when it differs from the
open session's computer.

#### Parameters

| Parameter | Type |
| ------ | ------ |
| `machine` | \{ `agentOutdated`: `boolean`; `agentVersion`: `string`; `id`: `string`; `lastSeenAt`: `string`; `name`: `string`; `online`: `boolean`; `os`: `string`; `runtimes`: `object`[]; `transport`: `"ws"` \| `"http"` \| `null`; \} |
| `machine.agentOutdated` | `boolean` |
| `machine.agentVersion` | `string` |
| `machine.id` | `string` |
| `machine.lastSeenAt` | `string` |
| `machine.name` | `string` |
| `machine.online` | `boolean` |
| `machine.os` | `string` |
| `machine.runtimes` | `object`[] |
| `machine.transport` | `"ws"` \| `"http"` \| `null` |

#### Returns

`void`
