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:
{
"hideEvaluation": false,
"nodeColors": {
"non-contradiction": "#6fb6ff",
"text": "#f0b95c"
}
}
Opening the Settings Dialog & File
- Click
settingsin the top toolbar or press⌘,(Ctrl+,on Linux/Windows) to open the Settings modal dialog. - Inside the dialog:
- Toggle
hide connectorsto condense or expand connector cards in the graph. - Click
open settings.jsonto 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 pressEscto dismiss the dialog.
- Toggle
- Saving
.deccy/settings.jsonin 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:
- Non-Destructive Palette Population: On every store load,
deccy-guichecks all nodetypevalues present in the graph. For anytypenot yet listed innodeColors, it assigns a color from its built-in 8-color palette (in sortedtypeorder) and writes the updated file to disk:#6fb6ff(blue)#f0b95c(amber)#61d39a(green)#ff9ff3(pink)#8dd9e8(cyan)#ffc48c(peach)#c4a3ff(lavender)#b7e36b(lime)
- Existing Keys Preserved: Existing entries in
nodeColorsare never overwritten, and any extra top-level JSON keys in.deccy/settings.jsonare preserved verbatim when the file is saved. If no new node types were discovered on load, the file is not rewritten. - Validation: If
.deccy/settings.jsoncontains invalid JSON or wrong field types (hideEvaluationnot a boolean, ornodeColorsnot an object of strings),deccy-guifalls back to default settings and displays aninvalid <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 → conclusionchain is replaced by a directpremise → conclusionarrow (one arrow per distinct premise/conclusion pair). - Preserved Warning & Problem Flags: Each condensed arrow carries the logical OR of the
stale,unpinned,dangling, andcycleflags 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 connectorson, 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-guionly auto-populates missing keys, if you want a nodetypeto use the default dark panel card styling instead of a colored fill, set its value innodeColorsto""(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/formatare ignored. - Coalescing: File events are debounced over ~300ms (two
150msticks) 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, pressr(or clickreloadin the toolbar) to re-check claim digests. (Saving a claimed file insidedeccy-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-guikeeps 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
Outputstab (opening the drawer automatically). - Once the store is restored, press
ror clickreloadto recover.