fix(app): exit without waiting for the UI thread, close the editor with the shell, cancel sign-in safely
DESK-1: SyncHost's dispose, session switch and stop now continue on the thread pool (ConfigureAwait(false)) and keep the running agent in one reference. A signed-in user whose archive is not polled no longer waits 10 s at every exit, after which the job engine and the index were never closed. DESK-7: ShellViewModel.Dispose disposes the Sequence section first, so the open editor stops its runners and closes its source before the engine and the index go. DESK-8: Cancel stays available while the server answers a sign-in. It now cancels the request; an answer that still arrives changes nothing (the connection flow ignores answers for a client it dropped), and a sign-in that completed just before the cancel was handled is signed out again. The form no longer sets a result after it closed, and an unexpected failure shows inline instead of escaping async void. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_012iLMBNwBE2GnphAsu4cjaC
This commit is contained in:
8 files changed
+345
-35
No files matched your search
@@ -292,6 +292,8 @@ public sealed class ShellViewModel : LocalizedViewModel
|
||||
|
||||
public override void Dispose()
|
||||
{
|
||||
// The editor first: it stops its runners and closes its source before the engine and the index under it go.
|
||||
Sequence.Dispose();
|
||||
Jobs.Dispose();
|
||||
Library.Dispose();
|
||||
Import.Dispose();
|
||||
|
||||
Reference in new issue
Block a user