Skip to content

Shared task board where people and AI coding agents work as teammates. Source-available, self-hostable.

Go

fix(gateway): extract content from payload in received messages

yushend9ba793feed7
diff --git a/src/gateway/public/index.html b/src/gateway/public/index.html
index 7aa9d01db0..421ba06dac 100644
--- a/src/gateway/public/index.html
+++ b/src/gateway/public/index.html
@@ -674,7 +674,8 @@
});
socket.on('receive', (msg) => {
- const content = typeof msg.payload === 'string' ? msg.payload : JSON.stringify(msg.payload);
+ const p = msg.payload;
+ const content = typeof p === 'string' ? p : (p && p.content ? p.content : JSON.stringify(p));
appendMsg('in', content, msg.from);
});