feat(ai-ux): deduplicate AI queries, handle ServiceUnavailable retries, and optimize reader canvas graph prerendering

This commit is contained in:
2026-05-18 19:36:44 +02:00
parent f808734768
commit c96a8d8651
37 changed files with 2023 additions and 124 deletions
@@ -19,8 +19,9 @@ public class EpubMetadataExtractor : IEpubMetadataExtractor
using var bookRef = await EpubReader.OpenBookAsync(epubStream);
var title = bookRef.Title ?? "Unknown Title";
var author = bookRef.Author ?? "Unknown Author";
var description = bookRef.Description;
byte[]? cover = await bookRef.ReadCoverAsync();
return Result.Ok(new LocalEpubMetadata { Title = title, Author = author, CoverImage = cover });
return Result.Ok(new LocalEpubMetadata { Title = title, Author = author, CoverImage = cover, Description = description });
}
catch (Exception ex)
{