Skip to content

ENOENT error when running /pi-vcc-recall in a brand new session #1

@johnkabir0099

Description

@johnkabir0099

Describe the bug
When running /pi-vcc-recall in a new session that has no prior conversation, the following error occurs:

The session JSONL file does not exist yet because Pi hasn't written any messages to disk in the new session.

To Reproduce

  1. Install pi-vcc: pi install npm:@sting8k/pi-vcc
  2. Start a brand new Pi session: pi
  3. Immediately run /pi-vcc-recall <query> before any conversation
  4. Error appears

Expected behavior
/pi-vcc-recall should either:

  • Search previous session JSONL files instead of only the current one, OR
  • Show a friendly message like "No session history yet" instead of throwing ENOENT

Environment

  • pi-vcc version: latest (npm:@sting8k/pi-vcc)
  • Pi version: v0.70.2
  • Running inside Docker container (root)
  • Session folder: /root/.pi/agent/sessions/--workspace--/

Additional context
The JSONL files from previous sessions DO exist and are confirmed via find /root/.pi -name "*.jsonl". The issue is that recall only looks at the current session file which hasn't been written yet in a fresh session.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions