agentgui 1.0.561 → 1.0.562
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/package.json
CHANGED
package/static/js/client.js
CHANGED
|
@@ -2847,7 +2847,7 @@ class AgentGUIClient {
|
|
|
2847
2847
|
|
|
2848
2848
|
if (result.chunks && result.chunks.length > 0) {
|
|
2849
2849
|
result.chunks.forEach(chunk => {
|
|
2850
|
-
const blockEl = this.renderer.renderBlock(chunk.data,
|
|
2850
|
+
const blockEl = this.renderer.renderBlock(chunk.data, {}, false);
|
|
2851
2851
|
if (blockEl) {
|
|
2852
2852
|
const wrapper = document.createElement('div');
|
|
2853
2853
|
wrapper.setAttribute('data-chunk-created', chunk.created_at);
|
|
@@ -619,8 +619,13 @@ class StreamingRenderer {
|
|
|
619
619
|
case 'TodoWrite':
|
|
620
620
|
if (input.todos && Array.isArray(input.todos)) {
|
|
621
621
|
const statusIcons = { completed: '✅', in_progress: '⚙', pending: '☐' };
|
|
622
|
+
const hasInProgress = input.todos.some(t => t.status === 'in_progress');
|
|
623
|
+
const completedCount = input.todos.filter(t => t.status === 'completed').length;
|
|
624
|
+
const totalCount = input.todos.length;
|
|
622
625
|
const items = input.todos.map(t => `<div class="todo-item"><span class="todo-status">${statusIcons[t.status] || '☐'}</span><span class="todo-text">${this.escapeHtml(t.content || '')}</span></div>`).join('');
|
|
623
|
-
|
|
626
|
+
const openAttr = hasInProgress ? 'open' : '';
|
|
627
|
+
const summary = `<summary class="folded-tool-bar" style="cursor:pointer;padding:0.5rem;background:var(--color-bg-secondary);border-radius:0.25rem;user-select:none"><span style="font-weight:600;font-size:0.9rem">📋 Tasks</span><span style="margin-left:0.5rem;font-size:0.8rem;color:var(--color-text-secondary)">${completedCount}/${totalCount} complete</span></summary>`;
|
|
628
|
+
return `<details class="folded-tool" ${openAttr}>${summary}<div class="folded-tool-body tool-param-todos" style="padding:0.75rem">${items}</div></details>`;
|
|
624
629
|
}
|
|
625
630
|
return this.renderJsonParams(input);
|
|
626
631
|
|