Skip to content

refactor(core): extract transcript projection - #36811

Closed
HOYALIM wants to merge 1 commit into
anomalyco:v2from
HOYALIM:transcript-projection
Closed

HOYALIM wants to merge 1 commit into
anomalyco:v2from
HOYALIM:transcript-projection

Conversation

@HOYALIM

@HOYALIM HOYALIM commented Jul 14, 2026

Copy link
Copy Markdown

Issue for this PR

Closes #36809
Related to #36473

Type of change

  • Bug fix
  • New feature
  • Refactor / code improvement
  • Documentation

What does this PR do?

Extracts the database-backed transcript persistence adapter from the V2 session projector into session/projection/transcript.ts, the first reviewable slice requested in #36473.

The change is mechanical: SQL queries, durable transaction ownership, projector registration order, and message update behavior remain unchanged. projector.ts now delegates transcript events and promoted-message insertion to the focused module.

How did you verify your code works?

  • bun test test/session-projector.test.ts --timeout 30000 (13 passed)
  • bun test --timeout 30000 --only-failures from packages/core (1,277 passed, 6 skipped, 0 failed)
  • bun typecheck from packages/core
  • bun lint packages/core/src/session/projection/transcript.ts (0 warnings, 0 errors)
  • bunx prettier --check packages/core/src/session/projector.ts packages/core/src/session/projection/transcript.ts
  • Repository pre-push bun turbo typecheck --concurrency=3 (32 successful)
  • git diff --check
  • Synthetic merge with current origin/v2

Screenshots / recordings

N/A; internal refactor with no UI change.

Checklist

  • I have tested my changes locally
  • I have not included unrelated changes in this PR

Copilot AI review requested due to automatic review settings July 14, 2026 04:06

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@github-actions

Copy link
Copy Markdown
Contributor

Automated PR Cleanup

Thank you for contributing to opencode.

Due to the high volume of PRs from users and AI agents, we periodically close older PRs using automated criteria so maintainers can focus review time on the most active and community-supported contributions.

This PR was closed because it matched the following cleanup criteria:

  • The PR was created more than 1 month ago
  • The PR had fewer than 2 positive reactions
  • Positive reactions are counted as thumbs-up, heart, celebration, or rocket reactions on the PR

PRs created within the last month are not affected by this cleanup.

If you believe this PR was closed incorrectly, or if you are still actively working on it, please leave a comment explaining why it should be reopened. A maintainer can review and reopen it if appropriate.

Thanks again for taking the time to contribute.

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants