Fix OpenClaw chat.send metadata regression

This commit is contained in:
Haitao Pan 2026-04-06 13:50:29 +08:00
parent 62016a87a7
commit 89febb0b3c
2 changed files with 1 additions and 1 deletions

View File

@ -117,7 +117,6 @@ class DesktopGoTaskService implements GoTaskServiceClient {
thinking: request.thinking,
attachments: request.inlineAttachments,
agentId: request.agentId.trim().isEmpty ? null : request.agentId.trim(),
metadata: request.metadata.isEmpty ? null : request.metadata,
);
final pending = _PendingOpenClawTask(
request: request,

View File

@ -187,6 +187,7 @@ void main() {
expect(acp.executeCalls, 0);
expect(gateway.sendChatCalls, hasLength(1));
expect(gateway.sendChatCalls.single['metadata'], isNull);
expect(result.route, GoTaskServiceRoute.openClawTask);
expect(result.message, 'OPENCLAW_OK');
expect(updates.last.route, GoTaskServiceRoute.openClawTask);