feat: context re-injection with periodic and keyword triggers#3
feat: context re-injection with periodic and keyword triggers#3
Conversation
|
Warning Rate limit exceeded
⌛ How to resolve this issue?After the wait time has elapsed, a review can be triggered using the We recommend that you space out your commits to avoid hitting the rate limit. 🚦 How do rate limits work?CodeRabbit enforces hourly rate limits for each developer per organization. Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout. Please see our FAQ for further information. ℹ️ Review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (2)
✨ Finishing Touches🧪 Generate unit tests (beta)
📝 Coding Plan
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Previously, supermemory context was only injected on the first message
of a session. This meant topic changes mid-session lost relevant
memory context.
Changes:
- Add reinjectEveryN config (default 0 = first only)
Set to e.g. 10 to re-inject context every 10 messages
- Add recall keyword patterns (English + Japanese)
'recall', '思い出して', 'メモリ確認' etc. trigger immediate
context re-injection on that message
- Clean up session state on session.deleted
- Track per-session message counts instead of boolean set
Config example (supermemory.jsonc):
{ "reinjectEveryN": 10 }
07e3d24 to
3c7ee45
Compare
Problem
Previously, supermemory context was only injected on the first message of a session. Topic changes mid-session lost relevant memory context.
Changes
Periodic re-injection
New config option
reinjectEveryN(default: 0 = first only). Set to e.g. 10 to re-inject context every 10 messages.Recall keyword triggers
New keyword patterns that trigger immediate context re-injection:
English: recall, what do you remember, check memory, search memory
Japanese: 思い出して, 記憶を検索, メモリ確認, 何か覚えてる
Configurable via
recallKeywordPatternsinsupermemory.jsonc.Implementation
injectedSessionsSet with per-session message countersession.deletedConfig example
Dependencies