Merge remote-tracking branch 'origin/pr-588' into codex/pr-557-589-security-integration
This commit is contained in:
commit
205638ad45
8 files changed
+395
-34
No files matched your search
@@ -278,8 +278,8 @@ func cloudAgentCanonicalFor(system string, history []providerTextMessage, prompt
|
||||
messages := []map[string]any{}
|
||||
for _, m := range history {
|
||||
message := map[string]any{"role": m.Role, "content": m.Content}
|
||||
if isCloudAgentContinuationMessage(m) {
|
||||
message[cloudAgentContextSourceKey] = "continuation"
|
||||
if m.AgentContextSource != "" {
|
||||
message[cloudAgentContextSourceKey] = m.AgentContextSource
|
||||
}
|
||||
messages = append(messages, message)
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user