Merge dev to main: Security improvements and comprehensive test infrastructure #39

Merged
jimmy merged 195 commits from dev into main 2026-04-08 01:42:27 +08:00
Showing only changes of commit bdeaa7ccea - Show all commits
+7 -1
View File
@@ -537,8 +537,14 @@ async def create_agent_execution(
raise ValueError("Task or agent not found") raise ValueError("Task or agent not found")
# Build input context # Build input context
# Prepare input context with serialized datetimes
task_for_context = dict(task)
for key in ["created_at", "updated_at", "completed_at", "due_date"]:
if task_for_context.get(key):
task_for_context[key] = task_for_context[key].isoformat() if hasattr(task_for_context[key], 'isoformat') else task_for_context[key]
input_context = { input_context = {
"task": dict(task), "task": task_for_context,
"agent": dict(agent), "agent": dict(agent),
"timestamp": datetime.utcnow().isoformat() "timestamp": datetime.utcnow().isoformat()
} }