fix: save_to_db uses short-lived SQLAlchemy session to prevent Broken pipe
Also writes intent_session field to DB. The with db_factory() as db pattern ensures pool_pre_ping fires on every write, preventing stale connections. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
Showing
1 changed file
with
16 additions
and
9 deletions
-
Please register or sign in to post a comment