---
title: "Configuration & Live Reloading"
source: "https://edawise.com/docs/gui/configuration/"
---

# Configuration & Live Reloading

`deccy-gui` stores per-repository visual preferences in `.deccy/settings.json` and automatically watches `.deccy/` for external changes on disk.

---

## Store Settings (`.deccy/settings.json`)

Visual settings for a store live in `<store>/.deccy/settings.json`:

```json
{
  "hideEvaluation": false,
  "nodeColors": {
    "non-contradiction": "#6fb6ff",
    "text": "#f0b95c"
  }
}
```

### Opening the Settings Dialog & File

- Click **`settings`** in the top toolbar or press **`⌘,`** (`Ctrl+,` on Linux/Windows) to open the Settings modal dialog.
- Inside the dialog:
  - Toggle **`hide connectors`** to condense or expand connector cards in the graph.
  - Click **`open settings.json`** to create `.deccy/settings.json` (if it does not yet exist) and open it in the built-in JSON editor.
  - Click **`close`**, click the `×` button, click the dimmed backdrop, or press **`Esc`** to dismiss the dialog.
- Saving `.deccy/settings.json` in the built-in editor reloads the store and applies your changes immediately.

### Schema & Merge Behavior

| Field | Type | Default | Description |
| --- | --- | --- | --- |
| `hideEvaluation` | `boolean` | `false` | Backing field for the `hide connectors` switch. When `true`, connector cards are hidden and their edges are condensed. |
| `nodeColors` | `object` (`string → string`) | `{}` | Maps each node `type` string (case-sensitive) to a 6-digit hex color (`#rrggbb` or `rrggbb`). |

How `deccy-gui` reads and updates `.deccy/settings.json`:

1. **Non-Destructive Palette Population**: On every store load, `deccy-gui` checks all node `type` values present in the graph. For any `type` not yet listed in `nodeColors`, it assigns a color from its built-in 8-color palette (in sorted `type` order) and writes the updated file to disk:
   - `#6fb6ff` (blue)
   - `#f0b95c` (amber)
   - `#61d39a` (green)
   - `#ff9ff3` (pink)
   - `#8dd9e8` (cyan)
   - `#ffc48c` (peach)
   - `#c4a3ff` (lavender)
   - `#b7e36b` (lime)
2. **Existing Keys Preserved**: Existing entries in `nodeColors` are never overwritten, and any extra top-level JSON keys in `.deccy/settings.json` are preserved verbatim when the file is saved. If no new node types were discovered on load, the file is not rewritten.
3. **Validation**: If `.deccy/settings.json` contains invalid JSON or wrong field types (`hideEvaluation` not a boolean, or `nodeColors` not an object of strings), `deccy-gui` falls back to default settings and displays an `invalid <path>: <reason>` notice in the bottom feedback bar.

---

## Hiding Connectors (`hide connectors` / `hideEvaluation`)

Toggling **`hide connectors`** in the `settings` dialog (or setting `"hideEvaluation": true` in `.deccy/settings.json`) switches the graph to a condensed view:

- **Condensed Arrows**: Every connector card is removed from the canvas, and each `premise → connector → conclusion` chain is replaced by a direct `premise → conclusion` arrow (one arrow per distinct premise/conclusion pair).
- **Preserved Warning & Problem Flags**: Each condensed arrow carries the logical OR of the `stale`, `unpinned`, `dangling`, and `cycle` flags from every hop in the chain. If either hop through a hidden connector is stale, unpinned, dangling, or part of a cycle, the resulting direct arrow still renders with the corresponding color and dashed style.
- **Selection & Refit**: When you turn `hide connectors` on, if a connector was currently selected it is deselected, and the viewport automatically refits to the condensed graph.
- **Navigation, Search & Neighbourhoods**:
  - `j` / `k` (`↓` / `↑`) keyboard navigation and search match cycling (`Enter` / `Shift-Enter`) skip hidden connectors.
  - Selecting a decision keeps all decisions connected to it through a hidden connector at full brightness (two-hop visible neighbours).

---

## Customizing Node Colors (`nodeColors`)

Each entry in `nodeColors` matches a node's `type` field — the word after the dot in the inspector's `<kind> · <type>` footer (for example, `"text"` or `"non-contradiction"`), matched **case-sensitively**:

- **Valid Color Formats**: 6-digit hexadecimal RGB strings with or without a leading `#` (e.g., `"#3b5bdb"` or `"3b5bdb"`, case-insensitive hex digits).
- **Automatic Contrast**: When a valid color is configured for a node's `type`, the card background fills with that color, its border is darkened by 25%, and its title, glyph, short ID, and warning chips automatically switch between black (`#000000`) and white (`#ffffff`) based on WCAG relative luminance contrast.
- **Disabling a Type's Fill Color**: Because `deccy-gui` only auto-populates missing keys, if you want a node `type` to use the default dark panel card styling instead of a colored fill, set its value in `nodeColors` to `""` (or any non-hex string such as `"default"`). Existing keys are never overwritten on reload, and non-hex values fall back to the default card surface.

---

## Live File Watching & Reloads

`deccy-gui` watches the store on disk so CLI commands run in the embedded terminal or an external shell appear in the graph automatically.

### What Is Watched

- **Watched Directories**: `.deccy/nodes` (required) and `.deccy/rationale` (best-effort) are watched recursively for file creation, modification, and removal events. Writes to `.deccy/format` are ignored.
- **Coalescing**: File events are debounced over ~300ms (two `150ms` ticks) so multi-file CLI operations trigger a single background reload after disk activity settles.
- **External Edits to Claimed Files**: Workspace files outside `.deccy/` are not watched by the filesystem watcher. If you edit a claimed file in an external editor or shell, press **`r`** (or click **`reload`** in the toolbar) to re-check claim digests. *(Saving a claimed file inside `deccy-gui`'s built-in editor reloads the store automatically.)*

### What Survives a Reload

During a background reload, the current graph remains on screen until the new model is ready. Once applied:

- **Viewport (Zoom & Pan)**: Preserved across both automatic watcher reloads and manual reloads (`r` / `reload`).
- **Selection**: Preserved if the selected node ID still exists in the reloaded store (and its rationale/details refresh automatically); cleared if the node was removed.
- **Manual Card Positions**: Any card (or ghost) you dragged to a custom position keeps its position as long as its ID remains in the store. Positions for deleted IDs are dropped.

### Error Recovery on Reload Refusal

If a reload fails (for example, `.deccy/nodes` is temporarily moved or a record is unreadable):
- `deccy-gui` keeps the last good graph on screen rather than blanking the window.
- The refusal message appears in red in the bottom feedback bar and is appended to the drawer's `Outputs` tab (opening the drawer automatically).
- Once the store is restored, press **`r`** or click **`reload`** to recover.
