Skip to content

feat(core): add session-scoped prompt cache with lazy restore#886

Merged
GCWing merged 1 commit into
GCWing:mainfrom
wsp1911:main
May 26, 2026
Merged

feat(core): add session-scoped prompt cache with lazy restore#886
GCWing merged 1 commit into
GCWing:mainfrom
wsp1911:main

Conversation

@wsp1911
Copy link
Copy Markdown
Collaborator

@wsp1911 wsp1911 commented May 26, 2026

  • add session-level prompt cache models, runtime store, and prompt_cache.json persistence
  • use cache-first system prompt and user context resolution with lazy restore on first lookup
  • separate cache TTL from persistence TTL and keep persistence for cold-start recovery only
  • add explicit prompt cache invalidation hooks and clear cache after context compression
  • keep minimal system prompt identity checks and document user context as a start-of-conversation snapshot

- add session-level prompt cache models, runtime store, and prompt_cache.json persistence
- use cache-first system prompt and user context resolution with lazy restore on first lookup
- separate cache TTL from persistence TTL and keep persistence for cold-start recovery only
- add explicit prompt cache invalidation hooks and clear cache after context compression
- keep minimal system prompt identity checks and document user context as a start-of-conversation snapshot
@GCWing GCWing merged commit 6e02d28 into GCWing:main May 26, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants