# Schemas: t3/workspace

> T3 Code · channel `stable` · v0.1.14 @ [`c0eed7328db2`](https://github.com/pingdotgg/t3code/tree/c0eed7328db2609e5a535be704e90638aef1c111) · 2026-12-05 · generated by Everdoc from source (no LLM).

24 entries.

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

## `TaskFolderCheckoutBlockedError`

- Kind: schema
- Workspace: [t3](../../architecture/t3.md)
- Source: [apps/server/src/workspace/TaskFolders.ts:246](https://github.com/pingdotgg/t3code/blob/c0eed7328db2609e5a535be704e90638aef1c111/apps/server/src/workspace/TaskFolders.ts#L246-L258)
- Shape: `{ _tag: "TaskFolderCheckoutBlockedError"; worktreePath: string; folder: string }`

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

## `UnknownWorkspaceError`

- Kind: schema
- Workspace: [t3](../../architecture/t3.md)
- Source: [apps/server/src/workspace/KnownWorkspaces.ts:18](https://github.com/pingdotgg/t3code/blob/c0eed7328db2609e5a535be704e90638aef1c111/apps/server/src/workspace/KnownWorkspaces.ts#L18-L28)
- Shape: `{ _tag: "UnknownWorkspaceError"; cwd: string; cause?: unknown }`

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

## `WorkspaceBinaryFileError`

- Kind: schema
- Workspace: [t3](../../architecture/t3.md)
- Source: [apps/server/src/workspace/WorkspaceFileSystem.ts:102](https://github.com/pingdotgg/t3code/blob/c0eed7328db2609e5a535be704e90638aef1c111/apps/server/src/workspace/WorkspaceFileSystem.ts#L102-L113)
- Shape: `{ _tag: "WorkspaceBinaryFileError"; workspaceRoot: string; relativePath: string; resolvedPath: string }`

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

## `WorkspaceEntriesBrowseError`

- Kind: schema
- Workspace: [t3](../../architecture/t3.md)
- Source: [apps/server/src/workspace/WorkspaceEntries.ts:80](https://github.com/pingdotgg/t3code/blob/c0eed7328db2609e5a535be704e90638aef1c111/apps/server/src/workspace/WorkspaceEntries.ts#L80-L84)
- Shape: `WorkspaceEntriesWindowsPathUnsupportedError | WorkspaceEntriesCurrentProjectRequiredError | WorkspaceEntriesReadDirectoryError`

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

## `WorkspaceEntriesCurrentProjectRequiredError`

- Kind: schema
- Workspace: [t3](../../architecture/t3.md)
- Source: [apps/server/src/workspace/WorkspaceEntries.ts:50](https://github.com/pingdotgg/t3code/blob/c0eed7328db2609e5a535be704e90638aef1c111/apps/server/src/workspace/WorkspaceEntries.ts#L50-L59)
- Shape: `{ _tag: "WorkspaceEntriesCurrentProjectRequiredError"; partialPath: string }`

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

## `WorkspaceEntriesError`

- Kind: schema
- Workspace: [t3](../../architecture/t3.md)
- Source: [apps/server/src/workspace/WorkspaceEntries.ts:87](https://github.com/pingdotgg/t3code/blob/c0eed7328db2609e5a535be704e90638aef1c111/apps/server/src/workspace/WorkspaceEntries.ts#L87-L96)
- Shape: `WorkspaceEntriesReadDirectoryError | WorkspaceRootNotExistsError | WorkspaceRootCreateFailedError | WorkspaceRootStatFailedError | WorkspaceRootNotDirectoryError | WorkspaceSearchIndexCreateFailed | WorkspaceSearchIndexScanTimedOut | WorkspaceSearchIndexSearchFailed`

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

## `WorkspaceEntriesReadDirectoryError`

- Kind: schema
- Workspace: [t3](../../architecture/t3.md)
- Source: [apps/server/src/workspace/WorkspaceEntries.ts:61](https://github.com/pingdotgg/t3code/blob/c0eed7328db2609e5a535be704e90638aef1c111/apps/server/src/workspace/WorkspaceEntries.ts#L61-L78)
- Shape: `{ _tag: "WorkspaceEntriesReadDirectoryError"; cwd?: string; partialPath: string; parentPath: string; cause: unknown }`

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

## `WorkspaceEntriesWindowsPathUnsupportedError`

- Kind: schema
- Workspace: [t3](../../architecture/t3.md)
- Source: [apps/server/src/workspace/WorkspaceEntries.ts:36](https://github.com/pingdotgg/t3code/blob/c0eed7328db2609e5a535be704e90638aef1c111/apps/server/src/workspace/WorkspaceEntries.ts#L36-L48)
- Shape: `{ _tag: "WorkspaceEntriesWindowsPathUnsupportedError"; cwd?: string; partialPath: string; platform: string }`

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

## `WorkspaceFilePathEscapeError`

- Kind: schema
- Workspace: [t3](../../architecture/t3.md)
- Source: [apps/server/src/workspace/WorkspaceFileSystem.ts:75](https://github.com/pingdotgg/t3code/blob/c0eed7328db2609e5a535be704e90638aef1c111/apps/server/src/workspace/WorkspaceFileSystem.ts#L75-L87)
- Shape: `{ _tag: "WorkspaceFilePathEscapeError"; workspaceRoot: string; relativePath: string; resolvedWorkspaceRoot: string; resolvedPath: string }`

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

## `WorkspaceFileSystemError`

- Kind: schema
- Workspace: [t3](../../architecture/t3.md)
- Source: [apps/server/src/workspace/WorkspaceFileSystem.ts:115](https://github.com/pingdotgg/t3code/blob/c0eed7328db2609e5a535be704e90638aef1c111/apps/server/src/workspace/WorkspaceFileSystem.ts#L115-L120)
- Shape: `WorkspaceFileSystemOperationError | WorkspaceFilePathEscapeError | WorkspacePathNotFileError | WorkspaceBinaryFileError`

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

## `WorkspaceFileSystemOperationError`

- Kind: schema
- Workspace: [t3](../../architecture/t3.md)
- Source: [apps/server/src/workspace/WorkspaceFileSystem.ts:50](https://github.com/pingdotgg/t3code/blob/c0eed7328db2609e5a535be704e90638aef1c111/apps/server/src/workspace/WorkspaceFileSystem.ts#L50-L73)
- Shape: `{ _tag: "WorkspaceFileSystemOperationError"; workspaceRoot: string; relativePath: string; resolvedPath: string; operationPath: string; operation: "realpath-workspace-root" | "realpath-target" | "open" | "stat" | "read" | "close" | "make-directory" | "write-file"; cause: unknown }`

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

## `WorkspacePathNotFileError`

- Kind: schema
- Workspace: [t3](../../architecture/t3.md)
- Source: [apps/server/src/workspace/WorkspaceFileSystem.ts:89](https://github.com/pingdotgg/t3code/blob/c0eed7328db2609e5a535be704e90638aef1c111/apps/server/src/workspace/WorkspaceFileSystem.ts#L89-L100)
- Shape: `{ _tag: "WorkspacePathNotFileError"; workspaceRoot: string; relativePath: string; resolvedPath: string }`

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

## `WorkspacePathOutsideRootError`

- Kind: schema
- Workspace: [t3](../../architecture/t3.md)
- Source: [apps/server/src/workspace/WorkspacePaths.ts:62](https://github.com/pingdotgg/t3code/blob/c0eed7328db2609e5a535be704e90638aef1c111/apps/server/src/workspace/WorkspacePaths.ts#L62-L72)
- Shape: `{ _tag: "WorkspacePathOutsideRootError"; workspaceRoot: string; relativePath: string }`

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

## `WorkspacePathsError`

- Kind: schema
- Workspace: [t3](../../architecture/t3.md)
- Source: [apps/server/src/workspace/WorkspacePaths.ts:74](https://github.com/pingdotgg/t3code/blob/c0eed7328db2609e5a535be704e90638aef1c111/apps/server/src/workspace/WorkspacePaths.ts#L74-L80)
- Shape: `WorkspaceRootNotExistsError | WorkspaceRootCreateFailedError | WorkspaceRootStatFailedError | WorkspaceRootNotDirectoryError | WorkspacePathOutsideRootError`

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

## `WorkspaceRootCreateFailedError`

- Kind: schema
- Workspace: [t3](../../architecture/t3.md)
- Source: [apps/server/src/workspace/WorkspacePaths.ts:23](https://github.com/pingdotgg/t3code/blob/c0eed7328db2609e5a535be704e90638aef1c111/apps/server/src/workspace/WorkspacePaths.ts#L23-L34)
- Shape: `{ _tag: "WorkspaceRootCreateFailedError"; workspaceRoot: string; normalizedWorkspaceRoot: string; cause: unknown }`

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

## `WorkspaceRootNotDirectoryError`

- Kind: schema
- Workspace: [t3](../../architecture/t3.md)
- Source: [apps/server/src/workspace/WorkspacePaths.ts:50](https://github.com/pingdotgg/t3code/blob/c0eed7328db2609e5a535be704e90638aef1c111/apps/server/src/workspace/WorkspacePaths.ts#L50-L60)
- Shape: `{ _tag: "WorkspaceRootNotDirectoryError"; workspaceRoot: string; normalizedWorkspaceRoot: string }`

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

## `WorkspaceRootNotExistsError`

- Kind: schema
- Workspace: [t3](../../architecture/t3.md)
- Source: [apps/server/src/workspace/WorkspacePaths.ts:11](https://github.com/pingdotgg/t3code/blob/c0eed7328db2609e5a535be704e90638aef1c111/apps/server/src/workspace/WorkspacePaths.ts#L11-L21)
- Shape: `{ _tag: "WorkspaceRootNotExistsError"; workspaceRoot: string; normalizedWorkspaceRoot: string }`

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

## `WorkspaceRootStatFailedError`

- Kind: schema
- Workspace: [t3](../../architecture/t3.md)
- Source: [apps/server/src/workspace/WorkspacePaths.ts:36](https://github.com/pingdotgg/t3code/blob/c0eed7328db2609e5a535be704e90638aef1c111/apps/server/src/workspace/WorkspacePaths.ts#L36-L48)
- Shape: `{ _tag: "WorkspaceRootStatFailedError"; workspaceRoot: string; normalizedWorkspaceRoot: string; phase: "validate-existing" | "verify-created"; cause: unknown }`

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

## `WorkspaceSearchIndexCreateFailed`

- Kind: schema
- Workspace: [t3](../../architecture/t3.md)
- Source: [apps/server/src/workspace/WorkspaceSearchIndex.ts:75](https://github.com/pingdotgg/t3code/blob/c0eed7328db2609e5a535be704e90638aef1c111/apps/server/src/workspace/WorkspaceSearchIndex.ts#L75-L86)
- Shape: `{ _tag: "WorkspaceSearchIndexCreateFailed"; cwd: string; reason: string; cause?: unknown }`

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

## `WorkspaceSearchIndexDestroyFailed`

- Kind: schema
- Workspace: [t3](../../architecture/t3.md)
- Source: [apps/server/src/workspace/WorkspaceSearchIndex.ts:128](https://github.com/pingdotgg/t3code/blob/c0eed7328db2609e5a535be704e90638aef1c111/apps/server/src/workspace/WorkspaceSearchIndex.ts#L128-L138)
- Shape: `{ _tag: "WorkspaceSearchIndexDestroyFailed"; cwd: string; cause: unknown }`

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

## `WorkspaceSearchIndexRefreshFailed`

- Kind: schema
- Workspace: [t3](../../architecture/t3.md)
- Source: [apps/server/src/workspace/WorkspaceSearchIndex.ts:115](https://github.com/pingdotgg/t3code/blob/c0eed7328db2609e5a535be704e90638aef1c111/apps/server/src/workspace/WorkspaceSearchIndex.ts#L115-L126)
- Shape: `{ _tag: "WorkspaceSearchIndexRefreshFailed"; cwd: string; reason: string; cause?: unknown }`

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

## `WorkspaceSearchIndexScanTimedOut`

- Kind: schema
- Workspace: [t3](../../architecture/t3.md)
- Source: [apps/server/src/workspace/WorkspaceSearchIndex.ts:88](https://github.com/pingdotgg/t3code/blob/c0eed7328db2609e5a535be704e90638aef1c111/apps/server/src/workspace/WorkspaceSearchIndex.ts#L88-L98)
- Shape: `{ _tag: "WorkspaceSearchIndexScanTimedOut"; cwd: string; timeout: string }`

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

## `WorkspaceSearchIndexSearchFailed`

- Kind: schema
- Workspace: [t3](../../architecture/t3.md)
- Source: [apps/server/src/workspace/WorkspaceSearchIndex.ts:100](https://github.com/pingdotgg/t3code/blob/c0eed7328db2609e5a535be704e90638aef1c111/apps/server/src/workspace/WorkspaceSearchIndex.ts#L100-L113)
- Shape: `{ _tag: "WorkspaceSearchIndexSearchFailed"; cwd: string; queryLength: number; pageSize: number; reason: string; cause?: unknown }`

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

## `WorktreeRecreateError`

- Kind: schema
- Workspace: [t3](../../architecture/t3.md)
- Source: [apps/server/src/workspace/restoreMissingWorktree.ts:31](https://github.com/pingdotgg/t3code/blob/c0eed7328db2609e5a535be704e90638aef1c111/apps/server/src/workspace/restoreMissingWorktree.ts#L31-L42)
- Shape: `{ _tag: "WorktreeRecreateError"; worktreePath: string; branch: string; cause: unknown }`
