Conversation
Closes #473. The session-group index that maps stable channel keys (e.g. `channel-telegram-12345`) to the active conversation UUID was always written to `~/.infer/session_groups.json` on local disk, even when a remote storage backend like Redis was configured. In Kubernetes deployments the file is ephemeral, so pod restarts lost group state and defeated the purpose of selecting a remote backend. Add a `SessionGroupStorage` interface implemented by every backend (memory/jsonl/sqlite/postgres/redis) and refactor `SessionRolloverManager` to consume it instead of doing direct filesystem I/O. The container now type-asserts the conversation backend into `SessionGroupStorage` and passes it through; JSONL keeps a file at the same path for backward compatibility, the SQL backends get a new migration `002` for a `session_groups` table, and Redis stores entries in a `session_groups` hash.
ig-semantic-release-bot Bot
pushed a commit
that referenced
this pull request
Apr 30, 2026
## [0.106.2](v0.106.1...v0.106.2) (2026-04-30) ### 🐛 Bug Fixes * **storage:** Persist session groups via configured storage backend ([#476](#476)) ([6741419](6741419)) * Reasoning content preservation for thinking-mode providers ([#475](#475)) ([c5f2c3c](c5f2c3c)), closes [#474](#474) ### 🧹 Maintenance * **nix:** Update package to v0.106.1 ([#469](#469)) ([51da75c](51da75c))
Contributor
|
🎉 This PR is included in version 0.106.2 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #473.
Summary
~/.infer/session_groups.jsonon local disk, even whenstorage.type: redis(or postgres/sqlite). In Kubernetes deployments the file is ephemeral so pod restarts dropped state, defeating the point of choosing a remote backend.SessionGroupStorageinterface implemented by every backend; refactorSessionRolloverManagerto consume it instead of doing direct filesystem I/O.<configDir>/session_groups.json) for backward compatibility; SQLite/Postgres get migration002(asession_groupstable with UPSERT); Redis stores entries in asession_groupshash.