fix: identify OpenCode Go requests by session
This commit is contained in:
@@ -378,6 +378,7 @@ export const createSessionGoalRuntime = ({
|
||||
prompt: `The goal objective:\n\n<objective>\n${goal.objective}\n</objective>\n\nThe agent's latest turn:\n\n${assistantText}\n\nReturn the verdict JSON. Write the note in the SAME language as this sample from the objective: "${goal.objective.slice(0, 200).replace(/\s+/g, ' ').trim()}"`,
|
||||
system: buildAuditSystemPrompt(),
|
||||
directory,
|
||||
sessionID: typeof lastAssistantInfo?.sessionID === 'string' ? lastAssistantInfo.sessionID : undefined,
|
||||
preferredProviderID: typeof lastAssistantInfo?.providerID === 'string' ? lastAssistantInfo.providerID : undefined,
|
||||
preferredModelID: typeof lastAssistantInfo?.modelID === 'string' ? lastAssistantInfo.modelID : undefined,
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user