We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see ourdocumentation.
There was an error while loading.Please reload this page.
1 parent2f8b056 commitdd626f3Copy full SHA for dd626f3
site/src/pages/TaskPage/TaskSidebar.tsx
@@ -40,6 +40,8 @@ export const TaskSidebar: FC<TaskSidebarProps> = ({ task }) => {
40
.flatMap((r)=>r.agents)
41
.flatMap((a)=>a?.apps)
42
.find((a)=>a?.slug===AI_APP_CHAT_SLUG);
43
+constshowChatApp=
44
+chatApp&&(chatApp.health==="disabled"||chatApp.health==="healthy");
45
46
return(
47
<aside
@@ -49,7 +51,7 @@ export const TaskSidebar: FC<TaskSidebarProps> = ({ task }) => {
49
51
"border-0 border-r border-solid border-border",
50
52
],
53
// We want to make the sidebar wider for chat apps
-chatApp ?"w-[520px]" :"w-[320px]",
54
+showChatApp ?"w-[520px]" :"w-[320px]",
55
])}
56
>
57
<headerclassName="border-0 border-b border-solid border-border p-4 pt-0">
@@ -104,7 +106,7 @@ export const TaskSidebar: FC<TaskSidebarProps> = ({ task }) => {
104
106
)}
105
107
</header>
108
-{chatApp ?(
109
+{showChatApp ?(
110
<TaskAppIFrame
111
active
112
key={chatApp.id}