zeroaltitude 65fae19fc8
feat(hooks): add blockSessionSave and sessionSaveContent to session memory handler
Two new context fields for upstream hooks (e.g. security plugins) to
control session memory persistence:

- blockSessionSave (boolean): prevent session from being saved to memory
- sessionSaveContent (string): override saved content with custom text
  (empty string is valid — persists a blank marker without transcript)

When sessionSaveContent is set, LLM slug generation and session content
loading are skipped (unnecessary when content is overridden).

Split from #35567 — sessionSaveRedirectPath follows separately as it
requires path canonicalization, symlink resolution, and filesystem
write policy review.
2026-03-18 14:50:03 -07:00
..
2026-01-30 03:16:21 +01:00
2026-01-30 03:16:21 +01:00