LearningCircuit
LearningCircuit
## Problem The background metrics write chain swallows every exception, so when metric writes fail there is **no user-visible signal** — the dashboards just render empty. This is the root...
## Summary - Extract the duplicated `warning_affecting_keys` list (appearing in both `save_all_settings` and `api_update_setting`) into a single module-level `WARNING_AFFECTING_KEYS` constant. - Fix N+1 query problem in `GET /api/bulk`: replace per-key...
## Summary - **database_middleware.py**: Call `validate_session()` on each request to update `last_access` timestamps, enabling idle detection for connection cleanup. - **session_manager.py**: Add `get_last_activity_for_user()` method that returns the most recent `last_access`...
## Summary Bare `session.commit()` calls without `try/except` leave the thread-local SQLAlchemy session in a dirty state when a commit fails. Any subsequent operation on that session raises `PendingRollbackError`, breaking the...
## Summary - Add `connect_args={"check_same_thread": False}` — required because `SearchCache` uses `threading.Event` and `threading.Lock` for stampede protection, so sessions may be accessed from different threads - Add `pool_pre_ping=True` — validates...
## Summary Four high-impact, low-risk UI optimizations identified via comprehensive 60-agent codebase audit: ### P1: Add flask-compress for gzip/Brotli compression - The 2MB JS bundle + 435KB CSS bundle are...
## Summary Follow-up to #3803 that addresses the three out-of-scope items plus a test regression: - **Fix reset/cleanup endpoints**: `api_reset_engine_rate_limiting()` and `api_cleanup_rate_limiting()` silently skipped DB operations in Flask threads because...
Follow-up to #3770 (PR for #3747). ## The bug Databases created between **2025-10 and 2026-03-08** declare `documents.resource_id` with `ON DELETE CASCADE`. Commit 2033f977e (2026-03-08, PR #2587) changed the *model* to...
## Summary - Add a collapsible filter panel to the history page with chip-based multi-select for **status**, **rating** (1-5 + unrated), **mode**, and **search engine**, plus native **date range** inputs...
## Summary Four small, isolated cleanups that surfaced during the v1.6.x audit but each warranted only one or two lines. ### N3 — JS: drop `escapeHtml` fallbacks Top-level `const escapeHtml...