Merge branch 'worktree-agent-aa9ed772f90c7c7b3'
This commit is contained in:
@@ -60,6 +60,8 @@ JsonMap probeRunDetail() => {
|
||||
'id': 7,
|
||||
'title': 'Release train run',
|
||||
'name': 'release-train',
|
||||
'pipeline_id': 24,
|
||||
'version': 4,
|
||||
'status': _liveRunStatus ?? 'succeeded',
|
||||
'created_at': '2026-10-20T08:12:00Z',
|
||||
'finished_at': '2026-10-20T08:42:00Z',
|
||||
@@ -259,6 +261,7 @@ List<JsonMap> probeRuns() => [
|
||||
'title': 'Release train run',
|
||||
'name': 'release-train',
|
||||
'status': _liveRunStatus ?? 'succeeded',
|
||||
'result_preview': 'Release 2.4 shipped; notes published.',
|
||||
'created_at': '2026-10-20T08:12:00Z',
|
||||
'finished_at': '2026-10-20T08:42:00Z',
|
||||
'pipeline_id': 24,
|
||||
@@ -268,6 +271,10 @@ List<JsonMap> probeRuns() => [
|
||||
'title': 'Nightly docs run',
|
||||
'name': 'nightly-docs',
|
||||
'status': 'failed',
|
||||
'failure_reason':
|
||||
'Stage publish failed: the docs host rejected the upload '
|
||||
'(HTTP 413, bundle larger than 50 MB).',
|
||||
'diagnostic': 'upload rejected\nHTTP 413 Payload Too Large',
|
||||
'created_at': '2026-10-19T22:00:00Z',
|
||||
'finished_at': '2026-10-19T22:03:00Z',
|
||||
'pipeline_id': 22,
|
||||
@@ -544,6 +551,21 @@ JsonMap? probeReply(JsonMap request) {
|
||||
'usage': null,
|
||||
};
|
||||
case 'get_run':
|
||||
if (request['run_id'] == 6) {
|
||||
// The failed run: its summary row is its whole recorded detail.
|
||||
final failed = probeRuns().firstWhere((run) => run['id'] == 6);
|
||||
return {
|
||||
'id': id,
|
||||
'type': 'run',
|
||||
'run_detail': {
|
||||
...failed,
|
||||
'version': 1,
|
||||
'workspace': '/srv/probe/docs',
|
||||
'input': {'prompt': 'Publish the nightly docs.'},
|
||||
'steps': <JsonMap>[],
|
||||
},
|
||||
};
|
||||
}
|
||||
if (request['run_id'] != 7) {
|
||||
return error('Fixture run ${request['run_id']} is unavailable');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user