mirror of
https://github.com/Memo-2023/mana-monorepo.git
synced 2026-05-14 22:01:09 +02:00
Four P1 fixes from the AI Workbench audit: #3 N+1 junction queries → batch lookups: - TagLinkOps gains getTagIdsForMany(entityIds) — single where(field).anyOf(ids).toArray() instead of N calls. - filterBySceneScopeBatch() uses a pre-fetched Map<id, tagId[]>. - All 4 module queries (notes, todo, contacts, calendar) migrated. - 500 notes now = 2 Dexie queries (records + junctions) instead of 501. #4 Vault-locked detection in readLocalNote: - Catches VaultLockedError from decryptRecords. - Throws descriptive "Vault ist gesperrt" instead of returning null. - Tools surface it as a clear error to the planner ("bitte Vault entsperren") instead of "Notiz nicht gefunden". #5 Debug log hardening: - Resolved-input content truncated to 500 chars before storage. - Time-based purge: entries older than 7 days auto-deleted. - Reduces privacy exposure if device is stolen/profile synced. #6 Timeout 90s → 180s: - 5 LLM calls on slow models (Ollama/GPU) regularly hit 90s. - 180s gives comfortable headroom for the reasoning loop. Audit doc updated with status markers. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| test | ||
| archive.test.ts | ||
| archive.ts | ||
| data-export.test.ts | ||
| data-export.ts | ||
| guest-mode.svelte.ts | ||
| index.ts | ||
| keyboard-shortcuts.test.ts | ||
| keyboard-shortcuts.ts | ||
| navigation-simple.ts | ||
| navigation.svelte.ts | ||
| notifications.test.ts | ||
| notifications.ts | ||
| reminder-scheduler.test.ts | ||
| reminder-scheduler.ts | ||
| settings.svelte.ts | ||
| tag-links.test.ts | ||
| tag-links.ts | ||
| tags-local.svelte.ts | ||
| tags.svelte.ts | ||
| toast.svelte.ts | ||
| toggle-field.test.ts | ||
| toggle-field.ts | ||
| view.svelte.test.ts | ||
| view.svelte.ts | ||