修复审批请求在聊天中无提示且无法响应 (#467)
* fix: support run approval prompts in chat * fix(chat): render approval prompts * fix(chat): dedupe approval pattern labels * chore: sync approval flow with current main - update Hermes Agent approval support guidance to PR #21899 - initialize Hermes table schemas in session-sync tests
This commit is contained in:
@@ -195,7 +195,7 @@ function handleDrop(e: DragEvent) {
|
||||
|
||||
function handleSend() {
|
||||
const text = inputText.value.trim()
|
||||
if (!text && attachments.value.length === 0) return
|
||||
if (!canSend.value) return
|
||||
|
||||
chatStore.sendMessage(text, attachments.value.length > 0 ? attachments.value : undefined)
|
||||
inputText.value = ''
|
||||
|
||||
@@ -595,11 +595,15 @@ onBeforeUnmount(() => {
|
||||
<MarkdownRenderer v-else-if="message.content" :content="message.content" />
|
||||
</template>
|
||||
|
||||
<!-- Render assistant message content -->
|
||||
<!-- Render assistant/system message content -->
|
||||
<MarkdownRenderer
|
||||
v-if="message.role === 'assistant' && message.content && !parsedThinking.body"
|
||||
:content="message.content"
|
||||
/>
|
||||
<MarkdownRenderer
|
||||
v-else-if="message.role === 'system' && message.content"
|
||||
:content="message.content"
|
||||
/>
|
||||
|
||||
<span v-if="message.isStreaming && !message.content" class="streaming-dots">
|
||||
<span></span><span></span><span></span>
|
||||
|
||||
Reference in New Issue
Block a user