diff --git a/mateclaw-ui/src/composables/chat/useMessages.ts b/mateclaw-ui/src/composables/chat/useMessages.ts index 147bb452..0fd792fd 100644 --- a/mateclaw-ui/src/composables/chat/useMessages.ts +++ b/mateclaw-ui/src/composables/chat/useMessages.ts @@ -1,6 +1,5 @@ /** * 消息状态管理 Composable - * 参考 @agentscope-ai/chat 的消息管理实现 */ import { ref, computed } from 'vue' import type { Message, MessageContentPart } from '@/types' diff --git a/mateclaw-ui/src/composables/chat/useStickToBottom.ts b/mateclaw-ui/src/composables/chat/useStickToBottom.ts index b08d44a4..283cd397 100644 --- a/mateclaw-ui/src/composables/chat/useStickToBottom.ts +++ b/mateclaw-ui/src/composables/chat/useStickToBottom.ts @@ -1,6 +1,6 @@ /** * 智能滚动 Composable - * 参考 @agentscope-ai/chat 的 StickToBottom 实现,提供智能的自动滚动体验 + * 提供"贴底/脱离锁定"的智能自动滚动体验:内容增长时自动贴底,用户上滚后释放锁定 */ import { ref, computed, onMounted, onUnmounted } from 'vue' diff --git a/mateclaw-ui/src/composables/chat/useStream.ts b/mateclaw-ui/src/composables/chat/useStream.ts index 3dbcb251..f1f00ce4 100644 --- a/mateclaw-ui/src/composables/chat/useStream.ts +++ b/mateclaw-ui/src/composables/chat/useStream.ts @@ -1,6 +1,6 @@ /** * SSE 流处理 Composable - * 参考 @agentscope-ai/chat 的 Stream 实现,提供标准的 SSE 解析 + * 提供标准的 SSE 流式解析 */ import { ref, computed } from 'vue' import { handleAuthFailure, updateTokenFromHeader } from '@/utils/auth' diff --git a/mateclaw-ui/src/composables/chat/useTyping.ts b/mateclaw-ui/src/composables/chat/useTyping.ts index aad289fe..830be894 100644 --- a/mateclaw-ui/src/composables/chat/useTyping.ts +++ b/mateclaw-ui/src/composables/chat/useTyping.ts @@ -1,6 +1,6 @@ /** * 打字机效果 Composable - * 参考 @agentscope-ai/chat 的实现,提供流畅的逐字显示效果 + * 提供流畅的逐字打字显示效果 */ import { ref, computed, watch, nextTick } from 'vue'