Skip to content

/new creates persisted session inside --no-session process #5045

@flavio-portela

Description

@flavio-portela

What happened?

Starting pi --no-session creates an ephemeral session as expected. But typing /new from inside that session silently creates a persisted session — a .jsonl file appears in ~/.pi/agent/sessions/.

Steps to reproduce

  1. Run pi --no-session
  2. Type /new
  3. Check ~/.pi/agent/sessions/ — a new session file was created

Expected behavior

/new should either inherit the ephemeral mode of the current session, or at least warn that it's creating
a persisted session.

Version

0.75.5

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions