Files
cline-multi-mirror/sdk/examples/hooks/SessionShutdown.sh
T
HybridTalentComputing 8d519391b1 Sync with upstream v3.83.0
Replace all files with clean upstream Cline v3.83.0 content.
ShengSuanYun provider code automatically removed.
2026-05-15 13:02:01 +08:00

15 lines
428 B
Bash
Executable File

#!/usr/bin/env bash
# Cline Hook: SessionShutdown
# Logs when a session shuts down (normally or due to error)
# Copy to ~/.cline/hooks/SessionShutdown.sh and chmod +x
input=$(cat)
timestamp=$(echo "$input" | jq -r '.timestamp // "unknown"')
reason=$(echo "$input" | jq -r '.reason // "unknown"')
echo "🔌 Session shutdown at $timestamp" >&2
echo " Reason: $reason" >&2
# Lifecycle events are informational only
echo '{}'