fix(observe): allow sdk-ts entrypoint in observation hook (#614)

Clean surgical fix allowing sdk-ts entrypoint in observe hook for Agent SDK sessions. Has APPROVED review.
This commit is contained in:
Chris Yau
2026-03-20 11:49:15 +08:00
committed by GitHub
parent 4bdbf57d98
commit a9edf54d2f

View File

@@ -97,8 +97,11 @@ fi
# - automated sessions creating project-scoped homunculus metadata
# Layer 1: entrypoint. Only interactive terminal sessions should continue.
# sdk-ts: Agent SDK sessions can be human-interactive (e.g. via Happy).
# Non-interactive SDK automation is still filtered by Layers 2-5 below
# (ECC_HOOK_PROFILE=minimal, ECC_SKIP_OBSERVE=1, agent_id, path exclusions).
case "${CLAUDE_CODE_ENTRYPOINT:-cli}" in
cli) ;;
cli|sdk-ts) ;;
*) exit 0 ;;
esac