fix: Chat via agentId statt sessionKey + reply aus details parsen
CI - Build & Test / Backend (.NET) (push) Successful in 26s
CI - Build & Test / Frontend (Vue/TS) (push) Successful in 15s
CI - Build & Test / Security Check (push) Successful in 3s

- SendChatMessageAsync: sessions_send nutzt agentId (nicht sessionKey)
- Reply parsen aus result.details.reply (sessions_send Antwort-Struktur)
- ChatRequest.Model: SessionKey → AgentId
- Controller default: 'iris' → Agent-ID (nicht Session-Key)
This commit is contained in:
2026-06-10 00:58:04 +02:00
parent afcbf941a9
commit e1d6b1eeb3
3 changed files with 12 additions and 9 deletions
+3 -3
View File
@@ -95,11 +95,11 @@ public class DashboardController(OpenClawGatewayClient gateway, ILogger<Dashboar
try
{
var sessionKey = string.IsNullOrWhiteSpace(request.SessionKey)
var agentId = string.IsNullOrWhiteSpace(request.AgentId)
? "iris"
: request.SessionKey.Trim();
: request.AgentId.Trim();
return await gateway.SendChatMessageAsync(sessionKey, request.Message.Trim());
return await gateway.SendChatMessageAsync(agentId, request.Message.Trim());
}
catch (Exception ex)
{