fix(session): address restore review feedback

This commit is contained in:
imccyu
2026-08-06 05:13:26 +08:00
parent f0868d6a70
commit 2f98f29992
17 changed files with 233 additions and 38 deletions
@@ -186,7 +186,10 @@ export class SessionPersistenceJsonl extends SessionPersistence implements Persi
return this.readPrefix(path, id, signal)
}
/** Read one log's stat-derived revision without loading its event bytes. */
/**
* Read one log's stat-derived revision without loading its event bytes.
* Resolving an id with unknown cwd still scans the project directories.
*/
async readStoredRevision(id: SessionId, signal?: AbortSignal): Promise<PersistenceRevision | undefined> {
signal?.throwIfAborted()
await this.ensureRootEncoding()