forked from generalaction/emdash
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtask-tab-context.ts
More file actions
24 lines (23 loc) · 947 Bytes
/
Copy pathtask-tab-context.ts
File metadata and controls
24 lines (23 loc) · 947 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
import type { TabViewContext } from '@renderer/features/tabs/core/tab-provider';
/**
* The task-specific tab context passed to PaneLayoutStore/PaneStore when a
* task view is created. Extends the generic TabViewContext with the domain
* fields that task-scoped providers (conversation, file, diff, browser)
* need to operate.
*
* Providers receive TabViewContext at their boundaries and cast to
* TaskTabContext to access the domain fields:
*
* const taskCtx = ctx as TaskTabContext;
* conversationRegistry.get(taskCtx.taskId);
*/
export interface TaskTabContext extends TabViewContext {
projectId: string;
workspaceId: string;
taskId: string;
workspacePath?: string;
/** Workspace-scoped prefix for Monaco model URIs: `workspace:<workspaceId>`. */
modelRootPath: string;
/** Current remote connection for terminal/file-drop helpers, when this task is remote. */
getRemoteConnectionId?: () => string | undefined;
}