feat(session): render native session_records (transcript + lifecycle)#48
Merged
Conversation
Add a maintainers section to the ellipsis skill covering how the CLI is released: Homebrew-tap-only distribution (never npm), the tag-triggered release.yml automation, and the manual bump/commit/tag steps. Records that package.json is the version source of truth and the tag must match.
The backend /v1/sessions/{id}/steps now returns native session_records instead
of the legacy AgentStep shape (harness-general session model, phase 2). Move the
CLI onto records:
- types: AgentStep -> SessionRecord (source/record_type/record_format/payload +
feed_seq/stream_seq); ListSessionStepsResponse.steps -> records. Add
RecordSource/LifecycleRecordType.
- steps.ts: stepText -> recordText (reads payload); lifecycleText() maps a
lifecycle record_type to a human line; formatStepLine uses stream_seq +
record_type and renders lifecycle records.
- events.ts: recordToItems() switches on source — claude_code -> eventToItems on
the payload; lifecycle -> a dim notice line. eventToItems unchanged.
- connect + ConnectApp: the committed-transcript cursor is now feed_seq (the
shared transcript+lifecycle order), not the per-execution step index — a
lifecycle record's stream_seq is negative, so a step-index cursor would drop
it. Renders each record via recordToItems.
So `agent session connect` / `session steps` now show spawn/respawn/idle
lifecycle events inline. typecheck + 225 tests + build green.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Moves the CLI onto native
session_records— the backend/v1/sessions/{id}/stepsnow returns records (transcript + lifecycle), not the legacy AgentStep shape (Ellipsis harness-general session model, phase 2).So
agent session connect/session stepsshow spawn/respawn/idle lifecycle events inline. typecheck + 225 tests + build green.Coordinated with the backend /v1 cutover; release right after that deploys.