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 commitf948c50Copy full SHA for f948c50
site/src/pages/TaskPage/TaskSidebar.tsx
@@ -40,6 +40,7 @@ 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=chatApp&&(chatApp.health==="disabled"||chatApp.health==="healthy");
44
45
return(
46
<aside
@@ -49,7 +50,7 @@ export const TaskSidebar: FC<TaskSidebarProps> = ({ task }) => {
49
50
"border-0 border-r border-solid border-border",
51
],
52
// We want to make the sidebar wider for chat apps
-chatApp ?"w-[520px]" :"w-[320px]",
53
+showChatApp ?"w-[520px]" :"w-[320px]",
54
])}
55
>
56
<headerclassName="border-0 border-b border-solid border-border p-4 pt-0">
@@ -104,7 +105,7 @@ export const TaskSidebar: FC<TaskSidebarProps> = ({ task }) => {
104
105
)}
106
</header>
107
-{chatApp ?(
108
+{showChatApp ?(
109
<TaskAppIFrame
110
active
111
key={chatApp.id}