Sessione salvata: correzioni della revisione di S4b (#36)
Un errore imprevisto durante la copia senza «Ho finito» (database, disco) non trattiene più per sempre il permesso di guida: la copia scrive solo il tipo d'errore e la guida finisce lo stesso, così il motore non resta in «Stai usando il browser». Un «Ho finito» tardivo dopo una copia fatta lasciando il browser dice che la sessione era già stata copiata invece di chiedere un nuovo accesso. Il registro distingue la finestra chiusa da quella ridotta a icona troppo a lungo. /api/engine e gli eventi prendono «Serve «Ho finito»» dall'istantanea del motore (EngineSnapshot.SessionCopyMissing) senza chiedere al browser a ogni evento. La prova di WebView2 aspetta la riga del registro, non solo la sessione in memoria. Documenti: nove operazioni GraphQL con __spin_*, H23 descritta in prove-dal-vivo (parte E), guida aggiornata. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
883ea4683c
commit
c69755db23
20 files changed
+310
-54
No files matched your search
@@ -73,11 +73,22 @@ public interface IFebePlatform
|
||||
/// (<c>BrowserConnectionService.OpenStartPageAsync</c>). Null: the button does nothing.
|
||||
/// </param>
|
||||
/// <param name="CopyOnWindowClosed">
|
||||
/// What closing the browser window does before the page goes back to the engine (issue #36, S4b): the connection copies
|
||||
/// the session into the saved session, when there is one (<c>BrowserConnectionService.CopyOnWindowClosedAsync</c>). The
|
||||
/// window holds the driving gate until the task ends. Null: nothing.
|
||||
/// What closing the browser window (or leaving it minimised too long) does before the page goes back to the engine
|
||||
/// (issue #36, S4b): the connection copies the session into the saved session, when there is one
|
||||
/// (<c>BrowserConnectionService.CopyOnWindowClosedAsync</c>). The window holds the driving gate until the task ends.
|
||||
/// Null: nothing.
|
||||
/// </param>
|
||||
public sealed record FebePlatformContext(FebeAppOptions Options, DataFolderLayout Data, IFebeStorage Storage, IClock Clock, FebeLog Log, BrowserUseTracker Tracker, Func<CancellationToken, Task>? OpenStartPage = null, Func<CancellationToken, Task>? CopyOnWindowClosed = null);
|
||||
public sealed record FebePlatformContext(FebeAppOptions Options, DataFolderLayout Data, IFebeStorage Storage, IClock Clock, FebeLog Log, BrowserUseTracker Tracker, Func<CancellationToken, Task>? OpenStartPage = null, Func<BrowserWindowLetGo, CancellationToken, Task>? CopyOnWindowClosed = null);
|
||||
|
||||
/// <summary>How Alberto let go of the window «Browser di Febe» without «Ho finito» (Windows): the log says which.</summary>
|
||||
public enum BrowserWindowLetGo
|
||||
{
|
||||
/// <summary>He closed it.</summary>
|
||||
Closed,
|
||||
|
||||
/// <summary>He left it minimised longer than its limit: it went out of view as if closed.</summary>
|
||||
MinimizedTooLong,
|
||||
}
|
||||
|
||||
/// <summary>Options of the shared composition, filled by each shell from its own configuration.</summary>
|
||||
public sealed record FebeAppOptions
|
||||
|
||||
Reference in new issue
Block a user