Bug CRITICO da test multi-agente: kb.js::getJwt() leggeva localStorage 'access_token' ma l'app salva il JWT sotto 'nis2_access_token' -> ogni chiamata KB inviava Authorization: Bearer (vuoto) -> 401 -> pagina KB completamente inutilizzabile (upload/list/search/delete). Stesso pattern del bug this.delete. Inoltre kb.html non aveva il blocco init (checkAuth/loadSidebar/I18n.init) presente in tutte le altre pagine -> sidebar vuota e nessun redirect a login. Fix: kb.js usa nis2_access_token; kb.html aggiunge i18n.js + init auth/chrome. node --check OK. version 1.10.6. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| ai-assistant.js | ||
| api.js | ||
| auth-gate.js | ||
| bug-reporter.js | ||
| common.js | ||
| feedback.js | ||
| help.js | ||
| i18n.js | ||
| kb.js | ||