fix: send explicit agent composer context
This commit is contained in:
parent
bd0928c135
commit
406bc6418e
@ -1079,10 +1079,16 @@ export function AgentGenerationWorkspaceDarkV2({
|
||||
id: rawChatId,
|
||||
message: request.messages.at(-1),
|
||||
hiddenPrompt: hiddenPromptRef.current || undefined,
|
||||
agentPresetId: transportState.selectedAgentPresetId || undefined,
|
||||
agentPresetId:
|
||||
transportState.selectedAgentPresetId || selectedAgentPresetId || undefined,
|
||||
selectedChatModel: transportState.selectedModelId,
|
||||
composerMode: "agent" as const,
|
||||
selectedVisibilityType: "private",
|
||||
imageParams: transportState.imageParams,
|
||||
contextPayload: {
|
||||
source: "chat" as const,
|
||||
projectId,
|
||||
},
|
||||
agentModePayload: replacementModePayload,
|
||||
},
|
||||
};
|
||||
|
||||
@ -363,10 +363,16 @@ export function AgentGenerationWorkspaceNew({
|
||||
id: rawChatId,
|
||||
message: request.messages.at(-1),
|
||||
hiddenPrompt: hiddenPromptRef.current || undefined,
|
||||
agentPresetId: transportState.selectedAgentPresetId || undefined,
|
||||
agentPresetId:
|
||||
transportState.selectedAgentPresetId || selectedAgentPresetId || undefined,
|
||||
selectedChatModel: transportState.selectedModelId,
|
||||
composerMode: "agent" as const,
|
||||
selectedVisibilityType: "private",
|
||||
imageParams: transportState.imageParams,
|
||||
contextPayload: {
|
||||
source: "chat" as const,
|
||||
projectId,
|
||||
},
|
||||
},
|
||||
};
|
||||
},
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user