Skip to content

Electron App: Settings & configuration #136

Description

@jongio

Overview

Settings modal with all 10 configurable fields, reading/writing the shared config.json.

Acceptance Criteria

  • Settings modal opens with ',' key
  • 10 fields: Yolo Mode (toggle), Agent (text), Model (text), Launch Mode (select), Pane Direction (select), Terminal (select from detected), Shell (select from detected), Custom Command (text), Theme (select), Crash Recovery (toggle)
  • Reads from existing dispatch config.json (shared with TUI)
  • Writes back with file locking to prevent conflicts with TUI
  • Config migration support (version field)
  • Validation: invalid values show error inline
  • Changes apply immediately (no restart needed)
  • Reset to defaults button per field
  • Config file location displayed (clickable to open in file manager)

Config File Location

  • Windows: %APPDATA%/dispatch/config.json\
  • macOS: ~/Library/Application Support/dispatch/config.json\
  • Linux: ~/.config/dispatch/config.json\

Notes

  • Same JSON schema as Go config package
  • File locking via proper-lockfile to prevent race with TUI
  • Schema version migration matches Go's currentConfigVersion

Metadata

Metadata

Assignees

No one assigned

    Labels

    electronElectron desktop appelectron-p2Electron Phase 2 - Core Features

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions