Skip to content

Closing after opening an existing session will result in events.jsonl file being modified #771

@DonJayamanne

Description

@DonJayamanne

If no changes are made to the session (nothing emitted), then I would expect nothing to change in the session.
I.e. it should be possible to open and close a session without making changes to the session, when user didn't invoke any methods that could cause the session to mutate (e.g. sending prompts etc)

The closeSession method wil always emit a session.shutodnw even which is written into the file.
This results in multiple session.shutdown being written when a session is opened just to look at some events.

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