fix: clear a stale relay banner once the connection is back
- resuming from the background can fail the first relay request (DNS not ready yet) while a later session read and the event stream work; the banner stayed because only the exact "Connection lost, reconnecting…" text was ever cleared, and a successful session read did not clear it - transport errors (connect, session list/search/more, archive, active, permissions, chat settings, projects, fs home, models) are now marked as such and cleared by any successful read or by an event arriving on the restarted stream; a pin/archive action error is left for the next action - the sidebar Retry now reconnects the stored connection when there is no client, otherwise re-reads the session list and clears the stale error - version 0.6.4+604; tests cover the stale-error clearing and rollback
This commit is contained in:
1 parent
ba3c820186
commit
9ae1e9b97a
6 files changed
+177
-6
No files matched your search
@@ -131,7 +131,7 @@ class _SessionListPaneState extends State<SessionListPane> {
|
||||
color: scheme.error, fontSize: 13)),
|
||||
),
|
||||
TextButton(
|
||||
onPressed: _app.refreshSessions,
|
||||
onPressed: _app.retryConnection,
|
||||
child: const AppText('Retry')),
|
||||
],
|
||||
),
|
||||
|
||||
Reference in new issue
Block a user