Skip to content

Convert legacy sessions to Markdown documents#5259

Open
ComputelessComputer wants to merge 1 commit into
refactor/session-file-storage-planfrom
refactor/session-legacy-markdown-converter
Open

Convert legacy sessions to Markdown documents#5259
ComputelessComputer wants to merge 1 commit into
refactor/session-file-storage-planfrom
refactor/session-legacy-markdown-converter

Conversation

@ComputelessComputer
Copy link
Copy Markdown
Collaborator

@ComputelessComputer ComputelessComputer commented May 19, 2026

Summary:

  • Add a compatibility converter from legacy session tables to the new session Markdown document shape.
  • Cover notes, summaries, transcripts, tags, participants, and malformed legacy content.

Note

Medium Risk
Adds a legacy-to-new session data conversion path that parses and normalizes notes/summaries/transcripts; errors or edge cases could lead to missing or misformatted user content during migration.

Overview
Introduces legacySessionToMarkdownDocument to convert legacy Tinybase session tables into the canonical SessionMarkdownDocument, including event metadata, folder/title, participants, tags, notes, summary, and transcript.

The converter normalizes legacy rich-text JSON into markdown (with safe fallbacks for malformed JSON), orders multi-part summaries/transcripts deterministically, and renders transcript words into speaker-prefixed lines. Adds Vitest coverage for a full conversion, missing sessions, and malformed legacy content handling.

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

Add a compatibility converter from legacy session tables into the canonical session Markdown document shape.
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