Spaces:
Sleeping
Sleeping
fixed thinking spinner completion state and loading status message
Browse files- web/src/App.tsx +4 -0
web/src/App.tsx
CHANGED
|
@@ -505,6 +505,10 @@ function App() {
|
|
| 505 |
: msg
|
| 506 |
)
|
| 507 |
);
|
|
|
|
|
|
|
|
|
|
|
|
|
| 508 |
} else if (event === 'error') {
|
| 509 |
// Error occurred
|
| 510 |
setIsLoading(false);
|
|
|
|
| 505 |
: msg
|
| 506 |
)
|
| 507 |
);
|
| 508 |
+
} else if (event === 'done') {
|
| 509 |
+
// Stream completed - ensure all loading states are cleared
|
| 510 |
+
setIsLoading(false);
|
| 511 |
+
setStatusMessage('');
|
| 512 |
} else if (event === 'error') {
|
| 513 |
// Error occurred
|
| 514 |
setIsLoading(false);
|