Add an explicit clearMemoryGenerationModel path so empty advanced-memory generation models remove persisted overrides instead of pinning stale values.
Sync advanced memory defaults through desktop workspace settings, control sessions, JSON-RPC schemas, generated protocol docs, and the mobile shared schemas.
Refresh prompts after advanced-memory toggles and successful generated-memory writes, and guard advanced-memory folder names against path traversal.
Tests: bun run check; bun run test; bun run lint; bun run typecheck; bun run docs:check; git diff --cached --check