feat: 工具卡片精简、移除token统计、消息时间显示

1. 聊天消息工具卡片只显示工具名+调用内容,不显示执行结果(工作空间工具页签已有完整结果)
2. 移除所有token统计相关代码:顶栏统计、消息内token/耗时显示、历史记录中的token显示
3. 每条消息显示具体时间(年月日 时分秒),formatTime 已含秒数
This commit is contained in:
thzxx
2026-04-23 15:42:15 +08:00
parent 7ed75415a3
commit 684b2f773b
7 changed files with 6 additions and 166 deletions
+1 -3
View File
@@ -15,7 +15,7 @@ import { initToast, showToast } from './components/toast.js';
import { initLightbox, closeLightbox } from './components/lightbox.js';
import { initHeader, checkConnection } from './components/header.js';
import { initModelBar, loadModels, setSelectedModel } from './components/model-bar.js';
import { initChatArea, renderMessages, clearMessages, enableAutoScroll, updateTotalTokens } from './components/chat-area.js';
import { initChatArea, renderMessages, clearMessages, enableAutoScroll } from './components/chat-area.js';
import { initInputArea } from './components/input-area.js';
import { initSettingsModal, closeSettingsModal } from './components/settings-modal.js';
import { initHistoryModal, closeHistoryModal } from './components/history-modal.js';
@@ -279,7 +279,6 @@ async function startNewSession(): Promise<void> {
clearMessages();
enableAutoScroll();
renderMessages();
updateTotalTokens();
// ── 重置工作空间到空闲状态 ──
clearToolCardsExternal();
@@ -403,7 +402,6 @@ async function init(): Promise<void> {
state.set('heartbeatInterval', heartbeatInterval);
(document.querySelector('#chatInput') as HTMLElement)?.focus();
updateTotalTokens();
logSuccess('应用初始化完成');