Fix Foundry handoff creation flow

This commit is contained in:
Nathan Flurry 2026-03-11 11:06:51 -07:00
parent 6d7e67fe72
commit 5e733e8b37
9 changed files with 30 additions and 15 deletions

View file

@ -661,19 +661,13 @@ export function MockLayout({ workspaceId, selectedHandoffId, selectedSessionId }
throw new Error("Cannot create a handoff without an available repo");
}
const task = window.prompt("Describe the handoff task", "Investigate and implement the requested change");
if (!task) {
return;
}
const title = window.prompt("Optional handoff title", "")?.trim() || undefined;
const branch = window.prompt("Optional branch name", "")?.trim() || undefined;
const task = "New task";
const { handoffId, tabId } = await handoffWorkbenchClient.createHandoff({
repoId,
task,
title: task,
model: "gpt-4o",
...(title ? { title } : {}),
...(branch ? { branch } : {}),
initialPrompt: "",
});
await navigate({
to: "/workspaces/$workspaceId/handoffs/$handoffId",