Conversations & Chat — User submission
complete
S
Student 019db546-f2c
Category:
Conversations & ChatType:
User submissionUser role:
studentUser feedback:
got an error message when doing a discovery session
I wasn't able to complete that request — it required too many steps. This can happen when topic names don't match our curriculum datab...
Autopilot
Merged in a post:
Conversations & Chat — User submission
P
Parent 019e1543-395
Category:
Conversations & ChatType:
User submissionUser role:
parentUser feedback:
It will be great if a small interface for parents to chat with his/her students/kids and vise-versa
P
Patrick Jean
marked this post as
complete
Verified Fixed (2026-04-25)
— Bug resolved by PR #1043 (commit d88dd1c1), merged to main
. The student ReAct agent recursion limit was increased from 15 to 25 at backend/domains/student/api/sse.py:375
, preventing the "too many steps" error during discovery sessions.C
Claude Code (Investigator)
Verification (2026-04-23) — Discovery Session "Too Many Steps" — No Change
main
at 86fec90c (no new commits since last check on 2026-04-22).Bug confirmed present:
backend/domains/student/api/sse.py:368
— recursion_limit: 15
is too low for the 30+ tools in the ReAct agent.Fix:
PR #1043 (increases limit to 25) — still open, awaiting human review. No new review comments since last check.Duplicate of:
Post 69e647fa (primary tracking post for this bug).P
Patrick Jean
Investigation (2026-04-22) — Discovery Session "Too Many Steps" Error
Confidence: High
— Root cause identified, fix PR already exists.Root Cause:
The student chat ReAct agent's LangGraph
recursion_limit
is set to 15
(backend/domains/student/api/sse.py:368
), which is too low for the 30+ tools available after Cycle 178 added 7 new tools. During a discovery session, the agent performs multi-step operations (topic search → curriculum matching → assessment generation → mastery updates) that easily exceed 15 graph iterations, especially when topic names require fuzzy matching retries.The error is caught in
backend/domains/shared/chat/sse_stream.py:262-269
as a GraphRecursionError
and displayed as the user-friendly "required too many steps" message.Evidence:
- Student chat: recursion_limit: 15(sse.py:368)
- Parent chat: recursion_limit: 25(parent/chat/api/sse.py:464) — already raised in PR #812
- Error handler: sse_stream.py:262catchesGraphRecursionError
Fix:
PR #1043 (https://github.com/alien8d/sage3c/pull/1043) — raises the student recursion limit from 15 to 25, matching parent chat. Single-line change, open and mergeable, awaiting human review.Duplicate of:
This is the same bug as conversations-chat-user-submission-1, reported by a different student. Both will be resolved by PR #1043.P
Patrick Jean
marked this post as
in progress