Agent Zero AI framework
gen step detail content fix
3clyp500acc14a31525
diff --git a/webui/components/modals/process-step-detail/process-step-detail.html b/webui/components/modals/process-step-detail/process-step-detail.htmlindex 0667646b1..1acfff573 100644--- a/webui/components/modals/process-step-detail/process-step-detail.html+++ b/webui/components/modals/process-step-detail/process-step-detail.html@@ -31,17 +31,17 @@</div><div class="header-actions"><button class="btn btn-action-header copy-all"- @click="$store.stepDetail.copyToClipboard($store.stepDetail.formatStepForCopy($store.stepDetail.selectedStepForDetail))"+ @click.stop="$store.stepDetail.copyToClipboard($store.stepDetail.formatStepForCopy($store.stepDetail.selectedStepForDetail)).then(() => { $el.classList.add('copied'); setTimeout(() => $el.classList.remove('copied'), 1500) })"title="Copy Complete Step with Metadata"><span class="material-symbols-outlined">copy_all</span> All</button><button class="btn btn-action-header copy-content"- @click="$store.stepDetail.copyToClipboard($store.stepDetail.getStepPrimaryContent($store.stepDetail.selectedStepForDetail))"- title="Copy Primary Content Only">+ @click.stop="$store.stepDetail.copyToClipboard($store.stepDetail.getStepPrimaryContent($store.stepDetail.selectedStepForDetail)).then(() => { $el.classList.add('copied'); setTimeout(() => $el.classList.remove('copied'), 1500) })"+ title="Copy Raw LLM Response"><span class="material-symbols-outlined">content_copy</span> Content</button><button class="btn btn-action-header toggle-raw"- @click="showRaw = !showRaw"+ @click.stop="showRaw = !showRaw":class="{ 'active': showRaw }"title="Toggle Raw JSON View"><span class="material-symbols-outlined">data_object</span>@@ -105,6 +105,13 @@</template></div></template>+ <!-- Raw LLM Response (content field) -->+ <template x-if="$store.stepDetail.selectedStepForDetail?.content">+ <div class="content-block raw-response-block">+ <h4><span class="material-symbols-outlined">smart_toy</span> Raw Response</h4>+ <pre class="raw-response-content" x-text="$store.stepDetail.selectedStepForDetail?.content"></pre>+ </div>+ </template></div></template>@@ -305,6 +312,16 @@border-color: var(--color-primary);}+ .btn-action-header.copied {+ background: var(--color-success, #22c55e);+ border-color: var(--color-success, #22c55e);+ color: white;+ }++ .btn-action-header.copied .material-symbols-outlined::before {+ content: 'check';+ }+.modal-body {flex: 1;overflow-y: auto;@@ -390,6 +407,24 @@font-style: italic;}+ .raw-response-block {+ margin-top: 1rem;+ }++ .raw-response-content {+ background: var(--color-background);+ padding: 1rem;+ border-radius: 8px;+ font-family: var(--font-mono);+ font-size: 0.85rem;+ margin: 0;+ max-height: 50vh;+ overflow: auto;+ white-space: pre-wrap;+ word-break: break-word;+ color: var(--color-text);+ }+.tool-call-block {margin-bottom: 1rem;}diff --git a/webui/components/modals/process-step-detail/step-detail-store.js b/webui/components/modals/process-step-detail/step-detail-store.jsindex 306bedcc6..aa968310c 100644--- a/webui/components/modals/process-step-detail/step-detail-store.js+++ b/webui/components/modals/process-step-detail/step-detail-store.js@@ -63,13 +63,15 @@ const model = {},// Get primary content for a step (type-aware)+ // For "Copy Content" button - returns the main content, not metadatagetStepPrimaryContent(step) {if (!step) return "";if (step.type === "code_exe") {return step.content || "";}- if (step.type === "agent" && step.kvps) {- return step.kvps.thoughts || step.kvps.headline || step.content || "";+ if (step.type === "agent") {+ // Raw LLM response is in content field - this is the primary content+ return step.content || "";}if ((step.type === "tool" || step.type === "mcp") && step.kvps) {return step.kvps.result || step.content || "";