Skip to content

feat: transcript files for print sessions + offset-based polling#12

Open
Skippy-the-Magnificent-one wants to merge 1 commit into
mainfrom
feat/print-transcript
Open

feat: transcript files for print sessions + offset-based polling#12
Skippy-the-Magnificent-one wants to merge 1 commit into
mainfrom
feat/print-transcript

Conversation

@Skippy-the-Magnificent-one
Copy link
Copy Markdown
Owner

Closes #3

Changes

  • Print sessions now tee output to .session/transcript-<date>-<id>.md
  • GET /sessions/:id/transcript works for both print and interactive modes
  • Response headers include polling metadata:
    • x-transcript-offset -- where this read started
    • x-transcript-total-size -- total transcript size
    • x-transcript-next-offset -- pass as ?since= on next poll

Polling Pattern

# First read (full transcript)
curl /sessions/abc/transcript
# x-transcript-next-offset: 4523

# Poll for new content only
curl /sessions/abc/transcript?since=4523
# x-transcript-next-offset: 6891

- Print sessions now write transcript to .session/transcript-<date>-<id>.md
- GET /sessions/:id/transcript works for both print and interactive sessions
- Response headers include offset metadata for efficient polling:
  x-transcript-offset, x-transcript-total-size, x-transcript-next-offset
- Consumer polls with ?since=<next-offset> to get only new content

Closes #3
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.

feat: Real-time .md session transcript with offset-based polling

1 participant