II.
HookSurface overview
Reference · livehook-surface:session-end
SessionEnd (canonical) overview
Fires when a session is closed.
Attributes
eventName
SessionEnd (canonical)
displayName
SessionEnd (canonical)
kind
canonical
direction
event
blocking
false
family
in-process
payloadSchema
type
object
required
- session_id
- transcript_path
properties
session_id
type
string
transcript_path
type
string
cwd
type
string
model
type
string
source
type
string
enum
- startup
- resume
- clear
endedAt
type
string
format
date-time
description
Fires when a session is closed.
Outgoing edges
None.
Incoming edges
exposes1
- agent-runtime-impl:claude-code.runtime@1.x·AgentRuntimeImplClaude Code Runtime (1.x)
fires_hook1
- agent-core-impl:a5c.core@current·AgentCoreImpla5c Unified Core (current) — unified agent loop
maps_hook9
- hook-mapping:session-end-antigravity·HookMapping
- hook-mapping:session-end-github-copilot·HookMapping
- hook-mapping:session-end-claude-code·HookMapping
- hook-mapping:session-end-codex·HookMapping
- hook-mapping:session-end-gemini·HookMapping
- hook-mapping:session-end-cursor·HookMapping
- hook-mapping:session-end-oh-my-pi·HookMapping
- hook-mapping:plugin-session-end-openclaw·HookMapping
- hook-mapping:gateway-request-completed-openclaw·HookMapping