From c36730320ca6297410d381b227ad93802e3b2728 Mon Sep 17 00:00:00 2001 From: Jon Saad-Falcon <41205309+jonsaadfalcon@users.noreply.github.com> Date: Mon, 16 Mar 2026 16:57:55 -0700 Subject: [PATCH] chore: remove contributor-specific gitignore entry and log memory injection errors - Remove openjarvis-bugfix-spec-v2.md from .gitignore (not a general pattern) - Replace bare `except: pass` with debug logging in routes.py memory injection Co-Authored-By: Claude Opus 4.6 (1M context) --- .gitignore | 1 - src/openjarvis/server/routes.py | 5 ++++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index 8843988e..9eaf23ab 100644 --- a/.gitignore +++ b/.gitignore @@ -89,4 +89,3 @@ CLAUDE.md # Research output research_mining_* .python-version -openjarvis-bugfix-spec-v2.md diff --git a/src/openjarvis/server/routes.py b/src/openjarvis/server/routes.py index b59ec919..c6625cb4 100644 --- a/src/openjarvis/server/routes.py +++ b/src/openjarvis/server/routes.py @@ -2,6 +2,7 @@ from __future__ import annotations +import logging import uuid from typing import Any @@ -89,7 +90,9 @@ async def chat_completions(request_body: ChatCompletionRequest, request: Request )) request_body.messages = new_msgs except Exception: - pass # Don't break chat if memory retrieval fails + logging.getLogger("openjarvis.server").debug( + "Memory context injection failed", exc_info=True, + ) if request_body.stream: bus = getattr(request.app.state, "bus", None)