fix(editor): server jobs, stale proxies and read-only accounts in the remote editor

- A server sequence whose cached frames are no longer the server's (a load, a 409
  merge or a frames change event finds other frame ids) turns read-only and says
  why; opening it, or a sequence without cached proxies, queues the proxy
  download and opens it when done. Signed out reads "Connect to the server".
- Server jobs show queued, running (with a bar), paused and analysing glyphs in
  the header with Cancel; a failed or cancelled one raises a toast with Retry.
  Progress alone no longer refreshes the whole editor.
- The server job list is read by state and kind to its last page; "Add to queue"
  sets the job's priority; the event listener survives any failure and always
  releases its frames and connection.
- An account that may render but not edit picks the preset to render without
  changing the project; preset cards and their batch boxes say why they wait.
- Export tab of a server sequence: no local encoder, notices or folder; no Jobs
  history link. Sync at 12 px beside a folder that keeps 96 px and trims.
- Restore's Undo puts back the project from before the restore, only while that
  restore is the editor's last change.
- Export "Sync" of a render that ends while the session is down is queued for the
  saved session's server; skips are logged; sync follows the engine before it
  starts.
- Capture: sequence-remote-export, -running and -readonly, and
  sequence-export-copies.

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-05 22:15:34 +00:00
1 parent 2813184b85
commit 757695f037
27 files changed
+932 -173

No files matched your search

+19 -2
View File
@@ -21,11 +21,22 @@ public interface ISequenceSource : IAsyncDisposable
bool IsRemote { get; }
/// <summary>
/// The project is shown, not changed (a server sequence for an account without the Edit right): the editor
/// disables every change and the source refuses to store one.
/// The project is shown, not changed: a server sequence for an account without the Edit right, or one whose frames
/// changed on the server (<see cref="IsOutdated"/>). The editor disables every change and the source refuses to
/// store one. It can turn true while the sequence is open (<see cref="ReadOnlyChanged"/>).
/// </summary>
bool IsReadOnly { get; }
/// <summary>
/// The frames this PC shows are no longer the sequence's (frames added or removed on the server since its proxies
/// were fetched): frame positions in the project would point at other frames, so nothing is saved or rendered until
/// the sequence is opened again with fresh proxies.
/// </summary>
bool IsOutdated { get; }
/// <summary><see cref="IsReadOnly"/> changed (any thread).</summary>
event Action? ReadOnlyChanged;
/// <summary>A job that may concern the sequence changed (any thread): this PC's engine, or the server's events.</summary>
event Action<Job>? JobChanged;
@@ -51,6 +62,12 @@ public interface ISequenceSource : IAsyncDisposable
/// <summary>Recent jobs that may concern the sequence (queued, running, finished), for the busy state and the cost of Analyse.</summary>
Task<IReadOnlyList<Job>> ListJobsAsync(CancellationToken cancellationToken);
/// <summary>Cancels a job of the sequence that waits or runs; its new state arrives through <see cref="JobChanged"/>.</summary>
Task CancelJobAsync(Guid jobId, CancellationToken cancellationToken);
/// <summary>Queues a failed or cancelled job of the sequence again from its checkpoint.</summary>
Task RetryJobAsync(Guid jobId, CancellationToken cancellationToken);
}
/// <summary>A sequence as the editor opens it.</summary>