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
@@ -5,6 +5,16 @@
|
||||
|
||||
---
|
||||
|
||||
## 0.6.4 Relay 错误横幅在后台恢复后不消失(分支 `flutter`)
|
||||
|
||||
| 项 | 结果 |
|
||||
| --- | --- |
|
||||
| 原因 | 从后台恢复时,Relay 隧道第一次请求可能因 DNS/网络尚未就绪失败,`refreshSessions` 把「无法连接 Relay…」写进 `AppState.error`;后续会话列表或事件流成功后没有清除它(事件流只清除固定的「Connection lost, reconnecting…」文案)。侧栏的「重试」只调用 `refreshSessions`,成功也不清错误,所以看起来没有反应,尽管会话、文件和实时更新都已恢复 |
|
||||
| 修复 | 区分传输错误与会话操作错误:会话列表、搜索、加载更多、归档、活动状态、权限、聊天设置、项目、文件主页、模型等任一成功请求,以及事件流恢复后的任意事件,都会清除传输错误;置顶/归档等动作错误不会被例行刷新清掉。侧栏「重试」改为 `retryConnection()`:没有客户端时重连已保存的连接,否则重新拉取会话列表并清掉过期的传输错误 |
|
||||
| 版本 | **0.6.4(code 604)** |
|
||||
|
||||
---
|
||||
|
||||
## 0.6.3 文件侧栏的 gitignore 开关改用服务端值(分支 `flutter`)
|
||||
|
||||
| 项 | 结果 |
|
||||
|
||||
Reference in new issue
Block a user