BUG:Devr.AI Agent loses user_profile for returning users and fails to persist conversation summaries & cumulative interaction counts
Valutazione
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Idoneità per principianti
- 55/100
Direzione di ricerca
Read backend/app/agents/devrel/nodes/gather_context.py and backend/app/agents/devrel/nodes/summarization.py, then run tests/test_devrel_memory.py to understand the reported failures. Check how returning-user profiles enter AgentState, how summaries are stored, and how interaction totals are updated across summarization cycles. Done means the profile is retained and summaries and cumulative counts persist correctly.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Is there an existing issue for this?
- I have searched the existing issues
What happened?
Description
While investigating the LangGraph workflow for the DevRel Agent (backend/app/agents/devrel/), I identified three connected bugs in the cross-session memory and summarization pipeline that prevent long-term context persistence:
-
Returning Users Lose
user_profileingather_context_node(gather_context.py):- When a returning user's previous conversation context (
prev_context) is found in Supabase,gather_context_nodeperforms an early return containingconversation_summaryandkey_topics, but omits"user_profile": profile_data. - In contrast, the fallback path for new users explicitly attaches
result["user_profile"] = profile_data. As a result, returning users always have an emptyuser_profileinAgentState.
- When a returning user's previous conversation context (
-
Conversation Summaries Are Not Persisted During Active Workflow (
summarization.py):- When
interaction_countreachesSUMMARIZATION_THRESHOLD(15),summarize_conversation_nodegeneratesnew_summaryandnew_topicsvia the LLM, but never callsstore_summary_to_database(). - Because the agent uses
InMemorySaver(), summaries generated during active sessions are lost if the server restarts beforeclear_thread_memory()is externally invoked.
- When
-
total_interactionsCount Is Overwritten/Reset Instead of Accumulated (summarization.py):summarize_conversation_nodereturns"interaction_count": -current_countto reset the session interaction counter to0via theaddreducer.- When
store_summary_to_database()runs later, it writes"total_interactions": state.interaction_countdirectly toconversation_context, overwriting previous database totals with0(or only the remainder since the last reset) instead of accumulating total interactions across summarization cycles.
Proposed Fix
backend/app/agents/devrel/nodes/gather_context.py: Unify the return payload ingather_context_nodeso thatuser_profileis preserved inAgentStateeven whenprev_contextis loaded from Supabase.backend/app/agents/devrel/nodes/summarization.py:- Persist the updated summary and topics in
summarize_conversation_nodeviastore_summary_to_database()before resettinginteraction_count. - Accumulate
total_interactionsinstore_summary_to_database()by adding the current session'sinteraction_countto the existingtotal_interactionsstored in Supabase.
- Persist the updated summary and topics in
I have reproduced and successfully validated the fixes with local unit tests (tests/test_devrel_memory.py). I would love to be assigned to this issue and submit a PR!
Record
- I agree to follow this project's Code of Conduct
- I want to work on this issue
- Lingua principale
- Python
- Stelle
- 103
- Fork
- 143
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Ha un modello di pull request
- Nessuna guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di AOSSIE-Org/Devr.AI
-
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 95/100
AOSSIE-Org/Devr.AI#315 · 1 commento ·
-
Bump Weaviate image to 1.39.13 (Go 1.26.10 / CVE-2026-111943)Forse già presa @dudanogueira l’ha presa 38 giorni fa. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
AOSSIE-Org/Devr.AI#309 · 1 commento ·
-
DOCS UPDATE: Incorrect Flask command path in backend installation guideForse già presa @Ashwin-Pillai-22 l’ha presa 321 giorni fa. Aperta
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 68/100
AOSSIE-Org/Devr.AI#229 · 3 commenti ·
-
BUG: Local pytest suite fails to collect due to deprecated imports and mock schemasForse di nuovo libera Una pull request per questa issue è stata chiusa senza essere unita. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 25/100
AOSSIE-Org/Devr.AI#307 · 1 commento ·
-
Difficoltà 5/5 Più di una settimana Idoneità per principianti 25/100
AOSSIE-Org/Devr.AI#305 ·
Tutte le issue di AOSSIE-Org/Devr.AI
Issue simili
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
pimutils/vdirsyncer#1242 ·
-
priority:P2
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
QuantConnect/lean-cli#792 ·
I maintainer di solito rispondono entro 1 giorno
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
open-webui/open-webui#35360 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
-
Suggest link: Destiny Verify (MIT zero-dependency pre-commit security, citation & link hygiene CLI)Aperta
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 68/100