Skip to content

An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作

:sparkles: AI Agent https://github.com/siyuan-note/siyuan/issues/17797

Danield0feac719837
diff --git a/app/src/assets/scss/business/_agentChat.scss b/app/src/assets/scss/business/_agentChat.scss
index 801a541f18..7472a68047 100644
--- a/app/src/assets/scss/business/_agentChat.scss
+++ b/app/src/assets/scss/business/_agentChat.scss
@@ -658,6 +658,10 @@ pre:hover .agent-chat__copy-wrap {
align-items: stretch;
}
+.agent-chat__msg--retry {
+ align-items: stretch;
+}
+
.agent-chat__thinking-card {
border: none;
border-radius: var(--b3-border-radius);
diff --git a/app/src/layout/dock/AgentChat.ts b/app/src/layout/dock/AgentChat.ts
index f3fc4aa886..9da86110b8 100644
--- a/app/src/layout/dock/AgentChat.ts
+++ b/app/src/layout/dock/AgentChat.ts
@@ -1562,7 +1562,6 @@ export class AgentChat extends Model {
}
this.currentAIElement = null;
this.currentAssistantEntryId = "";
- this.currentThinkingEntryId = "";
this.currentContent = "";
} else if (reasoning === "processing" && this.currentContent) {
this.attachStepContent(this.currentContent);
@@ -1981,7 +1980,7 @@ export class AgentChat extends Model {
this.renderedToolNames = {};
this.clearThinking();
const el = document.createElement("div");
- el.className = "agent-chat__msg agent-chat__msg--thinking";
+ el.className = "agent-chat__msg agent-chat__msg--retry";
el.innerHTML = renderRetryCardHTML(attempt, maxRetries);
this.insertBeforeAI(el);
this.scrollToBottom(true);