fix(chat): show loading when run from console and when sending in app (#228)

This commit is contained in:
Mao Mr
2026-02-28 17:09:00 +08:00
committed by GitHub
Unverified
parent 95a4c0234a
commit bf62639573
3 changed files with 35 additions and 2 deletions

View File

@@ -110,7 +110,7 @@ export function Chat() {
{/* Messages Area */}
<div className="flex-1 overflow-y-auto px-4 py-4">
<div className="max-w-4xl mx-auto space-y-4">
{loading ? (
{loading && !sending ? (
<div className="flex h-full items-center justify-center py-20">
<LoadingSpinner size="lg" />
</div>