Pulse/internal/ai
rcourtman 54fc259221 fix(ai): improve AI settings UX with validation and smart fallbacks
Backend:
- Add smart provider fallback when selected model's provider isn't configured
- Automatically switch to a model from a configured provider instead of failing
- Log warning when fallback occurs for visibility

Frontend (AISettings.tsx):
- Add helper functions to check if model's provider is configured
- Group model dropdown: configured providers first, unconfigured marked with ⚠️
- Add inline warning when selecting model from unconfigured provider
- Validate on save that model's provider is configured (or being added)
- Warn before clearing last configured provider (would disable AI)
- Warn before clearing provider that current model uses
- Add patrol interval validation (must be 0 or >= 10 minutes)
- Show red border + inline error for invalid patrol intervals 1-9
- Update patrol interval hint: '(0=off, 10+ to enable)'

These changes prevent confusing '500 Internal Server Error' and
'AI is not enabled or configured' errors when model/provider mismatch.
2025-12-17 18:30:19 +00:00
..
baseline Add comprehensive AI test coverage 2025-12-16 12:33:06 +00:00
context Add comprehensive AI test coverage 2025-12-16 12:33:06 +00:00
correlation fix(ai): improve AI settings UX with validation and smart fallbacks 2025-12-17 18:30:19 +00:00
cost Add comprehensive AI test coverage 2025-12-16 12:33:06 +00:00
knowledge Add comprehensive AI test coverage 2025-12-16 12:33:06 +00:00
memory Add comprehensive AI test coverage 2025-12-16 12:33:06 +00:00
patterns Add comprehensive AI test coverage 2025-12-16 12:33:06 +00:00
providers test: expand AI provider test coverage with HTTP mocks 2025-12-17 15:53:56 +00:00
alert_adapter.go test: add unit tests for AI, Kubernetes agent, and clients 2025-12-17 12:47:36 +00:00
alert_adapter_test.go test: add unit tests for AI, Kubernetes agent, and clients 2025-12-17 12:47:36 +00:00
alert_provider.go AI Problem Solver implementation and various fixes 2025-12-06 23:46:08 +00:00
alert_provider_test.go test: add unit tests for AI, Kubernetes agent, and clients 2025-12-17 12:47:36 +00:00
alert_threshold_adapter.go refactor(ai): Remove over-engineered URL discovery service 2025-12-10 08:35:24 +00:00
alert_threshold_adapter_test.go test: add unit tests for AI, Kubernetes agent, and clients 2025-12-17 12:47:36 +00:00
alert_triggered.go feat(ai): Add LLM memory system for patrol findings 2025-12-10 22:55:34 +00:00
alert_triggered_test.go Add comprehensive AI test coverage 2025-12-16 12:33:06 +00:00
baseline_adapter.go feat(ai): Add baseline learning and anomaly detection (Phase 2) 2025-12-12 11:26:31 +00:00
baseline_adapter_test.go test: add unit tests for AI, Kubernetes agent, and clients 2025-12-17 12:47:36 +00:00
baseline_exports.go feat(ai): Wire baseline learning loop into router startup 2025-12-12 11:29:47 +00:00
config.go AI Problem Solver implementation and various fixes 2025-12-06 23:46:08 +00:00
correlation_exports.go feat(ai): Add multi-resource correlation detection (Phase 6) 2025-12-12 14:26:10 +00:00
cost_persistence.go feat(ai): Add enriched context with historical trends and predictions 2025-12-12 09:45:57 +00:00
findings.go feat(ai): Add suppression rules management API and UI 2025-12-11 00:12:18 +00:00
findings_persistence.go refactor(ai): Remove over-engineered URL discovery service 2025-12-10 08:35:24 +00:00
findings_test.go refactor(ai): Remove over-engineered URL discovery service 2025-12-10 08:35:24 +00:00
memory_exports.go feat(ai): Add operational memory (Phase 3) - change detection and remediation logging 2025-12-12 13:49:37 +00:00
metadata_provider.go feat(ai): Add URL discovery tool - AI can find and set resource URLs 2025-12-10 00:29:07 +00:00
metrics_history_adapter.go feat(ai): Add enriched context with historical trends and predictions 2025-12-12 09:45:57 +00:00
patrol.go style: remove emojis from AI context formatting and prompts 2025-12-13 21:26:49 +00:00
patrol_history_persistence.go feat(ai): Enhanced AI patrol system with alert triggers and history persistence 2025-12-10 21:08:22 +00:00
patrol_test.go Add comprehensive AI test coverage 2025-12-16 12:33:06 +00:00
pattern_exports.go feat(ai): Add failure pattern detection for predictive intelligence (Phase 5) 2025-12-12 14:11:28 +00:00
resource_context.go Add AI monitoring enhancements and host metadata features 2025-12-09 16:27:46 +00:00
routing.go Add AI monitoring enhancements and host metadata features 2025-12-09 16:27:46 +00:00
routing_test.go AI Problem Solver implementation and various fixes 2025-12-06 23:46:08 +00:00
sanitize_test.go refactor(ai): Remove over-engineered URL discovery service 2025-12-10 08:35:24 +00:00
service.go fix(ai): improve AI settings UX with validation and smart fallbacks 2025-12-17 18:30:19 +00:00
service_test.go Add comprehensive AI test coverage 2025-12-16 12:33:06 +00:00
target_host_test.go AI Problem Solver implementation and various fixes 2025-12-06 23:46:08 +00:00