()
| 43 | |
| 44 | // Determine the status text |
| 45 | const getStatusText = (): string => { |
| 46 | if (!isResolved) { |
| 47 | return lastToolInfo || 'Initializing…'; |
| 48 | } |
| 49 | if (isBackgrounded) { |
| 50 | return taskDescription ?? 'Running in the background'; |
| 51 | } |
| 52 | return 'Done'; |
| 53 | }; |
| 54 | |
| 55 | return ( |
| 56 | <Box flexDirection="column"> |