server: session freshness, tail-only status readers for local Claude Code and Codex transcripts

Open
#9,283 1 comment 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
35/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Active
Tech stack
javascript
Domain
backend

Research direction

Start with the transcript locator in packages/server/src/transcript-sources.js, including its path-containment checks, and the Claude JSONL reader in packages/server/src/jsonl-reader.js. The Codex format is currently marked unsupported in the locator, so that is where the new tail-only reader starts. Done means fixture transcripts for each format yield the last status block and its time, planted content outside that block never reaches the ledger, and bad input yields error. The issue depends on #9279, which is not yet resolved.

Written by the indexing model from the issue text.

Description

complexity: medium enhancement needs-dogfood server smoke-test: medium

Context

  • packages/server/src/transcript-sources.js (added in #8950 for #7828, part of #7818) already resolves provider transcripts for the closed-conversation endpoint: the Claude JSONL format is supported and the Codex format is marked unsupported. packages/server/src/jsonl-reader.js reads the Claude format. Related read-only transcript work: #8323 and #6765.
  • This issue adds readers that keep only the last authored status block of a session and discard everything else. Builds on #9279.

Scope

  • Reuse the existing locator and its path-containment checks.
  • Tail-only readers: find the last authored status block, keep it and its time, and discard the rest in memory. Add the tail-only reader for the Codex format, which the locator currently marks unsupported.
  • One recorded sample read per source confirms the format before any run against real transcripts.
  • A test with content planted outside the status block.

Acceptance Criteria

  • Fixture transcripts yield the correct last status block and its time, for each format.
  • Content planted outside the status block never reaches the ledger.
  • An unreadable or changed format yields error.
  • The readers open files read-only and never send input to a session.

Dependencies

  • #9279

Out of scope

  • Reading anything but the tail.
  • Any transcript viewer.
Dominant language
JavaScript
Stars
7
Forks
1
Avg merge
2h 3m
Merged PRs (30d)
333

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from blamechris/chroxy

All issues in blamechris/chroxy

Similar issues

More JavaScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.