Skip to content

fix(session): keep concurrent transcripts on the shared log - #1413

Merged
TheGreatAxios merged 4 commits into
mainfrom
cl-10585-keep-concurrent-and-compacted-transcripts-on-the-shared
Oct 13, 2026
Merged

TheGreatAxios merged 4 commits into
mainfrom
cl-10585-keep-concurrent-and-compacted-transcripts-on-the-shared

Conversation

@TheGreatAxios

Copy link
Copy Markdown
Collaborator

Summary

  • A divergent session no longer replaces turns.jsonl. The owner claim is an exclusive create, a foreign transcript and its prompt divert to a versioned file, and a failed commit leaves load() on HEAD.
  • A real pruning compaction stays on the shared log, including an excerpted tool tail and a tail that coalesces several user turns into one. A summary alone, or a summary plus an unmodified suffix, still diverts.

Verification

  • bun test src/session/optimized-context-store.test.ts — 58 pass, 0 fail
  • Pre-commit typecheck and build passed on these commits

Fixes CL-10585

@linear-code

linear-code Bot commented Oct 13, 2026

Copy link
Copy Markdown

CL-10585

@corbits-triage

Copy link
Copy Markdown
Contributor

No changes needed from you. A maintainer will review this pull request.

@TheGreatAxios
TheGreatAxios merged commit dadc8be into main Oct 13, 2026
13 checks passed
@TheGreatAxios
TheGreatAxios deleted the cl-10585-keep-concurrent-and-compacted-transcripts-on-the-shared branch October 13, 2026 01:07
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.

1 participant