diff --git a/frontend/src/pages/console/user/task/task-detail.tsx b/frontend/src/pages/console/user/task/task-detail.tsx index 9878f0c5..ebea05b4 100644 --- a/frontend/src/pages/console/user/task/task-detail.tsx +++ b/frontend/src/pages/console/user/task/task-detail.tsx @@ -347,77 +347,70 @@ export default function TaskDetailPage() { ) - if (!hasPanel || showPreparing) { - return ( -
- {showPreparing ? : chatSection} - -
- ) - } - return (
- - - {chatSection} - - - -
- {activePanel === "files" && ( -
- setActivePanel(null)} - envid={envid} - /> -
- )} - {activePanel === "terminal" && ( -
-
- setActivePanel(null)} /> + {showPreparing ? ( + + ) : ( + + + {chatSection} + + {hasPanel && ( + <> + + +
+ {activePanel === "files" && ( +
+ setActivePanel(null)} + envid={envid} + /> +
+ )} + {activePanel === "terminal" && ( +
+
+ setActivePanel(null)} /> +
+
+ )} + {activePanel === "changes" && ( +
+ setActivePanel(null)} + /> +
+ )} + {activePanel === "preview" && ( +
+ setActivePanel(null)} + /> +
+ )}
-
- )} - {activePanel === "changes" && ( -
- setActivePanel(null)} - /> -
- )} - {activePanel === "preview" && ( -
- setActivePanel(null)} - /> -
- )} -
- - + + + )} + + )}