castle-web-cli 0.4.20 → 0.4.21
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/chat-client.js +5 -0
- package/package.json +1 -1
package/dist/chat-client.js
CHANGED
|
@@ -234,6 +234,11 @@ function TaskBoard(props) {
|
|
|
234
234
|
}
|
|
235
235
|
function Message(props) {
|
|
236
236
|
const { msg } = props;
|
|
237
|
+
// A reply that was nothing but task directives strips to empty -- the board
|
|
238
|
+
// already shows the spawn, so don't render an empty husk of a card.
|
|
239
|
+
if (msg.role === 'assistant' && msg.status !== 'streaming' && !msg.text.trim()) {
|
|
240
|
+
return null;
|
|
241
|
+
}
|
|
237
242
|
if (msg.role === 'log') {
|
|
238
243
|
return React.createElement("div", { className: "msg msg-log" }, msg.text);
|
|
239
244
|
}
|