Skip to content

Convert legacy sessions to Markdown documents#5259

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

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

@ComputelessComputer ComputelessComputer commented May 19, 2026

Copy link
Copy Markdown
Collaborator

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.
@ComputelessComputer

Copy link
Copy Markdown
Collaborator Author

Closing in favor of tracking the storage-model decision in Linear issue ANLG-53. The migration/converter work should follow the updated target model: one Markdown session document for memo, transcript, and summary, plus separate attachment storage for audio/images.

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