Skip to content

session-memory hook should support session:end events #31266

@sj-unit72

Description

@sj-unit72

The bundled session-memory hook only listens to command:new and command:reset events. It should also support session:end to auto-save conversation context when sessions timeout or end naturally.

Currently:

  • Hook only saves on /new or /reset commands (when starting NEW session)
  • Sessions that end via timeout are not saved
  • Memory doesn't persist between conversations

Expected:

  • Hook should save session context when session ends (session:end event)
  • This would fix memory persistence for all agents automatically

Reference: Hook events listed in docs include session:start and session:end

Metadata

Metadata

Assignees

No one assigned

    Labels

    staleMarked as stale due to inactivity

    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