@volter-ai-dev/supercode-ui 0.1.37 → 0.1.38
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/controller.mjs +3 -2
- package/package.json +1 -1
package/controller.mjs
CHANGED
|
@@ -275,12 +275,13 @@ function projectConversationEntry(entry, maxEntryChars, imageRegistry) {
|
|
|
275
275
|
if (entry.kind === 'tool') {
|
|
276
276
|
const argumentsText = truncate((entry.arguments ?? '').trim(), maxEntryChars);
|
|
277
277
|
const result = truncate((entry.resultText ?? '').trim(), maxEntryChars);
|
|
278
|
-
const primary = entry.status === 'pending' ? argumentsText : result;
|
|
279
278
|
const projected = {
|
|
280
279
|
id: entry.id,
|
|
281
280
|
role: 'tool',
|
|
282
281
|
...(Number.isSafeInteger(entry.messageIndex) && entry.messageIndex > 0 ? { messageIndex: entry.messageIndex } : {}),
|
|
283
|
-
|
|
282
|
+
// Tool payloads already have dedicated bounded fields. Repeating the
|
|
283
|
+
// result in `text` nearly doubles transcript transport and storage.
|
|
284
|
+
text: '',
|
|
284
285
|
ts: timestampFromMetadata(entry.metadata),
|
|
285
286
|
truncated: argumentsText.truncated || result.truncated,
|
|
286
287
|
label: entry.name ?? 'tool',
|