Skip to content

Define session file migration target#5258

Open
ComputelessComputer wants to merge 1 commit into
mainfrom
refactor/session-file-storage-plan
Open

Define session file migration target#5258
ComputelessComputer wants to merge 1 commit into
mainfrom
refactor/session-file-storage-plan

Conversation

@ComputelessComputer
Copy link
Copy Markdown
Collaborator

@ComputelessComputer ComputelessComputer commented May 19, 2026

Summary:

  • Add the durable session Markdown and SQLite migration plan.
  • Add the canonical session Markdown parse/render contract with tests.

Note

Low Risk
Adds a new session Markdown parsing/rendering utility and documentation, but it is not yet wired into runtime session I/O, so impact is limited to new codepaths and test coverage.

Overview
Introduces a canonical, versioned session.md file format for sessions, including frontmatter for stable identity/metadata and # Notes/# Summary/# Transcript sections, plus parseSessionMarkdown/renderSessionMarkdown helpers.

Adds Vitest coverage for round-tripping, loose/hand-authored compatibility (unsectioned bodies treated as notes), nested heading handling, and required metadata errors. Also adds docs/data-migration-plan.md describing the target storage boundaries and a phased migration approach from legacy session folders/TinyBase to Markdown + SQLite.

Reviewed by Cursor Bugbot for commit a0c99b2. Bugbot is set up for automated code reviews on this repo. Configure here.

Add the session Markdown and SQLite migration plan plus a tested session Markdown parse/render contract for the first migration slice.
@netlify
Copy link
Copy Markdown

netlify Bot commented May 19, 2026

Deploy Preview for old-char canceled.

Name Link
🔨 Latest commit a0c99b2
🔍 Latest deploy log https://app.netlify.com/projects/old-char/deploys/6a0bfdce68e78d0008830a35

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant