From c288148c12302e5e91544146b2a9a60cc65a4ce0 Mon Sep 17 00:00:00 2001 From: chenhang Date: Wed, 24 Jun 2026 18:18:21 +0800 Subject: [PATCH] fix(chat): remove dynamic upgradeHint for daily limit message --- src/app/chat/chat-screen.tsx | 3 +-- src/stores/chat/chat-machine.helpers.ts | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/src/app/chat/chat-screen.tsx b/src/app/chat/chat-screen.tsx index 61294ea9..03017e1d 100644 --- a/src/app/chat/chat-screen.tsx +++ b/src/app/chat/chat-screen.tsx @@ -48,8 +48,7 @@ export function ChatScreen() { // 消息数量限制由后端统一返回 lockDetail,前端不再处理本地额度。 const showMessageLimitBanner = state.upgradePromptVisible && state.upgradeReason === "daily_limit"; - const messageLimitTitle = - state.upgradeHint ?? "The limit for free chat times\nhas been reached"; + const messageLimitTitle = "The limit for free chat times\nhas been reached"; const messageLimitCta = isGuest ? "Log in to continue chatting" : undefined; const showPrivatePaywallBanner = diff --git a/src/stores/chat/chat-machine.helpers.ts b/src/stores/chat/chat-machine.helpers.ts index 04eb0dc5..c899e99d 100644 --- a/src/stores/chat/chat-machine.helpers.ts +++ b/src/stores/chat/chat-machine.helpers.ts @@ -157,7 +157,7 @@ export function applyHttpSendOutput( isReplyingAI: false, upgradePromptVisible: true, upgradeReason: "daily_limit", - upgradeHint: lockDetail.hint, + upgradeHint: null, upgradeDetail: normalizeLockDetail(lockDetail.detail), }; }