34ba526fa8
Extracted duplicated generator auto-start logic (44 lines × 4 occurrences) into single private method ensureGeneratorRunning() that accepts source parameter. Benefits: - Reduced code duplication from 72 lines to 24 lines (net -48 lines) - Single source of truth for generator lifecycle management - Improved maintainability - changes only needed in one place - Better logging with parameterized source tracking Phase 2 Complete: All 4 handler methods now use shared method: - handleObservations (legacy endpoint) - handleSummarize (legacy endpoint) - handleObservationsByClaudeId (new endpoint) - handleSummarizeByClaudeId (new endpoint) 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>