ebe79ebed0
Run detail gains a Findings tab (open-count badge) listing the server's findings ledger with status and minimum-severity filters and expandable event history; visit grants show as an Extra visits summary fact. The resume retry prompt can grant 1-5 extra visits to the exhausted stage or a chosen graph stage (never sent on restart), suggested when the run failed on a visit limit. A loop-exhaustion decision waiting on a model stage is now decidable from its recorded options, with readable labels, targets and the visit count. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
46 lines
2.0 KiB
Dart
46 lines
2.0 KiB
Dart
import 'package:flutter/widgets.dart';
|
|
|
|
import '../../../core/error_reason.dart';
|
|
|
|
/// The browser client's retry wording, kept verbatim.
|
|
const retryActionLabel = 'Retry';
|
|
const retryDialogMessage =
|
|
'Only failed runs can be retried. The server starts a new run from the '
|
|
'same input.';
|
|
const retryConfirmLabel = 'Retry';
|
|
const restartDialogMessage =
|
|
'This replays the whole pipeline from the start instead of resuming the '
|
|
'failed stage.';
|
|
const restartConfirmLabel = 'Restart from start';
|
|
const retryKeepLabel = 'Keep';
|
|
|
|
const retryExtraVisitsLabel = 'Grant extra visits';
|
|
const retryExtraVisitsCountLabel = 'Extra visits';
|
|
const retryExtraStageLabel = 'Stage';
|
|
const retryExhaustedStageLabel = 'Exhausted stage';
|
|
const retryExhaustedHint =
|
|
'This run stopped because a loop used up its visits. Granting extra '
|
|
'visits lets it continue when resumed.';
|
|
|
|
/// Stable test/semantics keys shared by the action and its prompt.
|
|
const retryActionKey = ValueKey<String>('retry-run-action');
|
|
const retryKeepKey = ValueKey<String>('retry-run-keep');
|
|
const retryConfirmKey = ValueKey<String>('retry-run-confirm');
|
|
const retryRestartKey = ValueKey<String>('retry-run-restart');
|
|
const retryErrorKey = ValueKey<String>('retry-run-error');
|
|
const retryExtraVisitsKey = ValueKey<String>('retry-run-extra-visits');
|
|
const retryExtraCountKey = ValueKey<String>('retry-run-extra-count');
|
|
const retryExtraStageKey = ValueKey<String>('retry-run-extra-stage');
|
|
const retryExhaustedHintKey = ValueKey<String>('retry-run-exhausted-hint');
|
|
|
|
/// The retry dialog's title: `Retry run {id}?`.
|
|
String retryDialogTitle(num runId) => 'Retry run $runId?';
|
|
|
|
/// The restart dialog's title: `Restart run {id}?`.
|
|
String restartDialogTitle(num runId) => 'Restart run $runId?';
|
|
|
|
/// The server's refusal, verbatim. Only a blank error gets a generic sentence
|
|
/// so the prompt never claims a retry that did not happen.
|
|
String describeRetryError(Object error) =>
|
|
describeErrorReason(error, fallback: 'The server did not retry the run.');
|