II.
HookSurface JSON
Structured · livehook-surface:session-end
SessionEnd (canonical) json
Inspect the normalized record payload exactly as the atlas UI reads it.
{
"id": "hook-surface:session-end",
"_kind": "HookSurface",
"_file": "channels-hooks/hook-surfaces/canonical/session-end.yaml",
"_cluster": "channels-hooks",
"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.\n"
},
"outgoingEdges": [],
"incomingEdges": [
{
"from": "agent-core-impl:a5c.core@current",
"to": "hook-surface:session-end",
"kind": "fires_hook",
"attributes": {}
},
{
"from": "agent-runtime-impl:claude-code.runtime@1.x",
"to": "hook-surface:session-end",
"kind": "exposes",
"attributes": {}
},
{
"from": "hook-mapping:session-end-github-copilot",
"to": "hook-surface:session-end",
"kind": "maps_hook",
"attributes": {}
},
{
"from": "hook-mapping:session-end-claude-code",
"to": "hook-surface:session-end",
"kind": "maps_hook",
"attributes": {}
},
{
"from": "hook-mapping:session-end-codex",
"to": "hook-surface:session-end",
"kind": "maps_hook",
"attributes": {}
},
{
"from": "hook-mapping:session-end-gemini",
"to": "hook-surface:session-end",
"kind": "maps_hook",
"attributes": {}
},
{
"from": "hook-mapping:session-end-cursor",
"to": "hook-surface:session-end",
"kind": "maps_hook",
"attributes": {}
},
{
"from": "hook-mapping:session-end-oh-my-pi",
"to": "hook-surface:session-end",
"kind": "maps_hook",
"attributes": {}
},
{
"from": "hook-mapping:plugin-session-end-openclaw",
"to": "hook-surface:session-end",
"kind": "maps_hook",
"attributes": {}
},
{
"from": "hook-mapping:gateway-request-completed-openclaw",
"to": "hook-surface:session-end",
"kind": "maps_hook",
"attributes": {}
}
]
}