feat: persist notification preferences to server-side settings

Notification prefs are now included in the PUT /api/settings payload
and stored in ~/.claudeman/settings.json. On page load, server-stored
prefs are loaded as fallback when localStorage is empty (e.g. new
browser or cleared cache).

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
arkon
2026-01-24 02:19:46 +01:00
co-authored by Claude Opus 4.5
parent 1fb1007211
commit f818fbb234
2 changed files with 32 additions and 14 deletions
+1 -1
View File
@@ -1306,7 +1306,7 @@ export class WebServer extends EventEmitter {
});
this.app.put('/api/settings', async (req) => {
const settings = req.body as { defaultClaudeMdPath?: string; defaultWorkingDir?: string };
const settings = req.body as Record<string, unknown>;
try {
const dir = dirname(settingsPath);