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

@ -43,6 +43,7 @@ interface CreateHandoffCommand {
agentType: AgentType | null;
explicitTitle: string | null;
explicitBranchName: string | null;
initialPrompt: string | null;
onBranch: string | null;
}
@ -387,7 +388,8 @@ async function createHandoffMutation(c: any, cmd: CreateHandoffCommand): Promise
providerId: cmd.providerId,
agentType: cmd.agentType,
explicitTitle: onBranch ? null : cmd.explicitTitle,
explicitBranchName: onBranch ? null : cmd.explicitBranchName
explicitBranchName: onBranch ? null : cmd.explicitBranchName,
initialPrompt: cmd.initialPrompt,
});
} catch (error) {
if (onBranch) {