From 433e89c33a21b12ba8b275d25ffd6288047496e3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=B1=AA=E5=BF=97=E9=B9=8F?= Date: Sun, 29 Nov 2026 15:43:54 +0000 Subject: [PATCH 1/2] [perf] canvas: filter the asset list in the browser instead of per keystroke The asset list re-read the whole listing from the server for every search change, visibility choice and type tab, although it already reads every page of it. Each read recomputes inventory and usage over the full commit history, and the list was cleared while it ran. Load the unfiltered listing once when the list opens and filter search, visibility and type in the browser, with the same matching as the server's asset search. The open list now refreshes when the project changes (an agent adding media, for example), keeping the current rows on screen until the new list is complete; a change during a load reloads once after it, and pages from different revisions are retried before the list reports the change. Deleted rows leave at once after the delete receipt. Video hover previews now read like on-screen canvas media, at visible priority with an abort signal, so moving the pointer down a list of videos abandons reads nobody is waiting for instead of queueing every whole file ahead of the canvas. Co-Authored-By: Claude Opus 5.5 --- src/canvas/CreationAssetList.tsx | 160 +++++++++++++++++++++----- src/canvas/CreationAssetPreview.tsx | 20 ++-- tests/browser/creation_asset_list.mjs | 35 ++++-- 3 files changed, 170 insertions(+), 45 deletions(-) diff --git a/src/canvas/CreationAssetList.tsx b/src/canvas/CreationAssetList.tsx index 9a8193d6a..9fa08ed3c 100644 --- a/src/canvas/CreationAssetList.tsx +++ b/src/canvas/CreationAssetList.tsx @@ -1,4 +1,12 @@ -import { useCallback, useEffect, useId, useRef, useState } from "react"; +import { + useCallback, + useDeferredValue, + useEffect, + useId, + useMemo, + useRef, + useState, +} from "react"; import type { Asset, CanvasItem } from "../contracts/generated.ts"; import { assetReference, @@ -59,6 +67,10 @@ interface Listing { eventCursor: number; counts: Record; } +type Loaded = Omit; +/** Pages from different project revisions are retried this many times before + * the list reports that the project changed. */ +const CHANGED_RETRIES = 2; interface NodeRow { itemId: string; title: string; @@ -95,8 +107,10 @@ export function CreationAssetList({ return key ? t(key) : label; }; const [text, setText] = useState(""), - [visibility, setVisibility] = useState("all"), - [query, setQuery] = useState(""); + [visibility, setVisibility] = useState("all"); + // Filtering runs in the browser over the loaded list, so typing never waits + // for the server; the deferred value keeps long lists from blocking input. + const query = useDeferredValue(text); const [category, setCategory] = useState("all"); const [preview, setPreview] = useState(null); const previewTimer = useRef(undefined); @@ -131,8 +145,15 @@ export function CreationAssetList({ }; const rowsId = useId(); const [loading, setLoading] = useState(true); - const [listing, setListing] = useState(null), + // The whole unfiltered listing; search, visibility and type only narrow it. + const [loaded, setLoaded] = useState(null), [error, setError] = useState(""); + const [revision, setRevision] = useState(0); + // The project whose complete list is on screen, and whether it changed + // again while a load was already running. + const shown = useRef(null); + const reading = useRef(false), + stale = useRef(false); const [selected, setSelected] = useState([]), [busy, setBusy] = useState(false), [attempt, setAttempt] = useState(0); @@ -175,51 +196,64 @@ export function CreationAssetList({ document.removeEventListener("keydown", escape, true); }; }, [anchor, busy, onClose]); - useEffect(() => { - const timer = window.setTimeout(() => setQuery(text), 200); - return () => window.clearTimeout(timer); - }, [text]); useEffect(() => { const controller = new AbortController(); let active = true; - setListing(null); + // A refresh keeps the current rows on screen until the new list is whole. + const refreshing = shown.current === projectId; + if (!refreshing) { + shown.current = null; + setLoaded(null); + } + reading.current = true; + stale.current = false; setLoading(true); setError(""); void (async () => { - const rows: Row[] = []; - const nodes: NodeRow[] = []; + let rows: Row[] = []; + let nodes: NodeRow[] = []; let total = Infinity, - cursor = 0; + cursor = 0, + retries = 0; while (rows.length + nodes.length < total) { const page = await request( - `${creationPath(projectId)}/asset-list?text=${encodeURIComponent(query)}&visibility=${visibility}&category=${category}&offset=${rows.length + nodes.length}&limit=200`, + `${creationPath(projectId)}/asset-list?offset=${rows.length + nodes.length}&limit=200`, { signal: controller.signal }, ); - if ((rows.length || nodes.length) && page.eventCursor !== cursor) - throw new Error(t("canvasNodes.assets.changed")); + if ((rows.length || nodes.length) && page.eventCursor !== cursor) { + // Pages from different project revisions never form one list. + if (retries++ >= CHANGED_RETRIES) + throw new Error(t("canvasNodes.assets.changed")); + rows = []; + nodes = []; + total = Infinity; + continue; + } rows.push(...page.items); nodes.push(...(page.nodes ?? [])); total = page.total; cursor = page.eventCursor; - if (active) - setListing({ + if (active && !refreshing) + setLoaded({ items: [...rows], nodes: [...nodes], total, eventCursor: cursor, - counts: page.counts, }); if (!page.items.length && !page.nodes?.length) break; } if (active) { + setLoaded({ items: rows, nodes, total, eventCursor: cursor }); + shown.current = projectId; + reading.current = false; setLoading(false); - setSelected((ids) => - ids.filter((id) => rows.some((row) => row.asset.id === id)), - ); + if (stale.current) setRevision((n) => n + 1); } })().catch((reason) => { if (active) { - setListing(null); + shown.current = null; + reading.current = false; + setLoaded(null); setLoading(false); setError(errorMessage(reason)); } @@ -228,7 +262,68 @@ export function CreationAssetList({ active = false; controller.abort(); }; - }, [projectId, query, visibility, category, attempt]); + }, [projectId, attempt, revision]); + // Reload when the project changes while the list is open, e.g. an agent adds + // media. A change during a load reloads once that load is done, so a busy + // project cannot keep restarting the list. + useEffect(() => { + const client = creationClient(projectId); + let seen = client.snapshot?.eventCursor; + return client.listen((snapshot) => { + if (snapshot.eventCursor === seen) return; + seen = snapshot.eventCursor; + if (reading.current) stale.current = true; + else if (shown.current === projectId) setRevision((n) => n + 1); + }); + }, [projectId]); + const listing = useMemo(() => { + if (!loaded) return null; + // Same matching as the server's asset search: name or owning node title. + const needle = query.toLowerCase(); + const items = loaded.items.filter( + (row) => + (visibility === "all" || + row.owners.some((owner) => owner.visible) === + (visibility === "visible")) && + (row.asset.name.toLowerCase().includes(needle) || + row.owners.some((owner) => + owner.title.toLowerCase().includes(needle), + )), + ); + const nodes = loaded.nodes.filter( + (row) => + (visibility === "all" || row.visible === (visibility === "visible")) && + row.title.toLowerCase().includes(needle), + ); + const counts = Object.fromEntries( + CATEGORIES.map((entry) => [entry.id, 0]), + ) as Record; + counts.all = items.length + nodes.length; + for (const row of items) + for (const kind of row.categories) + if (kind !== "all" && kind in counts) counts[kind as Category] += 1; + for (const row of nodes) counts[row.kind] += 1; + return { + items: + category === "all" + ? items + : items.filter((row) => row.categories.includes(category)), + nodes: + category === "all" + ? nodes + : nodes.filter((row) => row.kind === category), + counts, + }; + }, [loaded, query, visibility, category]); + useEffect(() => { + if (loading || !listing) return; + setSelected((ids) => { + const next = ids.filter((id) => + listing.items.some((row) => row.asset.id === id), + ); + return next.length === ids.length ? ids : next; + }); + }, [listing, loading]); useEffect(clearPreview, [category, query, visibility, clearPreview]); const perform = async (action: () => Promise) => { setBusy(true); @@ -278,6 +373,18 @@ export function CreationAssetList({ deleting.impact.fingerprint, ); if (alive.current) { + // The receipt confirms the deletion; drop the rows now instead of + // leaving them on screen until the refreshed list arrives. + const removed = new Set(deleting.ids); + setLoaded((current) => { + if (!current) return current; + const items = current.items.filter((row) => !removed.has(row.asset.id)); + return { + ...current, + items, + total: current.total - (current.items.length - items.length), + }; + }); setDeleting(null); setSelected([]); setAttempt((n) => n + 1); @@ -519,10 +626,11 @@ export function CreationAssetList({ {loading && !error && (

{t("canvasNodes.assets.loading")} - {listing && + {loaded && + loaded.items.length + loaded.nodes.length < loaded.total && t("canvasNodes.assets.progress", { - shown: listing.items.length + listing.nodes.length, - total: listing.total, + shown: loaded.items.length + loaded.nodes.length, + total: loaded.total, })}

)} diff --git a/src/canvas/CreationAssetPreview.tsx b/src/canvas/CreationAssetPreview.tsx index 8fd8142fe..9e24ead8d 100644 --- a/src/canvas/CreationAssetPreview.tsx +++ b/src/canvas/CreationAssetPreview.tsx @@ -1,7 +1,7 @@ import { useEffect, useLayoutEffect, useRef, useState } from "react"; import { createPortal } from "react-dom"; import type { Asset } from "../contracts/generated.ts"; -import { creationClient } from "../backend/creationClient.ts"; +import { creationClient, MEDIA_PRIORITY } from "../backend/creationClient.ts"; import { CanvasIcon } from "./CanvasIcon.tsx"; import { useT } from "../i18n/I18nProvider.tsx"; @@ -26,28 +26,32 @@ export function HoverPreview({ const [content, setContent] = useState(); const [failed, setFailed] = useState(false); useEffect(() => { - let active = true; const asset = preview.asset; if (!asset) return; + const controller = new AbortController(); const client = creationClient(projectId); + // A video preview reads the whole file. Read it like on-screen canvas media + // so leaving the row abandons it; otherwise moving the pointer down a list + // of videos queues every file ahead of the canvas's own media. const pending = asset.kind === "image" ? client.thumbnailUrl(asset.id) : asset.kind === "text" && asset.metadata.size <= 65536 ? client.textContent(asset.id) : asset.kind === "video" - ? client.mediaUrl(asset.id) + ? client.mediaUrl(asset.id, { + signal: controller.signal, + priority: MEDIA_PRIORITY.visible, + }) : Promise.resolve(""); void pending .then((value) => { - if (active) setContent(value); + if (!controller.signal.aborted) setContent(value); }) .catch(() => { - if (active) setFailed(true); + if (!controller.signal.aborted) setFailed(true); }); - return () => { - active = false; - }; + return () => controller.abort(); }, [projectId, preview.asset]); useLayoutEffect(() => { const element = panel.current!; diff --git a/tests/browser/creation_asset_list.mjs b/tests/browser/creation_asset_list.mjs index 3cc246da9..db82e5975 100644 --- a/tests/browser/creation_asset_list.mjs +++ b/tests/browser/creation_asset_list.mjs @@ -223,6 +223,7 @@ try { owners: [], specId: null, createdOrder: index, + categories: ["text"], })); let cursorMismatch = false; const queries = []; @@ -231,18 +232,17 @@ try { `**/creation/projects/${projectId}/asset-list?*`, async (route) => { const params = new URL(route.request().url()).searchParams; - const query = params.get("text"); - queries.push(query); + queries.push(params.toString()); const offset = Number(params.get("offset")); if (offset && !cursorMismatch) await secondPage; await route.fulfill({ json: { - items: query ? [rows[200]] : rows.slice(offset, offset + 200), - total: query ? 1 : rows.length, + items: rows.slice(offset, offset + 200), + total: rows.length, eventCursor: cursorMismatch && offset ? 2 : 1, counts: { - all: query ? 1 : rows.length, - text: query ? 1 : rows.length, + all: rows.length, + text: rows.length, image: 0, video: 0, audio: 0, @@ -304,10 +304,19 @@ try { await page.waitForFunction( () => document.querySelectorAll(".cw-creation-asset-row").length === 1, ); - assert.deepEqual(queries.slice(count), ["Asset 200"]); - // Pages from different project revisions must never form a usable list. - cursorMismatch = true; + await dialog.getByRole("tab", { name: "文本 1", exact: true }).click(); await search.fill(""); + await page.waitForFunction( + () => document.querySelectorAll(".cw-creation-asset-row").length === 201, + ); + // Search and type filters narrow the loaded list without asking the server. + assert.deepEqual(queries.slice(count), []); + await dialog.getByRole("tab", { name: "全部 201", exact: true }).click(); + // Pages from different project revisions must never form a usable list, + // even after the list has read every page again. + cursorMismatch = true; + await dialog.getByRole("button", { name: "关闭资产列表" }).click(); + await page.getByRole("button", { name: "资产列表", exact: true }).click(); await dialog .getByRole("alert") .filter({ hasText: "资产列表已变化" }) @@ -321,6 +330,11 @@ try { assert.equal(await dialog.getByRole("checkbox").count(), 201); await dialog.getByRole("button", { name: "关闭资产列表" }).click(); await page.unroute(`**/creation/projects/${projectId}/asset-list?*`); + await page.getByRole("button", { name: "资产列表", exact: true }).click(); + await dialog + .getByRole("checkbox", { name: "选择资产:画布图片", exact: true }) + .waitFor(); + // Media added while the list is open appears without reopening it. await page.evaluate(async (projectId) => { const { creationClient } = await import("/src/backend/creationClient.ts"); await creationClient(projectId).command("asset.writeText", { @@ -328,7 +342,6 @@ try { text: "Asset list integration check", }); }, projectId); - await page.getByRole("button", { name: "资产列表", exact: true }).click(); await dialog .getByRole("checkbox", { name: "选择资产:Actual asset.md", exact: true }) .waitFor(); @@ -613,7 +626,7 @@ try { console.log( JSON.stringify({ firstPageBeforeCompletion: true, - debouncedSearch: true, + searchWithoutRequests: true, cursorConflictDiscarded: true, retry: true, realAssetQuery: true, From 58ff07858c6034ecd015e406fb5c271a1b925089 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=B1=AA=E5=BF=97=E9=B9=8F?= Date: Sun, 29 Nov 2026 16:20:00 +0000 Subject: [PATCH 2/2] [perf] canvas: refresh the open asset list only for changes it shows The open list reread every page whenever the project's event cursor moved, so moving nodes or an agent adding media one item at a time kept it reading, and each read recomputes inventory and usage over the commit history. It now compares a fingerprint of the snapshot parts the list is computed from (assets, owning nodes' titles, visibility and bindings, current results, pinned references, editor documents) and ignores other events, and refreshes start at least 2 s after the previous read ends. With the list open in the browser test, five node moves caused five list reads before and none now; eight text writes 300 ms apart caused 13 reads before and 3 now. A failed background refresh no longer empties the list: the rows stay, a notice says the list may be out of date, and the next change refreshes it again. Only a failed first read clears the list and shows the error. Co-Authored-By: Claude Opus 5.5 --- src/canvas/CreationAssetList.tsx | 123 +++++++++++++++++++++---- src/i18n/messages/en-US/canvasNodes.ts | 1 + src/i18n/messages/zh-CN/canvasNodes.ts | 1 + tests/browser/creation_asset_list.mjs | 109 ++++++++++++++++++++++ 4 files changed, 215 insertions(+), 19 deletions(-) diff --git a/src/canvas/CreationAssetList.tsx b/src/canvas/CreationAssetList.tsx index 9fa08ed3c..5940a7b23 100644 --- a/src/canvas/CreationAssetList.tsx +++ b/src/canvas/CreationAssetList.tsx @@ -7,7 +7,11 @@ import { useRef, useState, } from "react"; -import type { Asset, CanvasItem } from "../contracts/generated.ts"; +import type { + Asset, + CanvasItem, + ProjectSnapshot, +} from "../contracts/generated.ts"; import { assetReference, creationClient, @@ -71,6 +75,38 @@ type Loaded = Omit; /** Pages from different project revisions are retried this many times before * the list reports that the project changed. */ const CHANGED_RETRIES = 2; +/** A refresh of the open list waits this long after the previous read ends, + * so a busy project reads it at most once per gap instead of once per event. */ +const REFRESH_GAP_MS = 2000; +/** The parts of a snapshot the asset list is computed from: assets, the + * canvas nodes that own them (title, visibility, binding), current results, + * pinned references and the editor documents listed or counted as usage. + * Moving, resizing or restyling nodes leaves it unchanged. */ +function listingFingerprint(snapshot: ProjectSnapshot) { + return JSON.stringify([ + snapshot.undoClearedThrough, + snapshot.assets.map((asset) => [asset.id, asset.name, asset.kind]), + snapshot.canvasItems.map((item) => [ + item.id, + item.kind, + item.title, + item.visible, + item.parentId, + item.binding, + ]), + snapshot.generationSpecs.map((spec) => [spec.id, spec.currentResultId]), + snapshot.results.map((result) => [result.id, result.asset.assetId]), + snapshot.references.map((ref) => [ + ref.id, + ref.active, + ref.binding === "pinned" ? ref.source.assetId : null, + ]), + snapshot.editorDocuments.map((document) => [ + document.id, + document.revision, + ]), + ]); +} interface NodeRow { itemId: string; title: string; @@ -154,6 +190,21 @@ export function CreationAssetList({ const shown = useRef(null); const reading = useRef(false), stale = useRef(false); + // A background refresh failed; the rows on screen are kept but may be old. + const [outdated, setOutdated] = useState(false); + const loadFinished = useRef(0); + const refreshTimer = useRef(undefined); + const scheduleRefresh = useCallback(() => { + if (refreshTimer.current !== undefined) return; + refreshTimer.current = window.setTimeout( + () => { + refreshTimer.current = undefined; + if (reading.current) stale.current = true; + else if (shown.current === projectId) setRevision((n) => n + 1); + }, + Math.max(0, loadFinished.current + REFRESH_GAP_MS - Date.now()), + ); + }, [projectId]); const [selected, setSelected] = useState([]), [busy, setBusy] = useState(false), [attempt, setAttempt] = useState(0); @@ -204,7 +255,12 @@ export function CreationAssetList({ if (!refreshing) { shown.current = null; setLoaded(null); + setOutdated(false); } + // This read sees every change made so far, so a refresh waiting for the + // gap is no longer needed. + window.clearTimeout(refreshTimer.current); + refreshTimer.current = undefined; reading.current = true; stale.current = false; setLoading(true); @@ -246,39 +302,57 @@ export function CreationAssetList({ setLoaded({ items: rows, nodes, total, eventCursor: cursor }); shown.current = projectId; reading.current = false; + loadFinished.current = Date.now(); setLoading(false); - if (stale.current) setRevision((n) => n + 1); + setOutdated(false); + if (stale.current) scheduleRefresh(); } })().catch((reason) => { - if (active) { - shown.current = null; - reading.current = false; - setLoaded(null); - setLoading(false); - setError(errorMessage(reason)); + if (!active) return; + reading.current = false; + loadFinished.current = Date.now(); + setLoading(false); + if (refreshing) { + // A failed refresh keeps the list on screen and marks it as possibly + // old; the next project change refreshes it again. + setOutdated(true); + if (stale.current) scheduleRefresh(); + return; } + shown.current = null; + setLoaded(null); + setError(errorMessage(reason)); }); return () => { active = false; controller.abort(); }; - }, [projectId, attempt, revision]); - // Reload when the project changes while the list is open, e.g. an agent adds - // media. A change during a load reloads once that load is done, so a busy - // project cannot keep restarting the list. + }, [projectId, attempt, revision, scheduleRefresh]); + // Reload when a change to the project can change the list while it is open, + // e.g. an agent adds media. Other events, such as moving nodes, are ignored. + // A change during a load reloads once that load is done, and reloads keep + // REFRESH_GAP_MS apart, so a busy project cannot keep the list reading. useEffect(() => { const client = creationClient(projectId); - let seen = client.snapshot?.eventCursor; - return client.listen((snapshot) => { - if (snapshot.eventCursor === seen) return; - seen = snapshot.eventCursor; + let seen = client.snapshot ? listingFingerprint(client.snapshot) : ""; + const stop = client.listen((snapshot) => { + const next = listingFingerprint(snapshot); + if (next === seen) return; + seen = next; if (reading.current) stale.current = true; - else if (shown.current === projectId) setRevision((n) => n + 1); + else if (shown.current === projectId) scheduleRefresh(); }); - }, [projectId]); + return () => { + stop(); + window.clearTimeout(refreshTimer.current); + refreshTimer.current = undefined; + }; + }, [projectId, scheduleRefresh]); const listing = useMemo(() => { if (!loaded) return null; - // Same matching as the server's asset search: name or owning node title. + // Like the server's asset search: name or owning node title, ignoring + // case. toLowerCase is close to Python's casefold but not identical + // (casefold also folds "ß" to "ss"). const needle = query.toLowerCase(); const items = loaded.items.filter( (row) => @@ -634,6 +708,17 @@ export function CreationAssetList({ })}

)} + {outdated && !loading && !error && ( +

+ {t("canvasNodes.assets.outdated")} + +

+ )}
{ + if (request.url().includes(`/creation/projects/${projectId}/asset-list?`)) + listReads.push(request.url()); + }; + page.on("request", countRead); + const writeText = (name) => + page.evaluate( + async ({ projectId, name }) => { + const { creationClient } = + await import("/src/backend/creationClient.ts"); + await creationClient(projectId).command("asset.writeText", { + name, + text: name, + }); + }, + { projectId, name }, + ); + await page.getByRole("button", { name: "资产列表", exact: true }).click(); + await dialog.getByRole("checkbox").first().waitFor(); + await dialog + .getByRole("status") + .filter({ hasText: "正在读取资产列表" }) + .waitFor({ state: "detached" }); + listReads.length = 0; + const moved = await page.evaluate(async (projectId) => { + const { creationClient, objectVersion } = + await import("/src/backend/creationClient.ts"); + const client = creationClient(projectId); + const before = client.snapshot.eventCursor; + for (let step = 0; step < 5; step += 1) { + const item = client.snapshot.canvasItems[0]; + await client.command( + "canvas.move", + { + items: [ + { + itemId: item.id, + position: { x: item.position.x + 10, y: item.position.y }, + }, + ], + }, + [objectVersion("canvas_item", item)], + ); + await new Promise((resolve) => setTimeout(resolve, 100)); + } + return client.snapshot.eventCursor - before; + }, projectId); + assert.ok(moved >= 5, "Moves must produce project events"); + await page.waitForTimeout(2500); + assert.deepEqual(listReads, [], "Moving nodes must not reread the list"); + // Eight writes 300 ms apart, as an agent adding media one at a time. + const burstStarted = Date.now(); + for (let n = 1; n <= 8; n += 1) { + await writeText(`Burst ${n}.md`); + await page.waitForTimeout(300); + } + await dialog + .getByRole("checkbox", { name: "选择资产:Burst 8.md", exact: true }) + .waitFor(); + await page.waitForTimeout(2500); + const burstReads = listReads.length, + burstSeconds = (Date.now() - burstStarted) / 1000; + assert.ok( + burstReads <= Math.ceil(burstSeconds / 2) + 1, + `${burstReads} list reads in ${burstSeconds}s`, + ); + // A failed background refresh keeps the rows and says they may be old; + // the next change refreshes the list again. + await page.route(`**/creation/projects/${projectId}/asset-list?*`, (route) => + route.fulfill({ status: 503, json: { detail: "unavailable" } }), + ); + await writeText("Offline 1.md"); + await dialog + .getByRole("status") + .filter({ hasText: "资产列表可能已过期" }) + .waitFor(); + assert.equal(await dialog.getByRole("alert").count(), 0); + assert.equal( + await dialog + .getByRole("checkbox", { name: "选择资产:Burst 8.md", exact: true }) + .count(), + 1, + ); + await page.unroute(`**/creation/projects/${projectId}/asset-list?*`); + await writeText("Offline 2.md"); + await dialog + .getByRole("checkbox", { name: "选择资产:Offline 2.md", exact: true }) + .waitFor(); + await dialog + .getByRole("checkbox", { name: "选择资产:Offline 1.md", exact: true }) + .waitFor(); + assert.equal( + await dialog + .getByRole("status") + .filter({ hasText: "资产列表可能已过期" }) + .count(), + 0, + ); + page.off("request", countRead); + await dialog + .getByRole("button", { name: "关闭资产列表", exact: true }) + .click(); assert.deepEqual(errors, []); console.log( JSON.stringify({ @@ -641,6 +746,10 @@ try { hiddenSubjectRestoredAndLocated: true, selectedDeletionOnly: true, visibleAssetProtected: true, + layoutChangesIgnored: true, + burstListReads: burstReads, + burstSeconds, + failedRefreshKeepsRows: true, errors, }), );