Sessione salvata: copia alla chiusura della finestra e alla fine della guida, «Serve «Ho finito»», scelta per la copia incompleta e stato in Collegamento (#36, S4b)
Risposte 1, 5, 6, 9 e 10 di Alberto a S4. I valori __spin_r, __spin_b e __spin_t si copiano dalla pagina come gli altri (su Instagram da SiteData, ipotesi H23, operazioni ancora non configurate; nel sito di prova dal modulo GiroProva). La sessione si copia anche quando si chiude la finestra del browser su Windows e quando il permesso di guida finisce, sempre prima che la pagina torni al motore e con le garanzie di «Ho finito». Con «richieste» «Collegato» vuole una sessione salvata leggibile, altrimenti lo stato è «Serve «Ho finito»» e il motore aspetta. Nuova impostazione sessione.copia-incompleta (sostituisci, predefinita, o tieni-completa) e riquadro della sessione salvata nella pagina Collegamento, con soli conteggi e nomi. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
9958745e53
commit
883ea4683c
41 files changed
+1349
-101
No files matched your search
@@ -14,6 +14,48 @@ public enum ConnectionState
|
||||
|
||||
/// <summary>The browser is not available (starting, crashed, demo without browser).</summary>
|
||||
BrowserUnavailable,
|
||||
|
||||
/// <summary>
|
||||
/// The session cookie is in the browser, but the raccolta «richieste» has no readable saved session to send it with
|
||||
/// (issue #36, S4b): «Serve «Ho finito»». The engine waits until a copy is made.
|
||||
/// </summary>
|
||||
SessionCopyMissing,
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// The saved session of the raccolta «richieste» as the Collegamento page shows it (issue #36, S4b): counts and names
|
||||
/// only, never a value (rule 10).
|
||||
/// </summary>
|
||||
/// <param name="State"><see cref="Present"/>, <see cref="None"/> or <see cref="Unreadable"/>.</param>
|
||||
/// <param name="CopiedAt">When the copy was made; null when there is none or it is not known.</param>
|
||||
/// <param name="Cookies">How many cookies it holds.</param>
|
||||
/// <param name="ValuesPresent">Values of the page it holds.</param>
|
||||
/// <param name="ValuesExpected">Values of the page the copy reads.</param>
|
||||
/// <param name="MissingValues">Names of the values it lacks.</param>
|
||||
/// <param name="DocIdsPresent">doc_id it holds.</param>
|
||||
/// <param name="DocIdsExpected">doc_id the copy reads.</param>
|
||||
/// <param name="MissingDocIds">Operations whose doc_id it lacks.</param>
|
||||
/// <param name="NeededMissing">How many of those a configured operation sends (its requests do not leave).</param>
|
||||
public sealed record SavedSessionStatus(
|
||||
string State,
|
||||
DateTimeOffset? CopiedAt,
|
||||
int Cookies,
|
||||
int ValuesPresent,
|
||||
int ValuesExpected,
|
||||
IReadOnlyList<string> MissingValues,
|
||||
int DocIdsPresent,
|
||||
int DocIdsExpected,
|
||||
IReadOnlyList<string> MissingDocIds,
|
||||
int NeededMissing)
|
||||
{
|
||||
/// <summary>A readable saved session.</summary>
|
||||
public const string Present = "present";
|
||||
|
||||
/// <summary>No saved session.</summary>
|
||||
public const string None = "none";
|
||||
|
||||
/// <summary>A file that cannot be read: counts as none.</summary>
|
||||
public const string Unreadable = "unreadable";
|
||||
}
|
||||
|
||||
/// <summary>What the interface knows about the link to Instagram.</summary>
|
||||
@@ -22,12 +64,14 @@ public enum ConnectionState
|
||||
/// <param name="DisplayName">Display name, when known.</param>
|
||||
/// <param name="UserIsDriving">True while Alberto is using the browser (login page, remote view, browser window): the engine is still.</param>
|
||||
/// <param name="CurrentUrl">Address shown in the remote view's address bar, without query string.</param>
|
||||
/// <param name="SavedSession">The saved session (raccolta «richieste»); null when this start keeps none.</param>
|
||||
public sealed record ConnectionStatus(
|
||||
ConnectionState State,
|
||||
string? Username,
|
||||
string? DisplayName,
|
||||
bool UserIsDriving,
|
||||
string? CurrentUrl);
|
||||
string? CurrentUrl,
|
||||
SavedSessionStatus? SavedSession = null);
|
||||
|
||||
/// <summary>Result of «Ho finito» on the Collegamento page.</summary>
|
||||
/// <param name="Connected">True when the session cookie now exists.</param>
|
||||
|
||||
Reference in new issue
Block a user