Merge remote-tracking branch 'origin/pr-588' into codex/pr-557-589-security-integration

This commit is contained in:
ddCat committed 2026-09-22 11:19:54 +08:00
commit 205638ad45
8 files changed
+395 -34

No files matched your search

+2 -2
View File
@@ -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)
}