Revert "Attempt to fix the Claude Code session start hook" (#17506)

This reverts #17505 — I think there's another Claude Code bug that's
causing the session start hook to be skipped.
This commit is contained in:
Zanie Blue
2026-01-16 07:11:44 -06:00
committed by GitHub
parent b6332f6c62
commit 29aaaa4efd
2 changed files with 1 additions and 10 deletions
-9
View File
@@ -1,15 +1,6 @@
#!/bin/bash
set -euo pipefail
# Read hook input from stdin (JSON with session info)
INPUT=$(cat)
SOURCE=$(echo "$INPUT" | jq -r '.source // "startup"')
# Skip on resume - tools are already installed from the initial session
if [ "$SOURCE" = "resume" ]; then
exit 0
fi
# Dispatch to web hook if running remotely
if [ "${CLAUDE_CODE_REMOTE:-}" = "true" ]; then
exec "$(dirname "$0")/session-start-web.sh"
+1 -1
View File
@@ -2,7 +2,7 @@
"hooks": {
"SessionStart": [
{
"matcher": "",
"matcher": "startup",
"hooks": [
{
"type": "command",