Files
Lucas Oliveira e2f5af92da hooks: deliver kimi-code handoff via UserPromptSubmit
Kimi Code fires SessionStart but discards the hook's stdout/result
(kimi-code v0.28.1, packages/agent-core/src/session/index.ts), so the
session-start hook consumed pending handoffs into the void. Move the
/handoff fetch to user-prompt-submit (stdout is injected as a user
message before the turn), with the native sessionId forwarded as
session_id and managed_run already appended by ai_memory_marker_qs.
2026-07-22 21:03:44 -03:00

7 lines
312 B
PowerShell

# Kimi Code discards SessionStart hook stdout (v0.28.1,
# packages/agent-core/src/session/index.ts), so the handoff is fetched
# by user-prompt-submit.ps1 instead. This hook only captures the event.
. "$PSScriptRoot\..\lib\ai-memory-hook.ps1"
Invoke-AiMemoryHook -Event "session-start" -Agent "kimi-code"
exit 0