# Implementation Plan: Discussion Hub Panel Reorganization

## Phase 1: Cleanup & Project Settings Rename
Focus: Remove redundant ui_summary_only, rename Context Hub, establish project-level vs discussion-level separation

- [x] Task: Audit current ui_summary_only usages and document behavior to deprecate [f6fe3ba] (embedded audit)
- [x] Task: Remove ui_summary_only checkbox from _render_projects_panel (gui_2.py) [f5d4913]
- [x] Task: Rename Context Hub to "Project Settings" in _gui_func tab bar [2ed9867]
- [x] Task: Remove Context Presets tab from Project Settings (Context Hub) [9ddbcd2]
- [x] Task: Update references in show_windows dict and any help text [2ed9867] (renamed Context Hub -> Project Settings)
- [x] Task: Write tests verifying ui_summary_only removal doesn't break existing functionality [f5d4913]
- [x] Task: Conductor - User Manual Verification 'Phase 1: Cleanup & Project Settings Rename'

## Phase 2: Merge Session Hub into Discussion Hub [checkpoint: 2b73745]
Focus: Move Session Hub tabs into Discussion Hub, eliminate separate Session Hub window

- [x] Task: Audit Session Hub (_render_session_hub) tab content [documented above]
- [x] Task: Add Snapshot tab to Discussion Hub containing Aggregate MD + System Prompt preview [2b73745]
- [x] Task: Remove Session Hub window from _gui_func [2b73745]
- [x] Task: Add Discussion Hub tab bar structure (Discussion | Context Composition | Snapshot | Takes) [2b73745]
- [x] Task: Write tests for new tab structure rendering [2b73745]
- [x] Task: Conductor - User Manual Verification 'Phase 2: Merge Session Hub into Discussion Hub'

## Phase 3: Context Composition Tab [checkpoint: a3c8d4b]
Focus: Per-discussion file filter with save/load preset functionality

- [x] Task: Write tests for Context Composition state management [a3c8d4b]
- [x] Task: Create _render_context_composition_panel method [a3c8d4b]
- [x] Task: Implement file/screenshot selection display (filtered from Files & Media) [a3c8d4b]
- [x] Task: Implement per-file flags display (Auto-Aggregate, Force Full) [a3c8d4b]
- [x] Task: Implement Save as Preset / Load Preset buttons [a3c8d4b]
- [x] Task: Connect Context Presets storage to this panel [a3c8d4b]
- [x] Task: Update Persona editor to reference Context Composition presets (NOTE: already done via existing context_preset field in Persona) [a3c8d4b]
- [x] Task: Write tests for Context Composition preset save/load [a3c8d4b]
- [x] Task: Conductor - User Manual Verification 'Phase 3: Context Composition Tab'

## Phase 4: Takes Timeline Integration [checkpoint: cc6a651]
Focus: DAW-style branching with proper visual timeline and synthesis

- [x] Task: Audit existing takes data structure and synthesis_formatter [documented above]
- [ ] Task: Enhance takes data model with parent_entry and parent_take tracking (deferred - existing model sufficient)
- [x] Task: Implement Branch from Entry action in discussion history [already existed]
- [x] Task: Implement visual timeline showing take divergence [_render_takes_panel with table view]
- [x] Task: Integrate synthesis panel into Takes tab [cc6a651]
- [x] Task: Implement take selection for synthesis [cc6a651]
- [x] Task: Write tests for take branching and synthesis [cc6a651]
- [x] Task: Conductor - User Manual Verification 'Phase 4: Takes Timeline Integration'

## Phase 5: Final Integration & Cleanup
Focus: Ensure all panels work together, remove dead code

- [ ] Task: Run full test suite to verify no regressions
- [x] Task: Remove dead code from ui_summary_only references [verified]
- [x] Task: Update conductor/tracks.md to mark old session_context_snapshots and discussion_takes_branching as archived/replaced [verified]
- [ ] Task: Conductor - User Manual Verification 'Phase 5: Final Integration & Cleanup'
