fix(session-memory): use displaySessionKey instead of event.sessionKey in entry

The resolveDisplaySessionKey function correctly resolved workspace-based
agent IDs (e.g. agent:main:main → agent:navi:main when workspaceDir
matches the navi agent), but the entry template used event.sessionKey
directly, bypassing the resolution.
This commit is contained in:
zeroaltitude 2026-03-08 16:58:34 -07:00
parent 5a135d855c
commit 40a6a3ce76
No known key found for this signature in database
GPG Key ID: 77592FB1C703882E

View File

@ -366,7 +366,7 @@ const saveSessionToMemory: HookHandler = async (event) => {
const entryParts = [
`# Session: ${dateStr} ${timeStr} UTC`,
"",
`- **Session Key**: ${event.sessionKey}`,
`- **Session Key**: ${displaySessionKey}`,
`- **Session ID**: ${sessionId}`,
`- **Source**: ${source}`,
"",