Skip to content

feat(sessions): resume Claude Code (claude -p stream-json) sessions inside tole #381

Closed

Description

@ajianaz

Goal

Adopted from jcode's cross-harness session resume (tier B): tole can resume a Claude Code session, making tole the one-stop harness/UI + memory layer while the CC CLI stays the executor. Matches our fleet reality (CC CLI as executor).

Acceptance criteria

  • Parse claude -p stream-json transcript (JSONL) into tole session storage.
  • Resume paths: attach to a running claude process OR resume a finished session; guard against double-attach of the same process.
  • Tool calls/results and metadata (model, version, timestamps) are mapped to tole's history model.
  • Import is additive: existing tole sessions untouched, no migration required.
  • Docs + CHANGELOG entry.

Testing

  • Unit: JSONL parsing; malformed-line tolerance (skip + warn, never crash).
  • Integration: fixture transcripts (real CC sessions) import with correct message/tool mapping.
  • Live E2E: import a real CC session, resume it in tole, continue the turn against a real provider.

Reference

jcode (MIT, https://github.com/1jehuang/jcode) — design adopted; implementation is our own.

Activity

  1. added
    enhancement
    tools
    on Oct 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementtools

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions