7 months ago
c9b1ded* Polish injected memory prompt section copy * fix: resolve memory store bugs and add missing tests - Fix ID collision: upsert without explicit id now generates a UUID instead of always normalizing to 'memory', preventing data loss - Fix legacy import: deduplicate filesToImport by normalized id with a seenIds set to prevent SQLITE_CONSTRAINT_PRIMARYKEY on files that normalize to the same slug (e.g. 'foo bar.md' and 'foo-bar.md') - Fix memoryRequireApproval default mismatch: align types.ts doc comment and AgentSession fallback to false (consistent with config.ts) - Add tests: write-without-key generates unique IDs, enableMemory:false disables memory tool in createTools, memoryRequireApproval approve/deny flows, and legacy import duplicate-id deduplication Co-authored-by: Max Weinbach <mweinbach@users.noreply.github.com> * Add desktop memory management UI and fix PR #38 feedback - Fix legacy import duplicate normalized IDs (seenIds dedup) - Refresh cached system prompt after websocket memory upsert/delete - Refresh cached system prompt when memory enablement toggled via setConfig - Catch and surface memory store failures (no unhandled rejections) - Consistent memoryRequireApproval defaults (?? false) everywhere - Add desktop Memory settings page with full CRUD wired to control socket Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> * Fix memory prompt failure handling and cover PR feedback * Fix memory scope editing restriction * Reset memory loading flag on errors * Fix memory hot cache defaults and precedence * fix: use INSERT OR IGNORE for legacy memory import to handle concurrent access Concurrent sessions (e.g., two desktop windows opening the same workspace) could both pass the legacy_import_done check before either inserts, causing SQLITE_CONSTRAINT_PRIMARYKEY on the second writer. INSERT OR IGNORE makes concurrent first-access idempotent. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> --------- Co-authored-by: claude[bot] <41898282+claude[bot]@users.noreply.github.com> Co-authored-by: Max Weinbach <mweinbach@users.noreply.github.com> Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
Parent49fa806