# Schemas: t3/preview

> T3 Code · channel `nightly` · v0.1.15-nightly.20261205.5786 @ [`be521199aace`](https://github.com/pingdotgg/t3code/tree/be521199aace1a0b446f4db4a1181ef994aaa1e2) · 2026-12-05 · generated by Everdoc from source (no LLM).

14 entries.

<a id="schema-browsercontrolinterrupted"></a>

## `BrowserControlInterrupted`

- Kind: schema
- Workspace: [t3](../../architecture/t3.md)
- Source: [apps/server/src/preview/SessionControl.ts:5](https://github.com/pingdotgg/t3code/blob/be521199aace1a0b446f4db4a1181ef994aaa1e2/apps/server/src/preview/SessionControl.ts#L5-L17)
- Shape: `{ _tag: "BrowserControlInterrupted"; message: string; reason?: PreviewAutomationControlReason }`

<a id="schema-previewbrowserinstallerror"></a>

## `PreviewBrowserInstallError`

- Kind: schema
- Workspace: [t3](../../architecture/t3.md)
- Source: [apps/server/src/preview/PreviewBrowser.ts:95](https://github.com/pingdotgg/t3code/blob/be521199aace1a0b446f4db4a1181ef994aaa1e2/apps/server/src/preview/PreviewBrowser.ts#L95-L102)
- Shape: `{ _tag: "PreviewBrowserInstallError"; detail: string; cause?: unknown }`

<a id="schema-previewbrowserinstallingerror"></a>

## `PreviewBrowserInstallingError`

- Kind: schema
- Workspace: [t3](../../architecture/t3.md)
- Source: [apps/server/src/preview/PreviewBrowser.ts:105](https://github.com/pingdotgg/t3code/blob/be521199aace1a0b446f4db4a1181ef994aaa1e2/apps/server/src/preview/PreviewBrowser.ts#L105-L115)
- Shape: `{ _tag: "PreviewBrowserInstallingError"; downloadedBytes: number; totalBytes: number; unpacking: boolean }`

<a id="schema-previewbrowserlibrarieserror"></a>

## `PreviewBrowserLibrariesError`

- Kind: schema
- Workspace: [t3](../../architecture/t3.md)
- Source: [apps/server/src/preview/PreviewBrowserHost.ts:63](https://github.com/pingdotgg/t3code/blob/be521199aace1a0b446f4db4a1181ef994aaa1e2/apps/server/src/preview/PreviewBrowserHost.ts#L63-L70)
- Shape: `{ _tag: "PreviewBrowserLibrariesError"; setupCommand: string; libraries: string[] }`

<a id="schema-previewbrowserrooterror"></a>

## `PreviewBrowserRootError`

- Kind: schema
- Workspace: [t3](../../architecture/t3.md)
- Source: [apps/server/src/preview/PreviewBrowserHost.ts:73](https://github.com/pingdotgg/t3code/blob/be521199aace1a0b446f4db4a1181ef994aaa1e2/apps/server/src/preview/PreviewBrowserHost.ts#L73-L80)
- Shape: `{ _tag: "PreviewBrowserRootError" }`

<a id="schema-previewbrowsersandboxerror"></a>

## `PreviewBrowserSandboxError`

- Kind: schema
- Workspace: [t3](../../architecture/t3.md)
- Source: [apps/server/src/preview/PreviewBrowserHost.ts:54](https://github.com/pingdotgg/t3code/blob/be521199aace1a0b446f4db4a1181ef994aaa1e2/apps/server/src/preview/PreviewBrowserHost.ts#L54-L61)
- Shape: `{ _tag: "PreviewBrowserSandboxError"; setupCommand: string }`

<a id="schema-previewbrowserunsupportederror"></a>

## `PreviewBrowserUnsupportedError`

- Kind: schema
- Workspace: [t3](../../architecture/t3.md)
- Source: [apps/server/src/preview/PreviewBrowser.ts:117](https://github.com/pingdotgg/t3code/blob/be521199aace1a0b446f4db4a1181ef994aaa1e2/apps/server/src/preview/PreviewBrowser.ts#L117-L124)
- Shape: `{ _tag: "PreviewBrowserUnsupportedError"; platform: string; arch: string }`

<a id="schema-previewtunnelconnecterror"></a>

## `PreviewTunnelConnectError`

- Kind: schema
- Workspace: [t3](../../architecture/t3.md)
- Source: [apps/server/src/preview/PreviewTunnel.ts:51](https://github.com/pingdotgg/t3code/blob/be521199aace1a0b446f4db4a1181ef994aaa1e2/apps/server/src/preview/PreviewTunnel.ts#L51-L58)
- Shape: `{ _tag: "PreviewTunnelConnectError"; port: number; cause: unknown }`

<a id="schema-previewtunneldisablederror"></a>

## `PreviewTunnelDisabledError`

- Kind: schema
- Workspace: [t3](../../architecture/t3.md)
- Source: [apps/server/src/preview/PreviewTunnel.ts:42](https://github.com/pingdotgg/t3code/blob/be521199aace1a0b446f4db4a1181ef994aaa1e2/apps/server/src/preview/PreviewTunnel.ts#L42-L49)
- Shape: `{ _tag: "PreviewTunnelDisabledError" }`

<a id="schema-previewtunnelportrefusederror"></a>

## `PreviewTunnelPortRefusedError`

- Kind: schema
- Workspace: [t3](../../architecture/t3.md)
- Source: [apps/server/src/preview/PreviewTunnel.ts:33](https://github.com/pingdotgg/t3code/blob/be521199aace1a0b446f4db4a1181ef994aaa1e2/apps/server/src/preview/PreviewTunnel.ts#L33-L40)
- Shape: `{ _tag: "PreviewTunnelPortRefusedError"; port: number }`

<a id="schema-serverbrowserlauncherror"></a>

## `ServerBrowserLaunchError`

- Kind: schema
- Workspace: [t3](../../architecture/t3.md)
- Source: [apps/server/src/preview/ServerBrowser.ts:306](https://github.com/pingdotgg/t3code/blob/be521199aace1a0b446f4db4a1181ef994aaa1e2/apps/server/src/preview/ServerBrowser.ts#L306-L313)
- Shape: `{ _tag: "ServerBrowserLaunchError"; cause: unknown }`

<a id="schema-serverbrowseroperationerror"></a>

## `ServerBrowserOperationError`

- Kind: schema
- Workspace: [t3](../../architecture/t3.md)
- Source: [apps/server/src/preview/ServerBrowserPage.ts:40](https://github.com/pingdotgg/t3code/blob/be521199aace1a0b446f4db4a1181ef994aaa1e2/apps/server/src/preview/ServerBrowserPage.ts#L40-L48)
- Shape: `{ _tag: "ServerBrowserOperationError"; tag: string; message: string; detail?: unknown; cause?: unknown }`

<a id="schema-serverbrowsertabnotfounderror"></a>

## `ServerBrowserTabNotFoundError`

- Kind: schema
- Workspace: [t3](../../architecture/t3.md)
- Source: [apps/server/src/preview/ServerBrowser.ts:279](https://github.com/pingdotgg/t3code/blob/be521199aace1a0b446f4db4a1181ef994aaa1e2/apps/server/src/preview/ServerBrowser.ts#L279-L286)
- Shape: `{ _tag: "ServerBrowserTabNotFoundError"; threadId: string; tabId: string }`

<a id="schema-serverbrowservieweroutput"></a>

## `ServerBrowserViewerOutput`

- Kind: schema
- Workspace: [t3](../../architecture/t3.md)
- Source: [apps/server/src/preview/ServerBrowser.ts:315](https://github.com/pingdotgg/t3code/blob/be521199aace1a0b446f4db4a1181ef994aaa1e2/apps/server/src/preview/ServerBrowser.ts#L315)
- Shape: `{ _tag: "frame"; data: Uint8Array; ack: Effect.Effect } | { _tag: "viewport"; width: number; height: number } | { _tag: "control"; canOperate: boolean; controller: "agent" | "you" | "another-viewer" | "unclaimed"; generation: number; dialog: { type: string; message: string; defaultValue: string } | null } | { _tag: "probe"; x: number; y: number; editable: boolean } | { _tag: "clipboard"; text: string } | { _tag: "pointer"; phase: "move" | "click"; x: number; y: number; sequence: number } | { _tag: "fileChooser"; id: string; multiple: boolean; accept: string } | { _tag: "fileChooserClosed"; id: string } | { _tag: "selectMenu"; id: string; options: { label: string; disabled: boolean }[]; selectedIndex: number; x: number; y: number; width: number; height: number } | { _tag: "selectMenuClosed"; id: string } | { _tag: "popup"; tabId: string } | { _tag: "download"; id: string; fileName: string; sizeBytes: number } | { _tag: "gone" } | { _tag: "reconnect" }`
