Update workspace model ownership flows

This commit is contained in:
Mohamed Boudra
2026-06-15 22:02:18 +07:00
parent af0437e6df
commit a4d4d42873
23 changed files with 1100 additions and 154 deletions

View File

@@ -79,6 +79,7 @@ import type {
SendAgentMessageRequest,
PaseoConfigRaw,
PaseoConfigRevision,
WorkspaceCreateRequest,
} from "@getpaseo/protocol/messages";
import type {
AgentPermissionRequest,
@@ -3257,12 +3258,9 @@ export class DaemonClient {
async createWorkspace(
input: {
backing: "local" | "worktree";
cwd?: string;
projectId?: string;
branch?: string;
baseBranch?: string;
source: WorkspaceCreateRequest["source"];
title?: string;
firstAgentContext?: WorkspaceCreateRequest["firstAgentContext"];
},
requestId?: string,
): Promise<WorkspaceCreatePayload> {
@@ -3270,12 +3268,11 @@ export class DaemonClient {
requestId,
message: {
type: "workspace.create.request",
backing: input.backing,
...(input.cwd !== undefined ? { cwd: input.cwd } : {}),
...(input.projectId !== undefined ? { projectId: input.projectId } : {}),
...(input.branch !== undefined ? { branch: input.branch } : {}),
...(input.baseBranch !== undefined ? { baseBranch: input.baseBranch } : {}),
source: input.source,
...(input.title !== undefined ? { title: input.title } : {}),
...(input.firstAgentContext !== undefined
? { firstAgentContext: input.firstAgentContext }
: {}),
},
responseType: "workspace.create.response",
timeout: 60000,