mirror of
https://github.com/akitaonrails/ai-memory.git
synced 2026-10-02 03:24:46 +08:00
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.
7 lines
312 B
PowerShell
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
|