fix(ui): implement cached startup pre-flight check in SessionService and propagate errors in StaleBanner

This commit is contained in:
2026-07-16 21:18:14 +09:00
parent 2eb85866b3
commit 7c981549a2
3 changed files with 28 additions and 5 deletions
@@ -33,11 +33,14 @@ class StaleBanner extends StatelessWidget {
size: 18,
),
const SizedBox(width: 8),
Text(
'⚠ status snapshot stale (last ok: $lastOkText)',
style: const TextStyle(
color: AppColors.warning,
fontWeight: FontWeight.w600,
Expanded(
child: Text(
'⚠ status snapshot stale (last ok: $lastOkText)${poll.error != null ? ' — Error: ${poll.error}' : ''}',
style: const TextStyle(
color: AppColors.warning,
fontWeight: FontWeight.w600,
),
overflow: TextOverflow.ellipsis,
),
),
],