v13.39.0

thedotmack/claude-memv13.39.0Oct 13, 2026by thedotmack

Upgrading?

AI Summary

This release fixes a bug where the memory timeline was lost in Codex subagent threads following thread compaction. It introduces new hooks and session marker handling to ensure timelines are restored correctly without duplication.

Key Highlights

  • Fixes memory timeline loss in subagent threads after compaction
  • New PostCompact hook marks compacted threads keyed by session_id and agent_id
  • PostToolUse records observations and restores timeline via additionalContext
  • SessionStart clears markers to prevent timeline duplication in root threads
  • Shared session-marker file handling updated for Codex and Kimi context gates

New Features

  • PostCompact hook for marking compacted threads
  • PostToolUse logic to consume markers and return timeline
  • Session marker clearing logic in SessionStart
  • Unified shared session-marker file handling

Full Release Notes

## Codex: memory timeline returns to subagent threads after compaction

When Codex compacts a thread, the memory timeline drops out of its history. The root thread already got it back through `SessionStart` (source `compact`). Codex never sends `SessionStart` to subagent threads, though, so a subagent that compacted kept working without its memory.

- A new **PostCompact** hook marks the compacted thread, keyed by `session_id` plus `agent_id`.
- That thread's next **PostToolUse** records the observation as usual, consumes the marker, and returns the timeline once as `additionalContext`.
- **SessionStart** clears the marker, so the root thread never gets the timeline twice.
- Shared session-marker file handling now backs both the Codex compaction gate and the Kimi context gate.

PR: #4733

Related Repositories