feat(storage): make SQLite the default session metadata store - #1372
Merged
likun666661 merged 2 commits intoJul 23, 2026
Merged
Conversation
This was referenced Jul 23, 2026
likun666661
force-pushed
the
agent/sqlite-session-metadata-default
branch
from
July 23, 2026 06:40
5a48723 to
93fd480
Compare
likun666661
marked this pull request as ready for review
July 23, 2026 06:45
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Part 2 of #1370.
Depends on #1371. Please review/merge that foundation PR first; this is a stacked draft PR and will temporarily show the Part 1 commits until its dependency lands.
What changes
createSessionStore()use SQLite as the canonical store for allSessionHeadermetadata.sessions.sqlitedatabase on startup.sessions.sqliterather thanruntime.sqlite, so this cutover does not implicitly change the existing opt-in RuntimeEvent rollout.Compatibility boundary
Fresh sessions still receive a frozen legacy header as the JSONL first record. SQLite is authoritative immediately; Part 3 will replace that record with an explicit transcript marker and add export/downgrade/backup coverage.
Validation
npm test --workspace @maka/storage: 435 passed, 1 skippednpm run build:test: passed across all workspaces and desktop bundlesnpx biome linton all 11 changed files: passedgit diff --check: passednpm run test:dist: storage and other workspaces passed;@maka/runtimehas 2 unrelated macOS sandbox/toolchain failures (hard-coded/usr/localexecutable-root expectation and Homebrewrgblocked from loading PCRE2). Runtime result: 2377 passed, 7 skipped, 2 failed.Closes the default-cutover portion of #1370.