diff --git a/apps/code/src/renderer/components/HeaderRow.tsx b/apps/code/src/renderer/components/HeaderRow.tsx index 1ee332119..90df2ee26 100644 --- a/apps/code/src/renderer/components/HeaderRow.tsx +++ b/apps/code/src/renderer/components/HeaderRow.tsx @@ -1,3 +1,4 @@ +import { CloudGitInteractionHeader } from "@features/git-interaction/components/CloudGitInteractionHeader"; import { GitInteractionHeader } from "@features/git-interaction/components/GitInteractionHeader"; import { RightSidebarTrigger } from "@features/right-sidebar/components/RightSidebarTrigger"; import { useRightSidebarStore } from "@features/right-sidebar/stores/rightSidebarStore"; @@ -124,9 +125,12 @@ export function HeaderRow() { }} > - {!isCloudTask && rightSidebarOpen && ( - - )} + {rightSidebarOpen && + (isCloudTask ? ( + + ) : ( + + ))} {rightSidebarOpen && ( + + + ); +} diff --git a/apps/code/src/renderer/features/inbox/components/ReportTaskLogs.tsx b/apps/code/src/renderer/features/inbox/components/ReportTaskLogs.tsx index 9b75c7270..0b30c846f 100644 --- a/apps/code/src/renderer/features/inbox/components/ReportTaskLogs.tsx +++ b/apps/code/src/renderer/features/inbox/components/ReportTaskLogs.tsx @@ -222,7 +222,6 @@ export function ReportTaskLogs({ taskId={task.id} task={task} hideInput={reportStatus !== "ready"} - hideCloudStatus /> diff --git a/apps/code/src/renderer/features/task-detail/components/TaskLogsPanel.tsx b/apps/code/src/renderer/features/task-detail/components/TaskLogsPanel.tsx index cdc4f310c..19ab7b458 100644 --- a/apps/code/src/renderer/features/task-detail/components/TaskLogsPanel.tsx +++ b/apps/code/src/renderer/features/task-detail/components/TaskLogsPanel.tsx @@ -20,7 +20,7 @@ import { useCreateWorkspace, useWorkspaceLoaded, } from "@features/workspace/hooks/useWorkspace"; -import { Box, Button, Flex, Spinner, Text } from "@radix-ui/themes"; +import { Box, Flex } from "@radix-ui/themes"; import type { Task } from "@shared/types"; import { getTaskRepository } from "@utils/repository"; import { useCallback, useEffect, useMemo } from "react"; @@ -30,16 +30,9 @@ interface TaskLogsPanelProps { task: Task; /** Hide the message input — log-only view. */ hideInput?: boolean; - /** Hide the cloud status footer bar. */ - hideCloudStatus?: boolean; } -export function TaskLogsPanel({ - taskId, - task, - hideInput, - hideCloudStatus, -}: TaskLogsPanelProps) { +export function TaskLogsPanel({ taskId, task, hideInput }: TaskLogsPanelProps) { const isWorkspaceLoaded = useWorkspaceLoaded(); const { isPending: isCreatingWorkspace } = useCreateWorkspace(); const repoKey = getTaskRepository(task); @@ -60,8 +53,6 @@ export function TaskLogsPanel({ session, repoPath, isCloud, - isCloudRunNotTerminal, - cloudStatus, isRunning, hasError, events, @@ -90,9 +81,7 @@ export function TaskLogsPanel({ handleBashCommand, } = useSessionCallbacks({ taskId, task, session, repoPath }); - const cloudStage = session?.cloudStage ?? null; const cloudOutput = session?.cloudOutput ?? null; - const cloudErrorMessage = session?.cloudErrorMessage ?? null; const prUrl = isCloud && cloudOutput?.pr_url ? (cloudOutput.pr_url as string) : null; const slackThreadUrl = @@ -175,50 +164,6 @@ export function TaskLogsPanel({ /> - {isCloud && !hideCloudStatus && ( - - {prUrl ? ( - <> - - Task completed - - - - ) : isCloudRunNotTerminal ? ( - <> - - - Running in cloud - {cloudStage ? ` \u2014 ${cloudStage}` : ""} - ... - - - ) : cloudStatus === "failed" ? ( - - Task failed - {cloudErrorMessage ? `: ${cloudErrorMessage}` : ""} - - ) : cloudStatus === "cancelled" ? ( - - Task cancelled - - ) : cloudStatus ? ( - - Cloud task completed - - ) : null} - - )} );