v0.16.19: 修复日志面板清空、URL误传文件工具、网络工具超时、结果截断
This commit is contained in:
@@ -9,7 +9,7 @@ import { getSelectedModel, isThinkEnabled, isVisionAvailable, isToolCallingSuppo
|
||||
import {
|
||||
renderMessages, clearMessagesDOM, appendAssistantPlaceholder, appendSystemMessage,
|
||||
updateLastAssistantMessage, clearMessages, safeMarkdown, enableAutoScroll, resetAutoScroll,
|
||||
resetCurrentPlaceholder, removeCurrentPlaceholder
|
||||
resetCurrentPlaceholder, removeCurrentPlaceholder, ensureLoadingPlaceholder
|
||||
} from './chat-area.js';
|
||||
import { showToast } from './toast.js';
|
||||
import { addToolCard, startToolCard, updateToolCard, clearToolCardsExternal, clearTerminalExternal, getWorkspaceDirPath, hasActiveCards, showWorkingHint, clearWorkingHint } from './workspace-panel.js';
|
||||
@@ -590,6 +590,9 @@ async function handleRetry(): Promise<void> {
|
||||
retryContent = '';
|
||||
retryIterations++;
|
||||
},
|
||||
onThinkingStart: () => {
|
||||
ensureLoadingPlaceholder();
|
||||
},
|
||||
onThinking: (thinking) => { retryThinkContent = thinking; updateLastAssistantMessage(retryContent, thinking, null, getSelectedModel()); },
|
||||
onContent: (content) => { retryContent = content; updateLastAssistantMessage(content, retryThinkContent || null, null, getSelectedModel()); },
|
||||
onToolCallStart: (call) => {
|
||||
@@ -1289,6 +1292,9 @@ async function sendMessageWithAgentLoop(text: string, currentSession: ChatSessio
|
||||
assistantContent = '';
|
||||
thinkContent = '';
|
||||
},
|
||||
onThinkingStart: () => {
|
||||
ensureLoadingPlaceholder();
|
||||
},
|
||||
onThinking: (thinking) => {
|
||||
thinkContent = thinking;
|
||||
updateLastAssistantMessage(assistantContent, thinkContent || null, null, getSelectedModel());
|
||||
|
||||
Reference in New Issue
Block a user