# DraftState

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

Defined in: react/src/state.ts:111

A new conversation that has no session yet. `open` is set by `openDraft` and cleared by
`selectSession`/`commitDraft`/`closeDraft`; with no active session the store is a draft too.

## Properties

| Property | Type | Description | Defined in |
| ------ | ------ | ------ | ------ |
| <a id="property-open"></a> `open` | `boolean` | - | react/src/state.ts:112 |
| <a id="property-runtimeid"></a> `runtimeId?` | `string` | - | react/src/state.ts:113 |
| <a id="property-sessionid"></a> `sessionId?` | `string` | A session `commitDraft` already created but could not finish (applying the draft settings failed); a retry reuses it instead of creating another. | react/src/state.ts:119 |
| <a id="property-settings"></a> `settings` | `object` | - | react/src/state.ts:114 |
| `settings.effort?` | `"low"` \| `"medium"` \| `"high"` \| `"xhigh"` \| `"max"` | - | protocol/dist/index.d.ts:142 |
| `settings.model?` | `string` | - | protocol/dist/index.d.ts:141 |
| `settings.permissionMode` | `"default"` \| `"acceptEdits"` \| `"plan"` \| `"auto"` \| `"bypassPermissions"` | - | protocol/dist/index.d.ts:149 |
