File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -23,7 +23,7 @@ import {
23
23
} from "lucide-react" ;
24
24
import { AppStatusStateIcon } from "modules/apps/AppStatusStateIcon" ;
25
25
import type { Task } from "modules/tasks/tasks" ;
26
- import type { FC } from "react" ;
26
+ import { type FC } from "react" ;
27
27
import { Link as RouterLink } from "react-router-dom" ;
28
28
import { cn } from "utils/cn" ;
29
29
import { timeFrom } from "utils/time" ;
@@ -40,6 +40,7 @@ export const TaskSidebar: FC<TaskSidebarProps> = ({ task }) => {
40
40
. flatMap ( ( r ) => r . agents )
41
41
. flatMap ( ( a ) => a ?. apps )
42
42
. find ( ( a ) => a ?. slug === AI_APP_CHAT_SLUG ) ;
43
+ const showChatApp = chatApp && ( chatApp . health === "disabled" || chatApp . health === "healthy" ) ;
43
44
44
45
return (
45
46
< aside
@@ -49,7 +50,7 @@ export const TaskSidebar: FC<TaskSidebarProps> = ({ task }) => {
49
50
"border-0 border-r border-solid border-border" ,
50
51
] ,
51
52
// We want to make the sidebar wider for chat apps
52
- chatApp ? "w-[520px]" : "w-[320px]" ,
53
+ showChatApp ? "w-[520px]" : "w-[320px]" ,
53
54
] ) }
54
55
>
55
56
< header className = "border-0 border-b border-solid border-border p-4 pt-0" >
@@ -104,7 +105,7 @@ export const TaskSidebar: FC<TaskSidebarProps> = ({ task }) => {
104
105
) }
105
106
</ header >
106
107
107
- { chatApp ? (
108
+ { showChatApp ? (
108
109
< TaskAppIFrame
109
110
active
110
111
key = { chatApp . id }
You can’t perform that action at this time.
0 commit comments