Merge branch 'worktree-agent-a5f621112ab3cad4f'

# Conflicts:
#	app/lib/features/chat/domain/chat_shown_run.dart
This commit is contained in:
2026-12-03 14:43:11 +00:00
66 changed files with 3326 additions and 68 deletions
@@ -1,6 +1,7 @@
import '../../../core/api_gateway.dart';
import '../../pipelines/pipeline_format.dart' show formatDuration;
import '../../runs/domain/run_events.dart' show isTerminalRunStatus;
import '../../runs/domain/run_quota.dart';
import 'chat_shown_run_map.dart';
export 'chat_shown_run_map.dart';
@@ -57,6 +58,7 @@ class ChatShownRun {
/// The status in words: the outcome of a finished run when it says more.
String get statusLabel {
if (isWaitingQuotaStatus(status)) return runWaitingQuotaLabel;
final word = status.isEmpty ? 'unknown' : status;
final label = '${word[0].toUpperCase()}${word.substring(1)}';
return finished && outcome.isNotEmpty && outcome != status
@@ -15,6 +15,7 @@ IconData chatShownRunIcon(String status) => switch (status) {
'canceled' => Icons.cancel_outlined,
'interrupted' => Icons.pause_circle_outline,
'waiting' => Icons.front_hand_outlined,
'waiting_quota' => Icons.hourglass_bottom,
'queued' => Icons.schedule,
_ => Icons.play_circle_outline,
};
@@ -22,7 +23,7 @@ IconData chatShownRunIcon(String status) => switch (status) {
Color _statusColor(ColorScheme colors, String status) => switch (status) {
'succeeded' => colors.primary,
'failed' || 'interrupted' => colors.error,
'waiting' => colors.tertiary,
'waiting' || 'waiting_quota' => colors.tertiary,
_ => colors.onSurfaceVariant,
};