App: findings ledger tab, retry extra visits and exhaustion decisions
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>
This commit is contained in:
@@ -112,9 +112,18 @@ class RunsRepository {
|
||||
num id, {
|
||||
required String requestKey,
|
||||
String? mode,
|
||||
int? extraVisits,
|
||||
String? extraStage,
|
||||
}) async {
|
||||
final fields = <String, dynamic>{'run_id': id, 'request_key': requestKey};
|
||||
if (mode == 'restart') fields['retry_mode'] = mode;
|
||||
if (mode == 'restart') {
|
||||
fields['retry_mode'] = mode;
|
||||
} else if (extraVisits != null && extraVisits >= 1 && extraVisits <= 5) {
|
||||
// Extra visits only extend a resumed run; a restart replays everything.
|
||||
fields['retry_extra_visits'] = extraVisits;
|
||||
final stage = extraStage?.trim() ?? '';
|
||||
if (stage.isNotEmpty) fields['retry_extra_stage'] = stage;
|
||||
}
|
||||
return _required(await _gateway.call('retry_run', fields), 'run_detail');
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user