AX Agent 상태 UI 최소 노출 기준 정리 및 작업 요약 팝업 경량화
Some checks failed
Release Gate / gate (push) Has been cancelled
Some checks failed
Release Gate / gate (push) Has been cancelled
- Cowork/Code 보조 상태 스트립과 실행 로그 토글 영역의 패딩/폰트/간격을 추가 축소해 transcript 중심 흐름을 강화함 - 작업 요약 팝업에서 필터 칩과 과한 대시보드형 액션을 제거하고 마지막 실행 1건 중심 요약으로 재구성함 - 훅/백그라운드/최근 작업 카드의 밀도를 낮추고 기본 팝업에서 권한/백그라운드 현재 상태만 남기도록 최소 노출 기준으로 정리함 - README 및 DEVELOPMENT 문서에 2026-04-05 18:40 (KST) 기준 변경 이력과 parity 진척율을 반영함 검증: - dotnet build src/AxCopilot/AxCopilot.csproj -c Release -v minimal -p:OutputPath=bin\\verify\\ -p:IntermediateOutputPath=obj\\verify\\ - 경고 0 / 오류 0
This commit is contained in:
@@ -865,31 +865,31 @@
|
||||
KeyDown="ChatTitleEdit_KeyDown"/>
|
||||
</Grid>
|
||||
<Border x:Name="ConversationStatusStrip" Visibility="Collapsed"
|
||||
Margin="7,0,0,0" Padding="4,1"
|
||||
CornerRadius="5"
|
||||
Margin="6,0,0,0" Padding="3.5,1"
|
||||
CornerRadius="4"
|
||||
Background="{DynamicResource HintBackground}"
|
||||
BorderBrush="{DynamicResource BorderColor}" BorderThickness="1">
|
||||
<TextBlock x:Name="ConversationStatusStripLabel" Text=""
|
||||
FontSize="8.5" FontWeight="SemiBold"
|
||||
FontSize="8" FontWeight="SemiBold"
|
||||
Foreground="{DynamicResource AccentColor}"
|
||||
VerticalAlignment="Center"/>
|
||||
</Border>
|
||||
</StackPanel>
|
||||
<WrapPanel x:Name="ConversationQuickStrip" Visibility="Collapsed"
|
||||
Margin="0,1,0,0">
|
||||
Margin="0,0,0,0">
|
||||
<Button x:Name="BtnQuickRunningFilter" Style="{StaticResource GhostBtn}"
|
||||
Padding="4.5,1" Margin="0,0,3,0"
|
||||
Padding="4,1" Margin="0,0,2,0"
|
||||
Click="BtnQuickRunningFilter_Click"
|
||||
Visibility="Collapsed"
|
||||
IsEnabled="False">
|
||||
<TextBlock x:Name="QuickRunningLabel" Text="진행"
|
||||
FontSize="8.25" FontWeight="SemiBold"/>
|
||||
FontSize="8" FontWeight="SemiBold"/>
|
||||
</Button>
|
||||
<Button x:Name="BtnQuickHotSort" Style="{StaticResource GhostBtn}"
|
||||
Padding="4.75,1"
|
||||
Padding="4,1"
|
||||
Click="BtnQuickHotSort_Click">
|
||||
<TextBlock x:Name="QuickHotLabel" Text="활동"
|
||||
FontSize="8.4" FontWeight="SemiBold"/>
|
||||
FontSize="8" FontWeight="SemiBold"/>
|
||||
</Button>
|
||||
</WrapPanel>
|
||||
</StackPanel>
|
||||
@@ -914,7 +914,7 @@
|
||||
<Border x:Name="AgentProgressBar" Grid.Row="2" Visibility="Collapsed"
|
||||
Background="{DynamicResource HintBackground}"
|
||||
BorderBrush="{DynamicResource SeparatorColor}" BorderThickness="0,0,0,1"
|
||||
Padding="8,1.5,8,1.5">
|
||||
Padding="7,1,7,1">
|
||||
<Grid>
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition Width="Auto"/>
|
||||
@@ -2297,15 +2297,15 @@
|
||||
<StackPanel Orientation="Horizontal" HorizontalAlignment="Right"
|
||||
VerticalAlignment="Center">
|
||||
<Border x:Name="RuntimeActivityBadge" Visibility="Collapsed"
|
||||
CornerRadius="4" Padding="3.5,1" Margin="0,0,5,0"
|
||||
CornerRadius="4" Padding="3,1" Margin="0,0,4,0"
|
||||
Background="{DynamicResource HintBackground}" ToolTip="현재 실행 중인 작업"
|
||||
Cursor="Hand"
|
||||
MouseLeftButtonUp="RuntimeTaskSummary_Click">
|
||||
<StackPanel Orientation="Horizontal">
|
||||
<TextBlock Text="" FontFamily="Segoe MDL2 Assets" FontSize="8.5"
|
||||
Foreground="{DynamicResource AccentColor}" VerticalAlignment="Center" Margin="0,0,2.5,0"/>
|
||||
<TextBlock Text="" FontFamily="Segoe MDL2 Assets" FontSize="8"
|
||||
Foreground="{DynamicResource AccentColor}" VerticalAlignment="Center" Margin="0,0,2,0"/>
|
||||
<TextBlock x:Name="RuntimeActivityLabel" Text="실행 중 0"
|
||||
FontSize="8.75" Foreground="{DynamicResource AccentColor}"
|
||||
FontSize="8.25" Foreground="{DynamicResource AccentColor}"
|
||||
VerticalAlignment="Center"/>
|
||||
</StackPanel>
|
||||
</Border>
|
||||
@@ -2318,28 +2318,28 @@
|
||||
Cursor="Hand"
|
||||
MouseLeftButtonUp="RuntimeTaskSummary_Click"/>
|
||||
<Button x:Name="BtnToggleExecutionLog" Style="{StaticResource GhostBtn}"
|
||||
Padding="4.5,1" Margin="0,0,5,0"
|
||||
Padding="4,1" Margin="0,0,4,0"
|
||||
Click="BtnToggleExecutionLog_Click"
|
||||
ToolTip="실행 로그 표시/숨기기">
|
||||
<StackPanel Orientation="Horizontal">
|
||||
<TextBlock x:Name="ExecutionLogIcon" Text=""
|
||||
FontFamily="Segoe MDL2 Assets" FontSize="8.5"
|
||||
FontFamily="Segoe MDL2 Assets" FontSize="8"
|
||||
Foreground="{DynamicResource SecondaryText}"
|
||||
VerticalAlignment="Center" Margin="0,0,2.5,0"/>
|
||||
VerticalAlignment="Center" Margin="0,0,2,0"/>
|
||||
<TextBlock x:Name="ExecutionLogLabel" Text="실행 로그 0"
|
||||
FontSize="8.75"
|
||||
FontSize="8.25"
|
||||
Foreground="{DynamicResource SecondaryText}"
|
||||
VerticalAlignment="Center"/>
|
||||
</StackPanel>
|
||||
</Button>
|
||||
<Border x:Name="SubAgentIndicator" Visibility="Collapsed"
|
||||
CornerRadius="4" Padding="3.5,1" Margin="0,0,5,0"
|
||||
CornerRadius="4" Padding="3,1" Margin="0,0,4,0"
|
||||
Background="{DynamicResource HintBackground}" ToolTip="실행 중인 서브에이전트">
|
||||
<StackPanel Orientation="Horizontal">
|
||||
<TextBlock Text="" FontFamily="Segoe MDL2 Assets" FontSize="8.5"
|
||||
Foreground="{DynamicResource AccentColor}" VerticalAlignment="Center" Margin="0,0,2.5,0"/>
|
||||
<TextBlock Text="" FontFamily="Segoe MDL2 Assets" FontSize="8"
|
||||
Foreground="{DynamicResource AccentColor}" VerticalAlignment="Center" Margin="0,0,2,0"/>
|
||||
<TextBlock x:Name="SubAgentIndicatorLabel" Text="서브에이전트 0"
|
||||
FontSize="8.75" Foreground="{DynamicResource AccentColor}"
|
||||
FontSize="8.25" Foreground="{DynamicResource AccentColor}"
|
||||
VerticalAlignment="Center"/>
|
||||
</StackPanel>
|
||||
</Border>
|
||||
@@ -2355,10 +2355,10 @@
|
||||
VerticalAlignment="Center"/>
|
||||
</StackPanel>
|
||||
</Border>
|
||||
<TextBlock x:Name="StatusElapsed" Text="" FontSize="8.75"
|
||||
<TextBlock x:Name="StatusElapsed" Text="" FontSize="8.25"
|
||||
Foreground="{DynamicResource SecondaryText}"
|
||||
VerticalAlignment="Center" Margin="0,0,6,0"/>
|
||||
<TextBlock x:Name="StatusTokens" Text="" FontSize="8.75"
|
||||
VerticalAlignment="Center" Margin="0,0,5,0"/>
|
||||
<TextBlock x:Name="StatusTokens" Text="" FontSize="8.25"
|
||||
Foreground="{DynamicResource SecondaryText}"
|
||||
VerticalAlignment="Center"/>
|
||||
</StackPanel>
|
||||
|
||||
@@ -20148,22 +20148,11 @@ private static (string icon, string label, string bgHex, string fgHex) GetDecisi
|
||||
});
|
||||
panel.Children.Add(new TextBlock
|
||||
{
|
||||
Text = "현재 실행/권한/작업 흐름",
|
||||
FontSize = 8.75,
|
||||
Text = "현재 상태 요약",
|
||||
FontSize = 8.5,
|
||||
Foreground = secondaryText,
|
||||
Margin = new Thickness(8, 0, 8, 3),
|
||||
Margin = new Thickness(8, 0, 8, 5),
|
||||
});
|
||||
var taskFilterRow = new WrapPanel
|
||||
{
|
||||
Margin = new Thickness(6, 0, 6, 6),
|
||||
};
|
||||
taskFilterRow.Children.Add(CreateTaskSummaryFilterChip("all", "전체"));
|
||||
taskFilterRow.Children.Add(CreateTaskSummaryFilterChip("permission", "권한"));
|
||||
taskFilterRow.Children.Add(CreateTaskSummaryFilterChip("queue", "대기"));
|
||||
taskFilterRow.Children.Add(CreateTaskSummaryFilterChip("tool", "도구"));
|
||||
taskFilterRow.Children.Add(CreateTaskSummaryFilterChip("subagent", "서브"));
|
||||
taskFilterRow.Children.Add(CreateTaskSummaryFilterChip("hook", "훅"));
|
||||
panel.Children.Add(taskFilterRow);
|
||||
|
||||
ChatConversation? currentConversation;
|
||||
lock (_convLock) currentConversation = _currentConversation;
|
||||
@@ -20211,55 +20200,13 @@ private static (string icon, string label, string bgHex, string fgHex) GetDecisi
|
||||
panel.Children.Add(currentRun);
|
||||
}
|
||||
|
||||
var recentAgentRuns = _appState.GetRecentAgentRuns(2);
|
||||
var recentAgentRuns = _appState.GetRecentAgentRuns(1);
|
||||
if (recentAgentRuns.Count > 0)
|
||||
{
|
||||
var latestFailedRun = _appState.GetLatestFailedRun();
|
||||
if (latestFailedRun != null)
|
||||
{
|
||||
panel.Children.Add(new Border
|
||||
{
|
||||
Background = BrushFromHex("#FEF2F2"),
|
||||
BorderBrush = BrushFromHex("#FECACA"),
|
||||
BorderThickness = new Thickness(1),
|
||||
CornerRadius = new CornerRadius(8),
|
||||
Padding = new Thickness(8, 6, 8, 6),
|
||||
Margin = new Thickness(6, 0, 6, 6),
|
||||
Child = new StackPanel
|
||||
{
|
||||
Children =
|
||||
{
|
||||
new TextBlock
|
||||
{
|
||||
Text = $"최근 실패 · run {ShortRunId(latestFailedRun.RunId)}",
|
||||
FontWeight = FontWeights.SemiBold,
|
||||
Foreground = BrushFromHex("#991B1B"),
|
||||
FontSize = 9.75,
|
||||
},
|
||||
new TextBlock
|
||||
{
|
||||
Text = $"{latestFailedRun.UpdatedAt:HH:mm:ss} · step {latestFailedRun.LastIteration}",
|
||||
Margin = new Thickness(0, 2, 0, 0),
|
||||
Foreground = BrushFromHex("#B45309"),
|
||||
FontSize = 8.75,
|
||||
},
|
||||
new TextBlock
|
||||
{
|
||||
Text = string.IsNullOrWhiteSpace(latestFailedRun.Summary) ? "요약 없음" : latestFailedRun.Summary,
|
||||
Margin = new Thickness(0, 3, 0, 0),
|
||||
TextWrapping = TextWrapping.Wrap,
|
||||
Foreground = secondaryText,
|
||||
FontSize = 8.9,
|
||||
}
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
panel.Children.Add(new TextBlock
|
||||
{
|
||||
Text = "최근 실행",
|
||||
FontSize = 9.5,
|
||||
Text = "마지막 실행",
|
||||
FontSize = 9,
|
||||
FontWeight = FontWeights.SemiBold,
|
||||
Foreground = Brushes.DimGray,
|
||||
Margin = new Thickness(8, 0, 8, 2),
|
||||
@@ -20267,8 +20214,8 @@ private static (string icon, string label, string bgHex, string fgHex) GetDecisi
|
||||
|
||||
foreach (var run in recentAgentRuns)
|
||||
{
|
||||
var runEvents = GetExecutionEventsForRun(run.RunId);
|
||||
var runFilePaths = GetExecutionEventFilePaths(run.RunId);
|
||||
var runEvents = GetExecutionEventsForRun(run.RunId, 1);
|
||||
var runFilePaths = GetExecutionEventFilePaths(run.RunId, 1);
|
||||
var runDisplay = _appState.GetRunDisplay(run);
|
||||
var runCardStack = new StackPanel
|
||||
{
|
||||
@@ -20279,22 +20226,22 @@ private static (string icon, string label, string bgHex, string fgHex) GetDecisi
|
||||
Text = runDisplay.HeaderText,
|
||||
FontWeight = FontWeights.SemiBold,
|
||||
Foreground = GetRunStatusBrush(run.Status),
|
||||
FontSize = 9.75,
|
||||
FontSize = 9.5,
|
||||
},
|
||||
new TextBlock
|
||||
{
|
||||
Text = runDisplay.MetaText,
|
||||
Margin = new Thickness(0, 2, 0, 0),
|
||||
Margin = new Thickness(0, 1, 0, 0),
|
||||
Foreground = secondaryText,
|
||||
FontSize = 8.75,
|
||||
FontSize = 8.25,
|
||||
},
|
||||
new TextBlock
|
||||
{
|
||||
Text = TruncateForStatus(runDisplay.SummaryText, 140),
|
||||
Margin = new Thickness(0, 2, 0, 0),
|
||||
Text = TruncateForStatus(runDisplay.SummaryText, 92),
|
||||
Margin = new Thickness(0, 1.5, 0, 0),
|
||||
TextWrapping = TextWrapping.Wrap,
|
||||
Foreground = secondaryText,
|
||||
FontSize = 8.9,
|
||||
FontSize = 8.5,
|
||||
}
|
||||
}
|
||||
};
|
||||
@@ -20305,7 +20252,7 @@ private static (string icon, string label, string bgHex, string fgHex) GetDecisi
|
||||
activitySummary.Children.Add(new TextBlock
|
||||
{
|
||||
Text = $"로그 {runEvents.Count} · 파일 {runFilePaths.Count}",
|
||||
FontSize = 8.4,
|
||||
FontSize = 8,
|
||||
Foreground = secondaryText,
|
||||
});
|
||||
|
||||
@@ -20328,9 +20275,9 @@ private static (string icon, string label, string bgHex, string fgHex) GetDecisi
|
||||
Background = BrushFromHex("#F8FAFC"),
|
||||
BorderBrush = BrushFromHex("#E2E8F0"),
|
||||
BorderThickness = new Thickness(1),
|
||||
CornerRadius = new CornerRadius(8),
|
||||
Padding = new Thickness(7, 5, 7, 5),
|
||||
Margin = new Thickness(0, 6, 0, 0),
|
||||
CornerRadius = new CornerRadius(7),
|
||||
Padding = new Thickness(6, 4, 6, 4),
|
||||
Margin = new Thickness(0, 5, 0, 0),
|
||||
Child = activitySummary
|
||||
});
|
||||
}
|
||||
@@ -20368,64 +20315,21 @@ private static (string icon, string label, string bgHex, string fgHex) GetDecisi
|
||||
|
||||
panel.Children.Add(new Border
|
||||
{
|
||||
Background = Brushes.White,
|
||||
Background = popupBackground,
|
||||
BorderBrush = BrushFromHex("#E5E7EB"),
|
||||
BorderThickness = new Thickness(1),
|
||||
CornerRadius = new CornerRadius(8),
|
||||
Padding = new Thickness(8, 5, 8, 5),
|
||||
Margin = new Thickness(6, 0, 6, 5),
|
||||
CornerRadius = new CornerRadius(7),
|
||||
Padding = new Thickness(7, 5, 7, 5),
|
||||
Margin = new Thickness(6, 0, 6, 4),
|
||||
Child = runCardStack
|
||||
});
|
||||
}
|
||||
|
||||
if (_appState.GetLatestFailedRun() != null
|
||||
&& CanRetryCurrentConversation())
|
||||
{
|
||||
var actionsPanel = new StackPanel
|
||||
{
|
||||
Orientation = Orientation.Horizontal,
|
||||
Margin = new Thickness(6, 1, 6, 6),
|
||||
};
|
||||
|
||||
var retryButton = CreateTaskSummaryActionButton(
|
||||
"마지막 요청 다시 시도",
|
||||
"#EEF2FF",
|
||||
"#C7D2FE",
|
||||
"#3730A3",
|
||||
(_, _) =>
|
||||
{
|
||||
_taskSummaryPopup?.SetCurrentValue(Popup.IsOpenProperty, false);
|
||||
RetryLastUserMessageFromConversation();
|
||||
});
|
||||
actionsPanel.Children.Add(retryButton);
|
||||
|
||||
if (_appState.ActiveTasks.Count > 0)
|
||||
{
|
||||
var runningFilterButton = CreateTaskSummaryActionButton(
|
||||
"진행 중 대화만 보기",
|
||||
"#DBEAFE",
|
||||
"#93C5FD",
|
||||
"#1D4ED8",
|
||||
(_, _) =>
|
||||
{
|
||||
_runningOnlyFilter = true;
|
||||
UpdateConversationRunningFilterUi();
|
||||
PersistConversationListPreferences();
|
||||
RefreshConversationList();
|
||||
_taskSummaryPopup?.SetCurrentValue(Popup.IsOpenProperty, false);
|
||||
},
|
||||
trailingMargin: false);
|
||||
runningFilterButton.Margin = new Thickness(2, 0, 0, 0);
|
||||
actionsPanel.Children.Add(runningFilterButton);
|
||||
}
|
||||
panel.Children.Add(actionsPanel);
|
||||
}
|
||||
}
|
||||
|
||||
foreach (var task in FilterTaskSummaryItems(_appState.ActiveTasks).Take(6))
|
||||
foreach (var task in FilterTaskSummaryItems(_appState.ActiveTasks).Take(3))
|
||||
panel.Children.Add(BuildTaskSummaryCard(task, active: true));
|
||||
|
||||
foreach (var task in FilterTaskSummaryItems(_appState.RecentTasks).Take(6))
|
||||
foreach (var task in FilterTaskSummaryItems(_appState.RecentTasks).Take(2))
|
||||
panel.Children.Add(BuildTaskSummaryCard(task, active: false));
|
||||
|
||||
if (!FilterTaskSummaryItems(_appState.ActiveTasks).Any() && !FilterTaskSummaryItems(_appState.RecentTasks).Any())
|
||||
@@ -21396,15 +21300,15 @@ private static (string icon, string label, string bgHex, string fgHex) GetDecisi
|
||||
{
|
||||
Text = "\uE756",
|
||||
FontFamily = new FontFamily("Segoe MDL2 Assets"),
|
||||
FontSize = 10,
|
||||
FontSize = 9,
|
||||
Foreground = hook.Success ? BrushFromHex("#334155") : BrushFromHex("#991B1B"),
|
||||
Margin = new Thickness(0, 0, 5, 0),
|
||||
Margin = new Thickness(0, 0, 4, 0),
|
||||
VerticalAlignment = VerticalAlignment.Center,
|
||||
},
|
||||
new TextBlock
|
||||
{
|
||||
Text = "훅 이벤트",
|
||||
FontSize = 10,
|
||||
Text = "훅",
|
||||
FontSize = 9,
|
||||
FontWeight = FontWeights.SemiBold,
|
||||
Foreground = hook.Success ? BrushFromHex("#334155") : BrushFromHex("#991B1B"),
|
||||
}
|
||||
@@ -21413,7 +21317,7 @@ private static (string icon, string label, string bgHex, string fgHex) GetDecisi
|
||||
hookCardStack.Children.Add(new TextBlock
|
||||
{
|
||||
Text = _appState.FormatHookEventLine(hook),
|
||||
FontSize = 9.5,
|
||||
FontSize = 8.75,
|
||||
TextWrapping = TextWrapping.Wrap,
|
||||
Foreground = hook.Success ? secondaryText : BrushFromHex("#991B1B"),
|
||||
});
|
||||
@@ -21460,9 +21364,9 @@ private static (string icon, string label, string bgHex, string fgHex) GetDecisi
|
||||
Background = hook.Success ? BrushFromHex("#F8FAFC") : BrushFromHex("#FEF2F2"),
|
||||
BorderBrush = hook.Success ? BrushFromHex("#E2E8F0") : BrushFromHex("#FECACA"),
|
||||
BorderThickness = new Thickness(1),
|
||||
CornerRadius = new CornerRadius(8),
|
||||
Padding = new Thickness(8, 5, 8, 5),
|
||||
Margin = new Thickness(6, 0, 6, 4),
|
||||
CornerRadius = new CornerRadius(7),
|
||||
Padding = new Thickness(7, 4, 7, 4),
|
||||
Margin = new Thickness(6, 0, 6, 3),
|
||||
Child = hookCardStack
|
||||
};
|
||||
}
|
||||
@@ -21480,15 +21384,15 @@ private static (string icon, string label, string bgHex, string fgHex) GetDecisi
|
||||
{
|
||||
Text = "\uE9F9",
|
||||
FontFamily = new FontFamily("Segoe MDL2 Assets"),
|
||||
FontSize = 10,
|
||||
FontSize = 9,
|
||||
Foreground = BrushFromHex("#1D4ED8"),
|
||||
Margin = new Thickness(0, 0, 5, 0),
|
||||
Margin = new Thickness(0, 0, 4, 0),
|
||||
VerticalAlignment = VerticalAlignment.Center,
|
||||
},
|
||||
new TextBlock
|
||||
{
|
||||
Text = $"실행 중인 백그라운드 작업 {activeBackgroundCount}개",
|
||||
FontSize = 10,
|
||||
Text = $"백그라운드 {activeBackgroundCount}",
|
||||
FontSize = 9,
|
||||
Foreground = BrushFromHex("#1D4ED8"),
|
||||
FontWeight = FontWeights.SemiBold,
|
||||
}
|
||||
@@ -21499,45 +21403,22 @@ private static (string icon, string label, string bgHex, string fgHex) GetDecisi
|
||||
{
|
||||
activeBackgroundStack.Children.Add(new TextBlock
|
||||
{
|
||||
Text = $"· {job.Title} · {TruncateForStatus(job.Summary, 52)}",
|
||||
Margin = new Thickness(0, 3, 0, 0),
|
||||
FontSize = 9.5,
|
||||
Text = $"· {job.Title} · {TruncateForStatus(job.Summary, 40)}",
|
||||
Margin = new Thickness(0, 2, 0, 0),
|
||||
FontSize = 8.75,
|
||||
Foreground = secondaryText,
|
||||
TextWrapping = TextWrapping.Wrap,
|
||||
});
|
||||
}
|
||||
|
||||
var activeActionRow = new WrapPanel
|
||||
{
|
||||
Margin = new Thickness(0, 6, 0, 0),
|
||||
};
|
||||
|
||||
var runningFilterButton = CreateTaskSummaryActionButton(
|
||||
"진행 중 대화만 보기",
|
||||
"#DBEAFE",
|
||||
"#93C5FD",
|
||||
"#1D4ED8",
|
||||
(_, _) => ShowRunningConversationsOnly());
|
||||
activeActionRow.Children.Add(runningFilterButton);
|
||||
|
||||
var subTaskButton = CreateTaskSummaryActionButton(
|
||||
"서브 작업만 보기",
|
||||
"#F8FAFC",
|
||||
"#CBD5E1",
|
||||
"#334155",
|
||||
(_, _) => ShowSubAgentTasksOnly(),
|
||||
trailingMargin: false);
|
||||
activeActionRow.Children.Add(subTaskButton);
|
||||
activeBackgroundStack.Children.Add(activeActionRow);
|
||||
|
||||
return new Border
|
||||
{
|
||||
Background = BrushFromHex("#EFF6FF"),
|
||||
BorderBrush = BrushFromHex("#BFDBFE"),
|
||||
BorderThickness = new Thickness(1),
|
||||
CornerRadius = new CornerRadius(8),
|
||||
Padding = new Thickness(8, 5, 8, 5),
|
||||
Margin = new Thickness(6, 0, 6, 5),
|
||||
CornerRadius = new CornerRadius(7),
|
||||
Padding = new Thickness(7, 4, 7, 4),
|
||||
Margin = new Thickness(6, 0, 6, 4),
|
||||
Child = activeBackgroundStack
|
||||
};
|
||||
}
|
||||
@@ -21557,15 +21438,15 @@ private static (string icon, string label, string bgHex, string fgHex) GetDecisi
|
||||
{
|
||||
Text = "\uE823",
|
||||
FontFamily = new FontFamily("Segoe MDL2 Assets"),
|
||||
FontSize = 10,
|
||||
FontSize = 9,
|
||||
Foreground = isFailed ? BrushFromHex("#991B1B") : BrushFromHex("#334155"),
|
||||
Margin = new Thickness(0, 0, 5, 0),
|
||||
Margin = new Thickness(0, 0, 4, 0),
|
||||
VerticalAlignment = VerticalAlignment.Center,
|
||||
},
|
||||
new TextBlock
|
||||
{
|
||||
Text = $"{job.Title} · {GetTaskStatusLabel(job.Status)}",
|
||||
FontSize = 10,
|
||||
FontSize = 9,
|
||||
FontWeight = FontWeights.SemiBold,
|
||||
Foreground = isFailed ? BrushFromHex("#991B1B") : BrushFromHex("#334155"),
|
||||
}
|
||||
@@ -21573,43 +21454,18 @@ private static (string icon, string label, string bgHex, string fgHex) GetDecisi
|
||||
});
|
||||
jobCardStack.Children.Add(new TextBlock
|
||||
{
|
||||
Text = $"{job.UpdatedAt:HH:mm:ss} · {TruncateForStatus(job.Summary, 72)}",
|
||||
FontSize = 9.5,
|
||||
Text = $"{job.UpdatedAt:HH:mm:ss} · {TruncateForStatus(job.Summary, 48)}",
|
||||
FontSize = 8.75,
|
||||
TextWrapping = TextWrapping.Wrap,
|
||||
Foreground = isFailed
|
||||
? BrushFromHex("#991B1B")
|
||||
: secondaryText,
|
||||
});
|
||||
|
||||
var jobActionRow = new WrapPanel
|
||||
{
|
||||
Margin = new Thickness(0, 6, 0, 0),
|
||||
};
|
||||
|
||||
var focusButton = CreateTaskSummaryActionButton(
|
||||
"이 대화로 이동",
|
||||
"#F8FAFC",
|
||||
"#CBD5E1",
|
||||
"#334155",
|
||||
(_, _) =>
|
||||
{
|
||||
_taskSummaryPopup?.SetCurrentValue(Popup.IsOpenProperty, false);
|
||||
FocusCurrentConversation();
|
||||
});
|
||||
jobActionRow.Children.Add(focusButton);
|
||||
|
||||
var subagentOnlyButton = CreateTaskSummaryActionButton(
|
||||
"서브 작업만 보기",
|
||||
"#F8FAFC",
|
||||
"#CBD5E1",
|
||||
"#334155",
|
||||
(_, _) => ShowSubAgentTasksOnly());
|
||||
jobActionRow.Children.Add(subagentOnlyButton);
|
||||
|
||||
if (string.Equals(job.Status, "failed", StringComparison.OrdinalIgnoreCase) && CanRetryCurrentConversation())
|
||||
{
|
||||
var retryBackgroundButton = CreateTaskSummaryActionButton(
|
||||
"이 작업 다시 시도",
|
||||
"다시 시도",
|
||||
"#FEF2F2",
|
||||
"#FCA5A5",
|
||||
"#991B1B",
|
||||
@@ -21619,11 +21475,10 @@ private static (string icon, string label, string bgHex, string fgHex) GetDecisi
|
||||
RetryLastUserMessageFromConversation();
|
||||
},
|
||||
trailingMargin: false);
|
||||
jobActionRow.Children.Add(retryBackgroundButton);
|
||||
retryBackgroundButton.Margin = new Thickness(0, 5, 0, 0);
|
||||
jobCardStack.Children.Add(retryBackgroundButton);
|
||||
}
|
||||
|
||||
jobCardStack.Children.Add(jobActionRow);
|
||||
|
||||
return new Border
|
||||
{
|
||||
Background = string.Equals(job.Status, "failed", StringComparison.OrdinalIgnoreCase)
|
||||
@@ -21633,9 +21488,9 @@ private static (string icon, string label, string bgHex, string fgHex) GetDecisi
|
||||
? BrushFromHex("#FECACA")
|
||||
: BrushFromHex("#E2E8F0"),
|
||||
BorderThickness = new Thickness(1),
|
||||
CornerRadius = new CornerRadius(8),
|
||||
Padding = new Thickness(8, 5, 8, 5),
|
||||
Margin = new Thickness(6, 0, 6, 4),
|
||||
CornerRadius = new CornerRadius(7),
|
||||
Padding = new Thickness(7, 4, 7, 4),
|
||||
Margin = new Thickness(6, 0, 6, 3),
|
||||
Child = jobCardStack
|
||||
};
|
||||
}
|
||||
@@ -21807,33 +21662,15 @@ private static (string icon, string label, string bgHex, string fgHex) GetDecisi
|
||||
private void AddTaskSummaryBackgroundSection(StackPanel panel)
|
||||
{
|
||||
var activeBackgroundJobs = _appState.GetActiveBackgroundJobs(2);
|
||||
var recentBackgroundJobs = _appState.GetRecentBackgroundJobs(2);
|
||||
var activeBackgroundCount = _appState.GetBackgroundJobSummary().ActiveCount;
|
||||
|
||||
if (activeBackgroundCount > 0)
|
||||
panel.Children.Add(BuildActiveBackgroundSummaryCard(activeBackgroundJobs, activeBackgroundCount));
|
||||
|
||||
if (recentBackgroundJobs.Count == 0)
|
||||
return;
|
||||
|
||||
panel.Children.Add(new TextBlock
|
||||
{
|
||||
Text = "최근 백그라운드 작업",
|
||||
FontSize = 11,
|
||||
FontWeight = FontWeights.SemiBold,
|
||||
Foreground = Brushes.DimGray,
|
||||
Margin = new Thickness(10, 0, 10, 4),
|
||||
});
|
||||
|
||||
foreach (var job in recentBackgroundJobs)
|
||||
panel.Children.Add(BuildRecentBackgroundJobCard(job));
|
||||
}
|
||||
|
||||
private void AddTaskSummaryObservabilitySections(StackPanel panel, ChatConversation? currentConversation)
|
||||
{
|
||||
AddTaskSummaryPermissionSection(panel, currentConversation);
|
||||
AddTaskSummaryPermissionHistorySection(panel);
|
||||
AddTaskSummaryHookSection(panel);
|
||||
AddTaskSummaryBackgroundSection(panel);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user