mirror of
https://github.com/jeffusion/gitea-ai-assistant.git
synced 2026-03-27 10:05:50 +00:00
After migrating config to DB, values changed via Web UI were not picked up by consumers that cached config at module load time. - gitea.ts: replace static axios.create() with request interceptors that read config.gitea.apiUrl and accessToken on every request - feishu.ts: remove constructor caching of webhookUrl/webhookSecret, read from config.feishu.* on each sendMessage() call - engine.ts: create SandboxExec/LocalRepoManager/DiffExtractor/Orchestrator per review run instead of once at class init, so workdir/token/limits always reflect current config. FileReviewStore stays singleton (has state). - index.ts: wrap JWT middleware in per-request handler so config.admin.jwtSecret is read dynamically instead of captured once at startup