Skip to content

feat(ipc): add settings dump to print full live config as JSON - #2817

Merged
purian23 merged 1 commit into
duxlabs-dev:masterfrom
sweenu:feat/settings-dump-ipc
Jul 13, 2026
Merged

purian23 merged 1 commit into
duxlabs-dev:masterfrom
sweenu:feat/settings-dump-ipc

Conversation

@sweenu

@sweenu sweenu commented Jul 10, 2026 •

Copy link
Copy Markdown
Contributor

Description

Adds a dump function to the settings IPC target:

dms ipc call settings dump

It returns the complete live configuration as pretty-printed JSON via the existing SettingsData.getCurrentSettingsJson() — the same serialization the read-only banner's "settings.json" copy button uses.

Motivation

When settings.json is a read-only symlink (NixOS/home-manager setups), changes made through the Settings UI can't be persisted and only exist in the running shell's memory. Today the only way to retrieve that live state is the clipboard copy button in the Settings modal's read-only banner. This exposes the same full dump over IPC, so it's scriptable and works without opening the UI — e.g. to diff against or paste back into the nix-managed config.

Type of change

  • Bug fix (non-breaking change that fixes an issue)
  • New feature (non-breaking change that adds functionality)
  • Breaking change (fix or feature that changes existing behavior)
  • Refactor / internal cleanup
  • Documentation
  • Other

Related issues

Screenshots / video

Checklist

Adds `dms ipc call settings dump`, returning the complete live
configuration via SettingsData.getCurrentSettingsJson() — the same
serialization used by the read-only banner's copy button.

Useful when settings.json is a read-only symlink (NixOS/home-manager):
changes made in the Settings UI only exist in the running shell's
memory, and this makes them retrievable from the CLI instead of only
through the clipboard button in the Settings modal.

Co-Authored-By: Claude Fable 5 <[email protected]>
@sweenu
sweenu marked this pull request as ready for review July 12, 2026 10:46
@purian23
purian23 merged commit 846d07d into duxlabs-dev:master Jul 13, 2026
1 check passed
dank-shell-app Bot pushed a commit that referenced this pull request Jul 13, 2026
Adds `dms ipc call settings dump`, returning the complete live
configuration via SettingsData.getCurrentSettingsJson() — the same
serialization used by the read-only banner's copy button.

Useful when settings.json is a read-only symlink (NixOS/home-manager):
changes made in the Settings UI only exist in the running shell's
memory, and this makes them retrievable from the CLI instead of only
through the clipboard button in the Settings modal.

Co-authored-by: Claude Fable 5 <[email protected]>

Port 1.5

(cherry picked from commit 846d07d)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants