Files
kevinveenbirkenbachandClaude Opus 5.5 62523c7429 fix(web-app-openwebui): keep the MCP-grant and agent-model helpers from migrating the database
Both helpers run python3 inside the running Open WebUI container, and importing open_webui there starts the database migrations next to the server's own after a restart. In run 44198831768 (odoo#1, OIDC row, where the administrator helper is skipped) the MCP-grant helper ran three seconds after the compose flush: its migration raced the server's (Online migration expected to match one row when updating c69f45358db4 to c29facfe716b; 0 found), left _alembic_tmp_knowledge behind, and all 30 retries failed on it. 8c7c32a312 already gave the administrator helper ENABLE_DB_MIGRATIONS=false; the other two helpers now get it too, and a unit test fails on any python3 exec in the role's tasks without it, in the argv and in the shell form.

🎯 Fix: 90 %
💥 Break: 2 %
💸 Tokens: –
⏱️ Velocity: –
🛡️ Security: 100 %
🏆 Score: 88
🚦 Gate: ✅ 90/5, tokens and velocity <= 100, security 100 %

Created-with: https://s.veen.world/skills
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-18 11:09:54 +00:00

6 lines
111 B
Python

from pathlib import Path
PROJECT_ROOT: Path = Path(__file__).resolve().parents[6]
__all__ = ["PROJECT_ROOT"]