fleet-memory/hindsight-integrations
Nicolò Boschi 2d31b67d0c
feat(claude-code): full-session retain with document upsert and configurable tags (#695)
* feat(claude-code): full-session retain mode with document upsert and configurable tags

Switch default retain behavior from per-turn chunks to full-session upsert.
Each session is now retained as a single document (document_id = session_id)
that gets updated on every Stop event, instead of creating fragmented
documents with timestamp-suffixed IDs.

New config options:
- retainMode: "full-session" (default) or "chunked" (legacy)
- retainTags: list with template variable support ({session_id}, {bank_id}, {timestamp})
- retainMetadata: extra metadata dict merged with built-in fields, supports templates

* fix(claude-code): respect retainEveryNTurns in full-session mode

The turn-count gating was only applied in chunked mode, meaning
full-session mode would re-ingest the entire transcript on every
single Stop event. Now retainEveryNTurns gates both modes.

Also fix test isolation: resolve ~/.hindsight/claude-code.json at
call time (not module load) so HOME override in tests works correctly.

* fix(claude-code): fix config tests after USER_CONFIG_PATH removal

Update tests to use HOME env var override instead of monkeypatching
the removed USER_CONFIG_PATH constant. Add autouse fixture to
TestLoadConfig to isolate all config tests from real user config
and HINDSIGHT_* env vars.
2026-03-26 12:06:30 +01:00
..
agno fix: add readme field to integration pyproject.toml files for PyPI (#634) 2026-03-20 17:11:20 +01:00
ai-sdk Release v0.4.19 2026-03-18 14:29:15 +01:00
chat Release v0.4.19 2026-03-18 14:29:15 +01:00
claude-code feat(claude-code): full-session retain with document upsert and configurable tags (#695) 2026-03-26 12:06:30 +01:00
crewai fix(security): address all Dependabot vulnerability alerts (#617) 2026-03-19 14:27:52 +01:00
hermes feat(hermes): file-based config + updated docs (#686) 2026-03-25 16:11:38 +01:00
langgraph fix: add readme field to integration pyproject.toml files for PyPI (#634) 2026-03-20 17:11:20 +01:00
litellm security: exclude litellm 1.82.8 (supply chain compromise) (#673) 2026-03-25 10:21:02 +01:00
nemoclaw release(nemoclaw): v0.1.1 2026-03-20 15:21:26 +01:00
openclaw feat: remove hardcoded default models from integrations (#670) 2026-03-24 17:20:15 +01:00
pydantic-ai fix: add readme field to integration pyproject.toml files for PyPI (#634) 2026-03-20 17:11:20 +01:00
strands release(strands): v0.1.1 2026-03-24 17:42:52 +01:00