fix(web): satisfy contracts-ready lint and dedup the stable-file read

Rescope nothing new: drop the needless async from the inherited readRaw
default (reject explicitly on abort), fix the void arrow shorthand in
downloadBlob, and share one revision-stable file-read loop between readRaw
and readPrefix in the JSONL backend.
This commit is contained in:
_Kerman
2026-08-11 12:49:27 +08:00
parent 118b1a8787
commit 3a6112f641
3 changed files with 28 additions and 28 deletions

View File

@@ -108,9 +108,9 @@ export abstract class SessionPersistence extends Service {
* @returns the raw artifact plus its parsed header, or `undefined` when the
* session is absent or the backend owns no per-session artifact.
*/
async readRaw(_id: SessionId, signal?: AbortSignal): Promise<SessionRawArtifact | undefined> {
signal?.throwIfAborted()
return undefined
readRaw(_id: SessionId, signal?: AbortSignal): Promise<SessionRawArtifact | undefined> {
if (signal?.aborted === true) return Promise.reject(signal.reason)
return Promise.resolve(undefined)
}
/**