fix: default action to send_message instead of list_messages

This commit is contained in:
ymq 2026-08-09 16:57:11 +08:00
parent d46ab14e12
commit 61a3ae43b5

View File

@ -1,7 +1,7 @@
# cockpit_chat.dspy - SDLC Agent Loop v3.1 (streaming NDJSON)
import aiohttp
action = (params_kw or {}).get('action', 'list_messages')
action = (params_kw or {}).get('action', 'send_message')
# AgentIO sends JSON body without action field — detect from message_text presence
if action != 'send_message':
p = params_kw or {}