Skip to content

Add resume handoff guidance to session history export #43

Closed

Description

@johnnyhuy

Parent #4

Exported session markdown is portable context, but a reader opening it in a new folder has no in-file guidance: continuing in the original folder uses Pidex session history resume, while a new folder needs a fresh session that takes the export as context. Without that distinction, users can create an accidental new empty session or assume the markdown restores a native Pi archive.

Slice:

  • Add a Continue elsewhere handoff section to sessionExportMarkdown output when the export has entries. It names the original working folder, distinguishes same-folder resume via Sessions history from new-folder continuation with the exported file as context, and states plainly the markdown is not a restorable Pi session archive.
  • Keep empty exports free of the handoff section.
  • Cover with unit tests in tests/unit/export-session.test.ts.

Acceptance: exported markdown for a non-empty session contains the handoff; empty exports do not; existing export content (title, context, tool input/output/status) is unchanged apart from the added section.

Activity

  1. johnnyhuy commented on Nov 9, 2026

    @johnnyhuy
    ContributorAuthor

    agent claim: agent/issue-43-export-resume-handoff @ 3384421

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions