Merge branch 'worktree-agent-aa9ed772f90c7c7b3'

This commit is contained in:
2026-12-02 20:20:08 +00:00
68 changed files with 1719 additions and 156 deletions
@@ -2,6 +2,7 @@ import '../../../core/api_gateway.dart';
import 'artifact_capture.dart';
import 'artifact_groups.dart';
import 'artifact_selection.dart';
import '../../../ui/text/plural.dart';
/// The "capture pending" wording shared by a running visit's summary and the
/// run-level empty state, so the two never spell it differently.
@@ -72,10 +73,15 @@ List<String> artifactCaptureNotes(JsonMap step) {
if (presentedArtifacts(artifactsOf(step)).isEmpty) return notes;
final capture = ArtifactCapture.fromStep(step);
if (capture.skipped > 0) {
notes.add('${capture.skipped} files excluded from artifact capture.');
notes.add(
'${countLabel(capture.skipped, 'file')} excluded from artifact capture.',
);
}
if (capture.truncated > 0) {
notes.add('${capture.truncated} files omitted by artifact capture limits.');
notes.add(
'${countLabel(capture.truncated, 'file')} omitted by artifact '
'capture limits.',
);
}
return notes;
}