fix(settings): restore before the index opens; archive rows edit only their archive; parallelism follows the brief

Index restore (ENG-06, UI-09):
- A staged restore now runs on the files before the index is opened, so it also
  recovers an index that no longer opens; Settings > Advanced > Restore works
  without an open index (the current one is shown as unreadable).
- The staged copy passes PRAGMA quick_check (before migration, in a scratch copy)
  ahead of any backup: a damaged copy is set aside as .failed and never renews the
  daily copies. The index it replaces is kept as a VACUUM INTO copy, or, when it
  cannot be read, copied whole with its WAL as titano-replaced-<stamp>.db outside the
  rotation. The staged file is renamed over the index, so it is never applied twice.
- Archive > Maintenance gains Restore database..., which opens Settings > Advanced.

Archive settings (UI-03, ENG-03):
- An archive.json with an empty or overlong name (drive roots) can be edited again:
  the name read is made usable as at creation.
- Proxy and thumbnail sizes outside the presets (an admin's 3840) are listed and
  shown with their number.
- Changing the archive folder retargets the rows: an archive there is registered
  and rescanned; with none, the rows edit only the defaults of new archives. The
  rows never fall back to another archive of the index.
- Reset all and Import settings no longer rewrite the shared archive.json; Archive >
  Reset section asks first, naming the archive.
- PUT /api/v1/archive/settings: 409 archive_busy on a lease conflict, 409
  archive_manifest for a damaged, newer or foreign archive.json (was 500).

Parallelism (UI-02):
- Auto is the job engine's default, half the logical cores (BRIEF 14.6), with each
  job's own decode and analysis threads; a value the user sets is the number of
  workers and caps those threads. The memory budget is shared: each job's frame
  window gets budget / workers.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_012iLMBNwBE2GnphAsu4cjaC
This commit is contained in:
Claude committed 2026-10-12 11:06:27 +00:00
1 parent 3e146c9f9f
commit 56aa4da674
63 files changed
+484 -179

No files matched your search

+5 -2
View File
@@ -74,6 +74,7 @@
<data name="Tooltips.Archive.RebuildStart" xml:space="preserve"><value>Metti in coda la ricostruzione · l'archivio resta utilizzabile</value></data>
<data name="Tooltips.Archive.Relink" xml:space="preserve"><value>Scegli la nuova cartella di un archivio spostato; le sequenze lo seguono</value></data>
<data name="Tooltips.Archive.RenameApply" xml:space="preserve"><value>Applica esattamente queste modifiche a cartelle, sidecar e indice · riprende dopo un arresto</value></data>
<data name="Tooltips.Archive.Restore" xml:space="preserve"><value>Scegli una copia giornaliera dell'indice in Impostazioni › Avanzate; sostituisce l'indice al prossimo avvio</value></data>
<data name="Tooltips.Archive.RetagApply" xml:space="preserve"><value>Cambia i tag di queste sequenze in sidecar e indice</value></data>
<data name="Tooltips.Archive.Retry" xml:space="preserve"><value>Esegui di nuovo la stessa azione</value></data>
<data name="Tooltips.Archive.Scan" xml:space="preserve"><value>Scansione incrementale: file nuovi, modificati e rimossi per data e dimensione</value></data>
@@ -530,6 +531,7 @@
<data name="Tooltips.Settings.Import" xml:space="preserve"><value>Carica le impostazioni da un file JSON; la sessione e la disposizione della finestra restano invariate</value></data>
<data name="Tooltips.Settings.Install" xml:space="preserve"><value>Apri la pagina del Microsoft Store di questa estensione, gratuita o a pagamento; dopo averla installata premi Rileva di nuovo</value></data>
<data name="Tooltips.Settings.InterfacePriority" xml:space="preserve"><value>Mentre Titano è in primo piano, l'interfaccia ha la precedenza sulle attività e resta fluida durante rendering e analisi</value></data>
<data name="Tooltips.Settings.KeepArchiveSettings" xml:space="preserve"><value>Lascia le impostazioni dell'archivio come sono</value></data>
<data name="Tooltips.Settings.KeepCache" xml:space="preserve"><value>Lascia la cache com'è</value></data>
<data name="Tooltips.Settings.KeepIndex" xml:space="preserve"><value>Lascia l'indice com'è</value></data>
<data name="Tooltips.Settings.KeepSettings" xml:space="preserve"><value>Lascia ogni impostazione com'è</value></data>
@@ -551,8 +553,6 @@
<data name="Tooltips.Settings.Page.Server" xml:space="preserve"><value>Server predefinito, nodo di rendering, certificati attendibili</value></data>
<data name="Tooltips.Settings.Page.Storage" xml:space="preserve"><value>Cartella della cache, miniature in memoria, limite della cache</value></data>
<data name="Tooltips.Settings.Page.Updates" xml:space="preserve"><value>Controllo degli aggiornamenti all'avvio</value></data>
<data name="Tooltips.Settings.ParallelismAuto" xml:space="preserve"><value>Auto: core meno quattro, così l'interfaccia resta reattiva</value></data>
<data name="Tooltips.Settings.ParallelismReset" xml:space="preserve"><value>Torna ad Auto: core meno quattro</value></data>
<data name="Tooltips.Settings.Polling" xml:space="preserve"><value>Ogni quanto Titano riscansiona l'archivio per le modifiche fatte altrove, per esempio da un server che lo condivide</value></data>
<data name="Tooltips.Settings.Portable" xml:space="preserve"><value>Attiva quando portable.txt si trova accanto a Titano.exe: tutti i dati restano nella sua cartella data</value></data>
<data name="Tooltips.Settings.PreferHardware" xml:space="preserve"><value>Usa un encoder hardware quando supporta il preset; altrimenti il software</value></data>
@@ -563,6 +563,7 @@
<data name="Tooltips.Settings.Redetect" xml:space="preserve"><value>Elenca di nuovo gli encoder dopo l'installazione di un driver o di un codec</value></data>
<data name="Tooltips.Settings.RedetectFormats" xml:space="preserve"><value>Cerca di nuovo le estensioni codec dopo averne installata una; le prossime attività le usano</value></data>
<data name="Tooltips.Settings.ResetAll" xml:space="preserve"><value>Riporta ogni impostazione di questo PC al valore predefinito; chiede prima</value></data>
<data name="Tooltips.Settings.ResetArchiveConfirm" xml:space="preserve"><value>Scrivi ora i modelli e le dimensioni predefiniti nel file archive.json dell'archivio</value></data>
<data name="Tooltips.Settings.ResetConfirm" xml:space="preserve"><value>Reimposta ora ogni impostazione</value></data>
<data name="Tooltips.Settings.ResetSection" xml:space="preserve"><value>Riporta ogni controllo di questa sezione al valore predefinito</value></data>
<data name="Tooltips.Settings.Restore" xml:space="preserve"><value>Confronta la copia scelta con l'indice, poi la ripristina al prossimo avvio; chiede prima</value></data>
@@ -584,6 +585,8 @@
<data name="Tooltips.Settings.Tier.Unavailable" xml:space="preserve"><value>Nessun decodificatore su questo PC ne legge i pixel; questi fotogrammi restano fuori dai rendering</value></data>
<data name="Tooltips.Settings.UsageCounts" xml:space="preserve"><value>Invia ogni giorno un conteggio anonimo di versioni e lingue in uso; nient'altro, disattivato per impostazione predefinita</value></data>
<data name="Tooltips.Settings.Workers" xml:space="preserve"><value>Attività e fotogrammi elaborati insieme; meno lasciano più spazio agli altri programmi · Invio applica, Esc annulla</value></data>
<data name="Tooltips.Settings.WorkersAuto" xml:space="preserve"><value>Auto: metà dei core logici esegue attività insieme, ognuna con il proprio numero di thread</value></data>
<data name="Tooltips.Settings.WorkersReset" xml:space="preserve"><value>Torna ad Auto: metà dei core logici</value></data>
<data name="Tooltips.Setup.AllUsers" xml:space="preserve"><value>Installa in Programmi per tutti gli account · chiede l'autorizzazione di amministratore</value></data>
<data name="Tooltips.Setup.Back" xml:space="preserve"><value>Torna alle opzioni senza modificare nulla</value></data>
<data name="Tooltips.Setup.Browse" xml:space="preserve"><value>Scegli la cartella di installazione</value></data>