agentHost: add session-specific metadata

Adds a SQLite DB for session-specific metadata. Stores edits in there.
It can _almost_ restore edits, but I still need to make undoStops be
similarly persisted. That is a project for later this evening.
This commit is contained in:
Connor Peet
2026-03-26 15:46:46 -07:00
parent 29d9808be8
commit da5fb11b3b
19 changed files with 1688 additions and 177 deletions

View File

@@ -74,6 +74,7 @@ suite('AgentSideEffects', () => {
_serviceBrand: undefined,
getSessionDataDir: () => URI.from({ scheme: Schemas.inMemory, path: '/session-data' }),
getSessionDataDirById: () => URI.from({ scheme: Schemas.inMemory, path: '/session-data' }),
openDatabase: () => { throw new Error('not implemented'); },
deleteSessionData: async () => { },
cleanupOrphanedData: async () => { },
} satisfies ISessionDataService,