Skip to content

No way to clear / reset a session without restarting the server #812

Description

@paddymul

Summary

Once a session has been populated via /load or /load_expr, there's no way to wipe it back to the empty state short of restarting the server process. The session's df / ldf / pl_df / dataflow / xorq_dataflow / cached state persists for the session's TTL, and any subsequent /load against the same session ID merges into the existing state rather than starting clean.

Scope

Server only.

Impact

  • Debugging session-state bugs requires killing and restarting the server.
  • Switching engines (pandas → xorq → polars) on the same session ID leaves stale state from the previous backend hanging around (e.g. session.dataflow from pandas + session.xorq_dataflow from xorq both present, with WS dispatch depending on session.backend to disambiguate).
  • For an interactive demo / playground, the ability to "start over" is table stakes UX.

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