Every time I start claude-desktop, or if I change mode in the Claude top bar (chat/cowork/code), the file ~/.config/Claude/claude_desktop_config.json gets reset to the same content:
{
"preferences": {
"localAgentModeTrustedFolders": [
"/usr/lib/claude-desktop/node_modules/electron/dist/resources/app.asar"
],
"coworkScheduledTasksEnabled": true,
"ccdScheduledTasksEnabled": true,
"sidebarMode": "task",
"coworkWebSearchEnabled": false,
"floatingAtollActive": true
}
}
It's not a formatting problem — the file is rewritten even if no changes are made, or if I toggle a simple boolean value. Furthermore, I can see in the log when it occurs:
2026-04-14 20:36:12 [info] Config file written
My problem is that I can't add any MCP server. If I add one, claude-desktop --doctor detects it correctly, but the config file gets reset on startup and my configuration is discarded.
My configuration
$ lsb_release -d
Description: Ubuntu 22.04.5 LTS
$ claude-desktop --doctor
Claude Desktop Diagnostics
================================
[PASS] Installed version: 1.2278.0-1.3.30
[PASS] Display server: X11 (DISPLAY=:0)
Menu bar mode: auto (default, Alt toggles visibility)
[PASS] Electron: v41.2.0 (/usr/lib/claude-desktop/node_modules/electron/dist/electron)
[PASS] Chrome sandbox: permissions OK (/usr/lib/claude-desktop/node_modules/electron/dist/chrome-sandbox)
[PASS] SingletonLock: held by running process (PID 3520986)
[PASS] MCP config: valid JSON (/home/david/.config/Claude/claude_desktop_config.json)
MCP servers configured: 1
[PASS] Node.js: v20.20.2
Path: /home/david/.nvm/versions/node/v20.20.2/bin/node
[PASS] Desktop entry: /usr/share/applications/claude-desktop.desktop
[PASS] Disk space: 20668MB free
Cowork Mode
----------------
[PASS] bubblewrap: found
[PASS] KVM: accessible
[PASS] vsock: module loaded
QEMU: not found
[PASS] socat: found
virtiofsd: not found
VM image: not downloaded yet
Cowork isolation: bubblewrap (namespace sandbox)
[PASS] Cowork daemon: running (parent alive)
[PASS] Log file: 23KB (/home/david/.cache/claude-desktop-debian/launcher.log)
Every time I start claude-desktop, or if I change mode in the Claude top bar (chat/cowork/code), the file ~/.config/Claude/claude_desktop_config.json gets reset to the same content:
{ "preferences": { "localAgentModeTrustedFolders": [ "/usr/lib/claude-desktop/node_modules/electron/dist/resources/app.asar" ], "coworkScheduledTasksEnabled": true, "ccdScheduledTasksEnabled": true, "sidebarMode": "task", "coworkWebSearchEnabled": false, "floatingAtollActive": true } }It's not a formatting problem — the file is rewritten even if no changes are made, or if I toggle a simple boolean value. Furthermore, I can see in the log when it occurs:
My problem is that I can't add any MCP server. If I add one, claude-desktop --doctor detects it correctly, but the config file gets reset on startup and my configuration is discarded.
My configuration
$ claude-desktop --doctor Claude Desktop Diagnostics ================================ [PASS] Installed version: 1.2278.0-1.3.30 [PASS] Display server: X11 (DISPLAY=:0) Menu bar mode: auto (default, Alt toggles visibility) [PASS] Electron: v41.2.0 (/usr/lib/claude-desktop/node_modules/electron/dist/electron) [PASS] Chrome sandbox: permissions OK (/usr/lib/claude-desktop/node_modules/electron/dist/chrome-sandbox) [PASS] SingletonLock: held by running process (PID 3520986) [PASS] MCP config: valid JSON (/home/david/.config/Claude/claude_desktop_config.json) MCP servers configured: 1 [PASS] Node.js: v20.20.2 Path: /home/david/.nvm/versions/node/v20.20.2/bin/node [PASS] Desktop entry: /usr/share/applications/claude-desktop.desktop [PASS] Disk space: 20668MB free Cowork Mode ---------------- [PASS] bubblewrap: found [PASS] KVM: accessible [PASS] vsock: module loaded QEMU: not found [PASS] socat: found virtiofsd: not found VM image: not downloaded yet Cowork isolation: bubblewrap (namespace sandbox) [PASS] Cowork daemon: running (parent alive) [PASS] Log file: 23KB (/home/david/.cache/claude-desktop-debian/launcher.log)