# Plan: GUI Path Configuration in Context Hub

## Phase 1: Path Info Display
Focus: Show current path resolution in GUI

- [x] Task 1.1: Add path info functions to paths.py [d237d3b]
  - WHERE: src/paths.py
  - WHAT: Add functions to get path resolution source (default/env/config)
  - HOW: Return tuple of (resolved_path, source)
  - SAFETY: New functions, no modifications

- [x] Task 1.2: Create path display helper [d237d3b]
  - WHERE: src/paths.py
  - WHAT: Function to get all paths with resolution info
  - HOW: Returns dict of path_name -> (resolved, source)
  - SAFETY: New function

## Phase 2: Context Hub Panel
Focus: Add Path Configuration panel to GUI

- [x] Task 2.1: Add Paths tab to Context Hub [d237d3b]
  - WHERE: src/gui_2.py (Context Hub section)
  - WHAT: New tab/section for path configuration
  - HOW: Add ImGui tab item, follow existing panel patterns
  - SAFETY: New panel, no modifications to existing

- [x] Task 2.2: Display current paths [d237d3b]
  - WHERE: src/gui_2.py (new paths panel)
  - WHAT: Show resolved paths and their sources
  - HOW: Call paths.py functions, display in read-only text
  - SAFETY: New code

- [x] Task 2.3: Add path text inputs [d237d3b]
  - WHERE: src/gui_2.py (paths panel)
  - WHAT: Editable text inputs for each path
  - HOW: ImGui input_text for conductor_dir, logs_dir, scripts_dir
  - SAFETY: New code

- [x] Task 2.4: Add browse buttons [d237d3b]
  - WHERE: src/gui_2.py (paths panel)
  - WHAT: File dialog buttons to browse for directories
  - HOW: Use existing file dialog patterns in gui_2.py
  - SAFETY: New code

## Phase 3: Persistence
Focus: Save path changes to config.toml

- [x] Task 3.1: Add config write function [d237d3b]
  - WHERE: src/gui_2.py or new utility
  - WHAT: Write [paths] section to config.toml
  - HOW: Read existing config, update paths section, write back
  - SAFETY: Backup before write, handle errors

- [x] Task 3.2: Add Apply button [d237d3b]
  - WHERE: src/gui_2.py (paths panel)
  - WHAT: Button to save changes
  - HOW: Call config write function, show success/error message
  - SAFETY: Confirmation dialog

- [x] Task 3.3: Add Reset button [d237d3b]
  - WHERE: src/gui_2.py (paths panel)
  - WHAT: Reset paths to defaults
  - HOW: Clear custom values, show confirmation
  - SAFETY: Confirmation dialog

## Phase 4: UX Polish
Focus: Improve user experience

- [x] Task 4.1: Add restart warning [d237d3b]
  - WHERE: src/gui_2.py (paths panel)
  - WHAT: Show warning that changes require restart
  - HOW: Text label after Apply
  - SAFETY: New code

- [x] Task 4.2: Add tooltips [d237d3b]
  - WHERE: src/gui_2.py (paths panel)
  - WHAT: Explain each path and resolution order
  - HOW: ImGui set_tooltip on hover
  - SAFETY: New code

## Phase 5: Tests
Focus: Verify GUI path configuration

- [x] Task 5.1: Test path display [d237d3b]
  - WHERE: tests/test_gui_paths.py (new file)
  - WHAT: Verify paths panel shows correct values
  - HOW: Mock paths.py, verify display
  - SAFETY: New test file
