You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
readSessionFile's 4th argument is typed as the upstream "previous row", but the Claude adapter forwards read-session-file.js's opts (parentSessionId, dedupe options).
Claude sessionIdFromPath returns the file name (agent-child) for subagent transcripts, while their cached id is sub:parent:child. Upstream's session-cache.js loop keys cachedMap/currentIds on this value: ported as is, it would re-read every subagent on every pass and delete the cached subagent rows.
Fix: type the 4th argument as adapter-specific options, and make sessionIdFromPath return subagentSessionId(parent, agentId) for subagent and legacy paths, with test/harness-contract.test.js asserting sub:parent:child.
Activity