Pulse/internal/ai/chat
rcourtman ae2edbde20 fix(ai): complete wiring on first-time configure; guard Ollama fallback
Three follow-up fixes:

1. RestartAIChat() now performs the full post-start wiring (MCP providers,
   patrol adapter, investigation orchestrator) when the service starts for
   the first time via Restart(). Previously these were only wired via
   StartAIChat(), leaving first-time configure with a partially wired service.

2. The Ollama→OpenAI-compatible fallback in createProviderForModel is now
   guarded by !strings.HasPrefix(modelStr, "ollama:") so explicit
   "ollama:llama3" models are never silently rerouted to a different provider.

3. Windows install script registration check now uses the $Hostname override
   (if set) instead of always looking up $env:COMPUTERNAME, so post-install
   verification works correctly when a custom hostname is specified.
2026-03-13 12:06:08 +00:00
..
agentic.go fix(patrol): cap per-run tokens and reset patrol session history 2026-02-24 11:29:47 +00:00
agentic_additional_test.go docs: add comprehensive deep-dive documentation for AI subsystems 2026-02-02 10:29:07 +00:00
agentic_format_test.go test(ai/chat): add agentic loop formatting tests 2026-02-02 11:15:31 +00:00
agentic_test.go feat(ai): parallelize tool execution and refine knowledge extraction 2026-02-01 00:12:36 +00:00
compaction_test.go refactor(ai): refine agentic loop compaction and knowledge accumulation 2026-01-31 19:33:43 +00:00
context_prefetch.go feat(backend): implement AI Patrol, Investigation, and system-wide refactors 2026-01-30 19:02:14 +00:00
context_prefetch_additional_test.go docs: add comprehensive deep-dive documentation for AI subsystems 2026-02-02 10:29:07 +00:00
fsm.go feat(backend): implement AI Patrol, Investigation, and system-wide refactors 2026-01-30 19:02:14 +00:00
fsm_additional_test.go docs: add comprehensive deep-dive documentation for AI subsystems 2026-02-02 10:29:07 +00:00
fsm_test.go Add FSM workflow guardrails for AI assistant safety 2026-01-28 16:47:54 +00:00
knowledge_accumulator.go refactor(ai): refine agentic loop compaction and knowledge accumulation 2026-01-31 19:33:43 +00:00
knowledge_accumulator_test.go refactor(ai): refine agentic loop compaction and knowledge accumulation 2026-01-31 19:33:43 +00:00
knowledge_extractor.go Filter virtual disks from SMART checks to prevent false positives (#1329) 2026-03-08 22:16:24 +00:00
knowledge_extractor_additional2_test.go test(ai/chat): add tests for service utilities and knowledge extraction 2026-02-02 11:15:02 +00:00
knowledge_extractor_test.go Filter virtual disks from SMART checks to prevent false positives (#1329) 2026-03-08 22:16:24 +00:00
metrics.go Add context prefetching and metrics to chat service 2026-01-28 16:50:46 +00:00
metrics_additional_test.go docs: add comprehensive deep-dive documentation for AI subsystems 2026-02-02 10:29:07 +00:00
resolved_context_test.go Add resolved context and routing provenance tracking 2026-01-28 16:48:25 +00:00
routing_contract_test.go Add resolved context and routing provenance tracking 2026-01-28 16:48:25 +00:00
service.go fix(ai): complete wiring on first-time configure; guard Ollama fallback 2026-03-13 12:06:08 +00:00
service_additional_test.go refactor(ai): integrate patrol execution into chat service 2026-01-28 21:21:41 +00:00
service_execute_additional_test.go fix: address AI patrol concurrency and streaming issues 2026-02-03 14:39:00 +00:00
service_misc_test.go test(ai/chat): add tests for service utilities and knowledge extraction 2026-02-02 11:15:02 +00:00
service_patrol_additional_test.go fix(ai): route OpenRouter slash-delimited models to OpenAI provider (#1296) 2026-03-01 22:29:45 +00:00
service_recent_context_test.go test(ai/chat): add tests for service utilities and knowledge extraction 2026-02-02 11:15:02 +00:00
service_test.go fix(ai): route OpenRouter slash-delimited models to OpenAI provider (#1296) 2026-03-01 22:29:45 +00:00
service_tooling_test.go test(ai/chat): add tests for service utilities and knowledge extraction 2026-02-02 11:15:02 +00:00
session.go feat(ai): add knowledge accumulation and enhance agentic loop 2026-01-31 16:22:50 +00:00
session_additional_test.go docs: add comprehensive deep-dive documentation for AI subsystems 2026-02-02 10:29:07 +00:00
session_memory_regression_test.go test: add memory regression coverage for AI stores 2026-02-04 19:56:12 +00:00
session_test.go test: improve coverage for API, AI, Alerts, and Frontend Utils 2026-01-20 15:52:39 +00:00
tools.go Fix OpenAI-compatible endpoint support for chat 2026-02-03 12:03:06 +00:00
tools_test.go test: improve coverage for API, AI, Alerts, and Frontend Utils 2026-01-20 15:52:39 +00:00
types.go fix: finding drawer actions (notes persist, acknowledge visual, discuss context) 2026-02-02 15:18:51 +00:00
types_additional_test.go docs: add comprehensive deep-dive documentation for AI subsystems 2026-02-02 10:29:07 +00:00