Skip to content

Commit 8dd67a1

Browse files
committed
fix: [Agent] After disabling the display of execution details in the settings, the conversation still shows the node execution progress.
1 parent 2f54328 commit 8dd67a1

1 file changed

Lines changed: 18 additions & 16 deletions

File tree

  • ui/src/components/ai-chat/component/answer-content

ui/src/components/ai-chat/component/answer-content/index.vue

Lines changed: 18 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -12,22 +12,24 @@
1212
'padding-right': showUserAvatar ? 'var(--padding-left)' : '0',
1313
}"
1414
>
15-
<el-card
16-
v-if="!chatRecord.write_ed && progress && index >= answer_text_list.length - 1"
17-
shadow="always"
18-
class="border-r-8 mb-8"
19-
style="--el-card-padding: 1px 16px; width: fit-content"
20-
>
21-
<div class="flex align-center">
22-
<component
23-
:is="iconComponent(`${progress.node_type}-icon`)"
24-
class="mr-8"
25-
:size="16"
26-
style="--el-avatar-border-radius: 3px"
27-
></component>
28-
<MdRenderer :source="progress.content"></MdRenderer>
29-
</div>
30-
</el-card>
15+
<template v-if="type === 'debug-ai-chat' ? true : application.show_exec">
16+
<el-card
17+
v-if="!chatRecord.write_ed && progress && index >= answer_text_list.length - 1"
18+
shadow="always"
19+
class="border-r-8 mb-8"
20+
style="--el-card-padding: 1px 16px; width: fit-content"
21+
>
22+
<div class="flex align-center">
23+
<component
24+
:is="iconComponent(`${progress.node_type}-icon`)"
25+
class="mr-8"
26+
:size="16"
27+
style="--el-avatar-border-radius: 3px"
28+
></component>
29+
<MdRenderer :source="progress.content"></MdRenderer>
30+
</div>
31+
</el-card>
32+
</template>
3133
<el-card shadow="always" class="border-r-8" style="--el-card-padding: 6px 16px">
3234
<MdRenderer
3335
v-if="

0 commit comments

Comments
 (0)