Skip to content

The ultimate harness for coding agents and beyond. All your agents. All your machines. One command center. Start with code, then follow your curiosity and build across disciplines: CAD, circuits, robots, games and music.

fix(phone): the Swarm delivery model carries #2336's claim fields, so the phone-Desktop parity test passes again (#2342)

0xken159a82d882d8e2
diff --git a/mobile/lib/swarm/model.dart b/mobile/lib/swarm/model.dart
index 9aac77302..667acfc45 100644
--- a/mobile/lib/swarm/model.dart
+++ b/mobile/lib/swarm/model.dart
@@ -929,11 +929,18 @@ class SuperTabDelivery {
status = row['status'] as String? ?? '',
holdReason = row['holdReason'] as String?,
holdSince = _date(row['holdSince']),
+ claimFailingSince = _date(row['claimFailingSince']),
+ claimFailures = (row['claimFailures'] as num?)?.toInt(),
deliveredAt = _date(row['deliveredAt']),
answeredAt = _date(row['answeredAt']),
updatedAt = _date(row['updatedAt']);
final String? id, holdReason;
final String agentId, status;
+
+ /// Since when the backend's claims of this delivery fail, and how many have
+ /// (prod 10-30, v1.3.71). Null from an older backend, and once a claim works.
+ final DateTime? claimFailingSince;
+ final int? claimFailures;
final DateTime? holdSince, deliveredAt, answeredAt, updatedAt;
static DateTime? _date(Object? value) =>
value is String ? DateTime.tryParse(value) : null;