Skip to content

🤯 LobeHub - Super-Agents on Your Team. Add super-agents to the chats your team already uses.They take on work by themselves and get better every week.

💄 style(task): reflow the task detail header by column width (#19479)

Inneidaaea0f3ab1b
diff --git a/src/features/AgentTasks/AgentTaskDetail/TaskAcceptanceStateRow.tsx b/src/features/AgentTasks/AgentTaskDetail/TaskAcceptanceStateRow.tsx
index 31be9619847..acf3b009fa7 100644
--- a/src/features/AgentTasks/AgentTaskDetail/TaskAcceptanceStateRow.tsx
+++ b/src/features/AgentTasks/AgentTaskDetail/TaskAcceptanceStateRow.tsx
@@ -21,6 +21,7 @@ import { useAcceptanceBySubject } from '@/features/Acceptance';
import { useTaskStore } from '@/store/task';
import { taskDetailSelectors } from '@/store/task/selectors';
+import { taskDetailLayoutStyles as styles } from './taskDetailLayoutStyles';
import { useOpenAcceptanceInPanel } from './useOpenAcceptanceInPanel';
/**
@@ -115,9 +116,8 @@ const TaskAcceptanceStateRow = memo(() => {
clickable
horizontal
align={'center'}
- gap={10}
- paddingBlock={4}
- paddingInline={8}
+ className={styles.propertyItem}
+ gap={8}
// The label may be truncated below, so the hover title carries it in
// full ahead of the "click to review" hint.
title={`${label} · ${t('taskDetail.acceptanceState.hint')}`}
@@ -131,9 +131,9 @@ const TaskAcceptanceStateRow = memo(() => {
spin={'spin' in meta && meta.spin}
style={{ flex: 'none' }}
/>
- {/* The 200px properties block is narrower than several labels; one
- line with an ellipsis keeps every row the same height, and the
- `title` above still carries the full label and hint on hover. */}
+ {/* The sidebar form is narrower than several labels; one line with an
+ ellipsis keeps every row the same height, and the `title` above
+ still carries the full label and hint on hover. */}
<Text ellipsis style={{ minWidth: 0 }} weight={500}>
{label}
</Text>
diff --git a/src/features/AgentTasks/AgentTaskDetail/TaskDetailPage.tsx b/src/features/AgentTasks/AgentTaskDetail/TaskDetailPage.tsx
index f2754239788..05db526c094 100644
--- a/src/features/AgentTasks/AgentTaskDetail/TaskDetailPage.tsx
+++ b/src/features/AgentTasks/AgentTaskDetail/TaskDetailPage.tsx
@@ -108,7 +108,7 @@ const TaskDetailPage = memo<TaskDetailPageProps>(({ taskId, showTaskAgentPanelTo
centered reading column rather than the list page's full-bleed rows,
whose value is the horizontal room for their metadata columns. */}
<WideScreenContainer>
- {isInitialLoading ? <TaskDetailSkeleton /> : <TaskDetailSections />}
+ {isInitialLoading ? <TaskDetailSkeleton chrome={'body'} /> : <TaskDetailSections />}
</WideScreenContainer>
</Flexbox>
<TopicChatDrawer />
diff --git a/src/features/AgentTasks/AgentTaskDetail/TaskDetailSections.tsx b/src/features/AgentTasks/AgentTaskDetail/TaskDetailSections.tsx
index 8eec718a5c3..8a7699f295a 100644
--- a/src/features/AgentTasks/AgentTaskDetail/TaskDetailSections.tsx
+++ b/src/features/AgentTasks/AgentTaskDetail/TaskDetailSections.tsx
@@ -5,6 +5,7 @@ import TaskAcceptance from './TaskAcceptance';
import TaskActivities from './TaskActivities';
import TaskArtifacts from './TaskArtifacts';
import TaskDetailAssignee from './TaskDetailAssignee';
+import { taskDetailLayoutStyles as styles } from './taskDetailLayoutStyles';
import TaskDetailRunPauseAction from './TaskDetailRunPauseAction';
import TaskDetailTitleInput from './TaskDetailTitleInput';
import TaskInstruction from './TaskInstruction';
@@ -21,29 +22,21 @@ import TaskSubtasks from './TaskSubtasks';
*/
const TaskDetailSections = memo(() => {
return (
- <>
- <Flexbox gap={4} style={{ paddingBlock: '24px 36px' }}>
- <TaskDetailTitleInput />
- {/* Everything here wraps rather than compresses: this block also renders
- inside the chat-side Portal and beside the task-agent panel, where the
- column can get far narrower than the viewport. Without wrapping, the
- assignee chip is the item that gives — it shrinks until its label
- breaks one character per line. */}
- <Flexbox horizontal align={'flex-start'} gap={16} justify={'space-between'} wrap={'wrap'}>
- {/* `minWidth` is what makes the row actually wrap: a `flex: 1` column
- with `min-width: 0` shrinks to a sliver instead, and the properties
- panel keeps its place while the assignee chip overflows. */}
- <Flexbox align={'flex-start'} flex={1} gap={16} style={{ minWidth: 240 }}>
- <TaskParentBar />
- <Flexbox horizontal align={'center'} gap={8} style={{ maxWidth: '100%' }} wrap={'wrap'}>
- <TaskDetailAssignee />
- <TaskModelConfig />
- </Flexbox>
+ <div className={styles.root}>
+ <div className={styles.header}>
+ <Flexbox className={styles.main} gap={12}>
+ <TaskParentBar />
+ <TaskDetailTitleInput />
+ <Flexbox horizontal align={'center'} gap={8} style={{ maxWidth: '100%' }} wrap={'wrap'}>
<TaskDetailRunPauseAction />
+ <TaskDetailAssignee />
+ <TaskModelConfig />
</Flexbox>
- <TaskProperties />
</Flexbox>
- </Flexbox>
+ <div className={styles.side}>
+ <TaskProperties />
+ </div>
+ </div>
<Flexbox gap={24} style={{ paddingBottom: 120 }}>
<TaskInstruction />
<TaskAcceptance />
@@ -51,7 +44,7 @@ const TaskDetailSections = memo(() => {
<TaskArtifacts />
<TaskActivities />
</Flexbox>
- </>
+ </div>
);
});
diff --git a/src/features/AgentTasks/AgentTaskDetail/TaskDetailSkeleton.tsx b/src/features/AgentTasks/AgentTaskDetail/TaskDetailSkeleton.tsx
index 75960164375..fa32986c294 100644
--- a/src/features/AgentTasks/AgentTaskDetail/TaskDetailSkeleton.tsx
+++ b/src/features/AgentTasks/AgentTaskDetail/TaskDetailSkeleton.tsx
@@ -5,6 +5,11 @@ import { createStaticStyles, cssVar } from 'antd-style';
import { memo } from 'react';
import SkeletonBar from '@/components/Skeleton/Bar';
+import NavHeader from '@/features/NavHeader';
+import WideScreenContainer from '@/features/WideScreenContainer';
+import type { RouteSkeletonProps } from '@/spa/router/routeMeta';
+
+import { taskDetailLayoutStyles as layout } from './taskDetailLayoutStyles';
const styles = createStaticStyles(({ css }) => ({
acceptance: css`
@@ -25,51 +30,47 @@ const styles = createStaticStyles(({ css }) => ({
background: ${cssVar.colorBgContainer};
`,
- propertyCard: css`
- flex: none;
-
- width: 200px;
- height: 108px;
- padding-block: 8px;
- padding-inline: 12px;
- border: 1px solid ${cssVar.colorBorderSecondary};
- border-radius: ${cssVar.borderRadiusLG};
- `,
}));
-const TaskDetailSkeleton = memo(() => (
- <Flexbox aria-busy flex={1}>
- <Flexbox gap={4} style={{ paddingBlock: '24px 44px' }}>
- <Flexbox style={{ paddingBottom: 33, paddingTop: 5 }}>
- <SkeletonBar height={24} width={'min(520px, 56%)'} />
- </Flexbox>
- <Flexbox horizontal align={'flex-start'} gap={16} justify={'space-between'} wrap={'wrap'}>
- <Flexbox align={'flex-start'} flex={1} gap={16} style={{ minWidth: 240 }}>
- <Flexbox horizontal gap={8} wrap={'wrap'}>
- <Flexbox horizontal align={'center'} className={styles.control} gap={8} width={96}>
- <SkeletonBar height={16} radius={'50%'} width={16} />
- <SkeletonBar height={10} width={48} />
- </Flexbox>
- <Flexbox horizontal align={'center'} className={styles.control} gap={8} width={176}>
- <SkeletonBar height={16} radius={'50%'} width={16} />
- <SkeletonBar height={10} width={116} />
- </Flexbox>
- </Flexbox>
+const TaskDetailBodySkeleton = () => (
+ <Flexbox aria-busy className={layout.root} flex={1}>
+ <div className={layout.header}>
+ <Flexbox className={layout.main} gap={12}>
+ <Flexbox style={{ paddingBottom: 5, paddingTop: 5 }}>
+ <SkeletonBar height={24} width={'min(520px, 56%)'} />
+ </Flexbox>
+ <Flexbox horizontal gap={8} wrap={'wrap'}>
<Flexbox horizontal align={'center'} className={styles.control} gap={8} width={76}>
<SkeletonBar height={12} radius={3} width={12} />
<SkeletonBar height={10} width={36} />
</Flexbox>
+ <Flexbox horizontal align={'center'} className={styles.control} gap={8} width={96}>
+ <SkeletonBar height={16} radius={'50%'} width={16} />
+ <SkeletonBar height={10} width={48} />
+ </Flexbox>
+ <Flexbox horizontal align={'center'} className={styles.control} gap={8} width={176}>
+ <SkeletonBar height={16} radius={'50%'} width={16} />
+ <SkeletonBar height={10} width={116} />
+ </Flexbox>
</Flexbox>
- <Flexbox className={styles.propertyCard} gap={8}>
+ </Flexbox>
+ <div className={layout.side}>
+ <div className={layout.properties}>
{Array.from({ length: 3 }).map((_, index) => (
- <Flexbox horizontal align={'center'} gap={10} key={index}>
+ <Flexbox
+ horizontal
+ align={'center'}
+ className={layout.propertyItem}
+ gap={8}
+ key={index}
+ >
<SkeletonBar height={16} radius={4} width={16} />
<SkeletonBar height={14} width={index === 1 ? 80 : 68} />
</Flexbox>
))}
- </Flexbox>
- </Flexbox>
- </Flexbox>
+ </div>
+ </div>
+ </div>
<Flexbox gap={24} style={{ paddingBottom: 120 }}>
<Flexbox gap={12}>
@@ -98,7 +99,22 @@ const TaskDetailSkeleton = memo(() => (
</Flexbox>
</Flexbox>
</Flexbox>
-));
+);
+
+const TaskDetailSkeleton = memo<RouteSkeletonProps>(({ chrome = 'page' }) =>
+ chrome === 'body' ? (
+ <TaskDetailBodySkeleton />
+ ) : (
+ <Flexbox flex={1} height={'100%'}>
+ <NavHeader />
+ <Flexbox flex={1} style={{ minHeight: 0, overflowY: 'auto' }}>
+ <WideScreenContainer>
+ <TaskDetailBodySkeleton />
+ </WideScreenContainer>
+ </Flexbox>
+ </Flexbox>
+ ),
+);
TaskDetailSkeleton.displayName = 'TaskDetailSkeleton';
diff --git a/src/features/AgentTasks/AgentTaskDetail/TaskParentBar.tsx b/src/features/AgentTasks/AgentTaskDetail/TaskParentBar.tsx
index 19ed1f4f839..4ed10679e40 100644
--- a/src/features/AgentTasks/AgentTaskDetail/TaskParentBar.tsx
+++ b/src/features/AgentTasks/AgentTaskDetail/TaskParentBar.tsx
@@ -75,26 +75,31 @@ const TaskParentBar = memo(() => {
: parent.agentId;
return (
- <Flexbox horizontal align="center" gap={8}>
- <Text fontSize={12} type={'secondary'}>
+ <Flexbox horizontal align="center" gap={8} style={{ maxWidth: '100%', minWidth: 0 }}>
+ <Text fontSize={12} style={{ flex: 'none' }} type={'secondary'}>
{t('taskDetail.subIssueOf')}
</Text>
<Button
icon={<TaskStatusIcon size={16} status={parentStatus} />}
size={'small'}
+ style={{ maxWidth: '100%', minWidth: 0 }}
type={'text'}
onClick={() => navigate(taskDetailPath(parent.identifier, parentAgentId ?? undefined))}
>
- <Text weight={500}>{parent.name}</Text>
+ <Text ellipsis style={{ minWidth: 0 }} weight={500}>
+ {parent.name}
+ </Text>
</Button>
{parentSubtasks.length > 0 && (
- <TaskSubtaskProgressTag
- currentIdentifier={currentIdentifier}
- subtasks={parentSubtasks}
- onSubtaskClick={(identifier, assigneeAgentId) =>
- navigate(taskDetailPath(identifier, assigneeAgentId))
- }
- />
+ <span style={{ flex: 'none' }}>
+ <TaskSubtaskProgressTag
+ currentIdentifier={currentIdentifier}
+ subtasks={parentSubtasks}
+ onSubtaskClick={(identifier, assigneeAgentId) =>
+ navigate(taskDetailPath(identifier, assigneeAgentId))
+ }
+ />
+ </span>
)}
</Flexbox>
);
diff --git a/src/features/AgentTasks/AgentTaskDetail/TaskProperties.tsx b/src/features/AgentTasks/AgentTaskDetail/TaskProperties.tsx
index e802e809e08..5b25e02691e 100644
--- a/src/features/AgentTasks/AgentTaskDetail/TaskProperties.tsx
+++ b/src/features/AgentTasks/AgentTaskDetail/TaskProperties.tsx
@@ -18,6 +18,7 @@ import { UnassignedAssigneeIcon } from '../features/UnassignedAssigneeIcon';
import { shouldShowMemberAssignee } from '../shared/memberAssigneeMode';
import { useUserDisplayMeta } from '../shared/useUserDisplayMeta';
import TaskAcceptanceStateRow from './TaskAcceptanceStateRow';
+import { taskDetailLayoutStyles as styles } from './taskDetailLayoutStyles';
import TaskScheduleConfig from './TaskScheduleConfig';
interface StatusMeta {
@@ -68,15 +69,14 @@ const TaskProperties = memo(() => {
const priorityMeta = PRIORITY_META[priority as TaskPriority] ?? PRIORITY_META[0];
return (
- <Block gap={4} padding={4} variant={'outlined'} width={200}>
+ <div className={styles.properties}>
<TaskStatusTag status={status} taskIdentifier={taskId}>
<Block
clickable
horizontal
align="center"
- gap={10}
- paddingBlock={4}
- paddingInline={8}
+ className={styles.propertyItem}
+ gap={8}
variant={'borderless'}
>
<TaskStatusTag disableDropdown size={16} status={status} taskIdentifier={taskId} />
@@ -94,9 +94,8 @@ const TaskProperties = memo(() => {
clickable
horizontal
align="center"
- gap={10}
- paddingBlock={4}
- paddingInline={8}
+ className={styles.propertyItem}
+ gap={8}
variant={'borderless'}
>
<TaskPriorityTag disableDropdown priority={priority} size={16} taskIdentifier={taskId} />
@@ -106,7 +105,6 @@ const TaskProperties = memo(() => {
{shouldShowMemberAssignee(activeWorkspaceId, assigneeUserId) && (
<AssigneeMemberSelector
- fullWidth
currentUserId={assigneeUserId}
disabled={status === 'running'}
taskCreatorId={createdByUserId}
@@ -117,11 +115,9 @@ const TaskProperties = memo(() => {
clickable
horizontal
align="center"
- gap={10}
- paddingBlock={4}
- paddingInline={8}
+ className={styles.propertyItem}
+ gap={8}
variant={'borderless'}
- width={'100%'}
>
{assigneeUserId ? (
<>
@@ -147,9 +143,8 @@ const TaskProperties = memo(() => {
clickable
horizontal
align="center"
- gap={10}
- paddingBlock={4}
- paddingInline={8}
+ className={styles.propertyItem}
+ gap={8}
variant={'borderless'}
>
<TaskTriggerTag
@@ -161,7 +156,7 @@ const TaskProperties = memo(() => {
/>
</Block>
</TaskScheduleConfig>
- </Block>
+ </div>
);
});
diff --git a/src/features/AgentTasks/AgentTaskDetail/taskDetailLayoutStyles.ts b/src/features/AgentTasks/AgentTaskDetail/taskDetailLayoutStyles.ts
new file mode 100644
index 00000000000..bca3bd907d7
--- /dev/null
+++ b/src/features/AgentTasks/AgentTaskDetail/taskDetailLayoutStyles.ts
@@ -0,0 +1,69 @@
+import { createStaticStyles, cssVar } from 'antd-style';
+
+export const TASK_DETAIL_SIDEBAR_MIN_WIDTH = 720;
+
+const SIDEBAR_WIDTH = 232;
+
+// One header, two forms, chosen by the column width rather than the viewport:
+// the same sections mount in the full page, the chat-side Portal and beside
+// the task-agent panel. Wide columns get a Linear-style properties sidebar;
+// narrow ones fold the same triggers into a pill row under the title.
+export const taskDetailLayoutStyles = createStaticStyles(({ css }) => ({
+ root: css`
+ container-name: task-detail;
+ container-type: inline-size;
+ `,
+ header: css`
+ display: grid;
+ grid-template-columns: minmax(0, 1fr);
+ row-gap: 16px;
+ padding-block: 24px 36px;
+
+ @container task-detail (width >= ${TASK_DETAIL_SIDEBAR_MIN_WIDTH}px) {
+ grid-template-columns: minmax(0, 1fr) ${SIDEBAR_WIDTH}px;
+ column-gap: 40px;
+ }
+ `,
+ main: css`
+ min-width: 0;
+ `,
+ side: css`
+ min-width: 0;
+
+ @container task-detail (width >= ${TASK_DETAIL_SIDEBAR_MIN_WIDTH}px) {
+ grid-column: 2;
+ grid-row: 1;
+ padding-block-start: 8px;
+ }
+ `,
+ properties: css`
+ display: flex;
+ flex-wrap: wrap;
+ gap: 8px;
+ align-items: center;
+
+ max-width: 100%;
+
+ @container task-detail (width >= ${TASK_DETAIL_SIDEBAR_MIN_WIDTH}px) {
+ flex-direction: column;
+ gap: 2px;
+ align-items: stretch;
+ }
+ `,
+ propertyItem: css`
+ max-width: 100%;
+ height: 28px;
+ padding-inline: 8px 10px;
+ border-radius: ${cssVar.borderRadius};
+
+ white-space: nowrap;
+
+ background: ${cssVar.colorFillTertiary};
+
+ @container task-detail (width >= ${TASK_DETAIL_SIDEBAR_MIN_WIDTH}px) {
+ width: 100%;
+ height: 30px;
+ background: transparent;
+ }
+ `,
+}));
diff --git a/src/features/AgentTasks/features/TaskSubtaskProgressTag.test.tsx b/src/features/AgentTasks/features/TaskSubtaskProgressTag.test.tsx
index 261aea0ccf3..1d160656a36 100644
--- a/src/features/AgentTasks/features/TaskSubtaskProgressTag.test.tsx
+++ b/src/features/AgentTasks/features/TaskSubtaskProgressTag.test.tsx
@@ -16,15 +16,20 @@ vi.mock('@lobehub/ui/base-ui', async (importOriginal) => ({
DropdownMenu: ({
children,
items,
+ onOpenChange,
open,
}: {
children: ReactNode;
items?: Array<{ key: string; onClick?: () => void }>;
+ onOpenChange?: (open: boolean) => void;
open?: boolean;
}) => (
<div>
{children}
<span data-testid="dropdown-open">{String(open)}</span>
+ <button data-testid="dropdown-hover" type="button" onClick={() => onOpenChange?.(true)}>
+ hover
+ </button>
{items?.map((item) => (
<button
data-testid={`subtask-${item.key}`}
@@ -132,6 +137,22 @@ describe('TaskSubtaskProgressTag', () => {
await waitFor(() => expect(screen.getByTestId('dropdown-open')).toHaveTextContent('true'));
});
+ it('keeps a hover-opened static menu open when the tag is clicked', async () => {
+ render(
+ <TaskSubtaskProgressTag
+ subtasks={[{ identifier: 'T-2', name: 'Child task', status: 'backlog' }]}
+ onSubtaskClick={vi.fn()}
+ />,
+ );
+
+ fireEvent.click(screen.getByTestId('dropdown-hover'));
+ await waitFor(() => expect(screen.getByTestId('dropdown-open')).toHaveTextContent('true'));
+
+ fireEvent.click(screen.getByText('0/1'));
+
+ expect(screen.getByTestId('dropdown-open')).toHaveTextContent('true');
+ });
+
it('closes an open subtask menu without refreshing it again', async () => {
const onRequestSubtasks = vi
.fn()
diff --git a/src/features/AgentTasks/features/TaskSubtaskProgressTag.tsx b/src/features/AgentTasks/features/TaskSubtaskProgressTag.tsx
index 04767918baf..ed42b25049a 100644
--- a/src/features/AgentTasks/features/TaskSubtaskProgressTag.tsx
+++ b/src/features/AgentTasks/features/TaskSubtaskProgressTag.tsx
@@ -153,12 +153,16 @@ const TaskSubtaskProgressTag = memo<TaskSubtaskProgressTagProps>(
async (event: MouseEvent<HTMLElement>) => {
event.stopPropagation();
+ // Only the lazy path owns open state; static menus leave toggling to
+ // the dropdown trigger so a click never fights its own open.
+ if (!onRequestSubtasks) return;
+
if (open) {
setOpen(false);
return;
}
- if (!onRequestSubtasks || requesting) return;
+ if (requesting) return;
setRequesting(true);
try {
@@ -224,7 +228,7 @@ const TaskSubtaskProgressTag = memo<TaskSubtaskProgressTagProps>(
<DropdownMenu
items={navigationItems}
open={open}
- trigger={'both'}
+ trigger={'click'}
onOpenChange={handleOpenChange}
>
{tag}
diff --git a/src/features/AgentTasks/routeMeta.ts b/src/features/AgentTasks/routeMeta.ts
index 1bf6e5fcb5d..94b2954baf4 100644
--- a/src/features/AgentTasks/routeMeta.ts
+++ b/src/features/AgentTasks/routeMeta.ts
@@ -1,7 +1,7 @@
import { ListTodoIcon } from 'lucide-react';
-import { createSurfaceSkeleton } from '@/components/Skeleton/Surface';
import TasksSkeleton from '@/components/Skeleton/Tasks';
+import TaskDetailSkeleton from '@/features/AgentTasks/AgentTaskDetail/TaskDetailSkeleton';
import { usePublishDynamicRouteMeta } from '@/features/RouteMeta/usePublishDynamicRouteMeta';
import { matchesRouteWorkspace, useRouteWorkspaceId } from '@/features/RouteMeta/workspaceScope';
import type { DynamicRouteMetaProps } from '@/spa/router/routeMeta';
@@ -35,6 +35,6 @@ const TaskDynamicMeta = ({ onResolve, params }: DynamicRouteMetaProps) => {
export const taskRouteMeta = routeMeta({
DynamicMeta: TaskDynamicMeta,
icon: ListTodoIcon,
- Skeleton: createSurfaceSkeleton('detail'),
+ Skeleton: TaskDetailSkeleton,
titleKey: 'navigation.task',
});
diff --git a/src/features/AgentTasks/shared/style.ts b/src/features/AgentTasks/shared/style.ts
index 234ac879810..ef1d3a0a20b 100644
--- a/src/features/AgentTasks/shared/style.ts
+++ b/src/features/AgentTasks/shared/style.ts
@@ -5,8 +5,6 @@ export const styles = createStaticStyles(({ css, cssVar }) => ({
&.ant-input {
resize: none;
- flex: 1;
-
min-height: auto;
padding: 0;
diff --git a/src/features/Portal/TaskDetail/Body.tsx b/src/features/Portal/TaskDetail/Body.tsx
index 16f49f081dd..43187a95838 100644
--- a/src/features/Portal/TaskDetail/Body.tsx
+++ b/src/features/Portal/TaskDetail/Body.tsx
@@ -47,7 +47,7 @@ const Body = memo(() => {
paddingInline={16}
style={{ minHeight: 0, overflowY: 'auto' }}
>
- {isInitialLoading ? <TaskDetailSkeleton /> : <TaskDetailSections />}
+ {isInitialLoading ? <TaskDetailSkeleton chrome={'body'} /> : <TaskDetailSections />}
<TopicChatDrawer />
</Flexbox>
);
diff --git a/src/features/Portal/TaskResult/Body.tsx b/src/features/Portal/TaskResult/Body.tsx
index 6f70121a88b..3563153cc8b 100644
--- a/src/features/Portal/TaskResult/Body.tsx
+++ b/src/features/Portal/TaskResult/Body.tsx
@@ -42,7 +42,7 @@ const Body = memo(() => {
style={{ minHeight: 0, overflowY: 'auto' }}
>
{isInitialLoading ? (
- <TaskDetailSkeleton />
+ <TaskDetailSkeleton chrome={'body'} />
) : (
<>
{/* Report, then the verdict on it, then the artifacts it produced.
diff --git a/src/spa/router/desktopRouter.sync.test.tsx b/src/spa/router/desktopRouter.sync.test.tsx
index 954ec8fed4f..d21b024ea95 100644
--- a/src/spa/router/desktopRouter.sync.test.tsx
+++ b/src/spa/router/desktopRouter.sync.test.tsx
@@ -20,6 +20,7 @@ import RouteSegmentSkeleton from '@/components/Skeleton/RouteSegment';
import SettingsPageSkeleton from '@/components/Skeleton/Settings/Page';
import TasksSkeleton from '@/components/Skeleton/Tasks';
import TopicsSkeleton from '@/components/Skeleton/Topics';
+import TaskDetailSkeleton from '@/features/AgentTasks/AgentTaskDetail/TaskDetailSkeleton';
import { WORKSPACE_SETTINGS_TABS } from '@/features/Workspace/workspaceAwarePath';
import AppShellSkeleton from '@/spa/BootShell/AppShellSkeleton';
import { createTabRouter } from '@/spa/router/tabRouter';
@@ -413,6 +414,7 @@ describe('desktop router shared definition', () => {
for (const [pathname, expectedSkeleton] of [
['/agent/agent-1/topics', TopicsSkeleton],
['/agent/agent-1/tasks', TasksSkeleton],
+ ['/agent/agent-1/task/task-1', TaskDetailSkeleton],
['/agent/agent-1/goals', GoalSkeleton],
['/agent/agent-1/goal/goal-1', GoalDetailSkeleton],
['/agent/agent-1/profile', ProfileSkeleton],