Merge app warning visibility

This commit is contained in:
2026-11-05 15:36:36 +00:00
8 changed files with 414 additions and 0 deletions
@@ -150,6 +150,7 @@ DateTime? _runningSince;
/// `?html=1` adds `release-dashboard.html` to run 7's build visit; the capture
/// serves its bytes from the build directory (see notes/artifact-fullscreen.md).
bool _htmlArtifact = false;
bool _warnings = false;
/// `?turn=1` adds the runner-internal turn files the server records for a model
/// visit (group `debug`) to run 7's build visit, so the Artifacts tab's hidden
@@ -495,6 +496,10 @@ JsonMap? probeReply(JsonMap request) {
'type': 'run',
'run_detail': {
...detail,
if (_warnings)
'warnings': [
'build visit 1: final result required one repair follow-up.',
],
'steps': [
for (final step in detail['steps'] as List)
withProbeStepUsage(step as JsonMap),
@@ -503,6 +508,13 @@ JsonMap? probeReply(JsonMap request) {
};
case 'list_pipelines':
return {'id': id, 'type': 'pipelines', 'pipelines': probePipelines()};
case 'validate':
return {
'id': id,
'type': 'validated',
if (_warnings)
'warnings': ['Review prompt repeats runner instructions.'],
};
case 'get_pipeline':
final pipelineId = request['pipeline_id'];
if (pipelineId is! int ||
@@ -730,6 +742,7 @@ void main() {
}
probeUsage = params['usage'] == '1';
_htmlArtifact = params['html'] == '1';
_warnings = params['warnings'] == '1';
_turnFiles = params['turn'] == '1';
final cupertino = params['platform'] == 'cupertino';
final route = params['route'];