UserPromptSubmit hooks enable cross-session continuity — this should be native
Resolved 💬 1 comment Opened Apr 23, 2026 by adleruva-hub Closed May 27, 2026
I spent four months losing context every time a Claude Code session ended or crashed. Today my SSH session dropped mid-work. I reconnected, typed session start, and got:
"Last session: schema compression — recommendation still pending."
That's it. That's what I'd been missing.
I built it myself using UserPromptSubmit hooks + structured session summaries + TF-IDF retrieval over past .tok files. ~400 lines total. It works because the primitives are already there.
What would make this native and zero-effort:
- Write a session summary on conversation end (last 3 topics + unfinished items)
- Retrieve relevant past summaries on session start
- Inject as system context before the first prompt
Every power user is either suffering this or reinventing the wheel. The hook system proves it's possible. Close the loop.
Full implementation available on request.
This issue has 1 comment on GitHub. Read the full discussion on GitHub ↗