mirror of
https://github.com/ownpilot/OwnPilot.git
synced 2026-04-25 07:15:51 +03:00
[PR #3] [MERGED] fix: Initialize repo caches in CLI start & include local providers in demo mode #7
Labels
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/OwnPilot#7
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/ownpilot/OwnPilot/pull/3
Author: @silexi
Created: 2/23/2026
Status: ✅ Merged
Merged: 2/23/2026
Merged by: @ersinkoc
Base:
main← Head:fix/cli-start-missing-repo-init📝 Commits (3)
8391396fix: Initialize repository caches in CLI start command40cf0d9fix: Include local providers in demo mode detection6cbdf10refactor: Move repo initialization to CLI entry point📊 Changes
4 files changed (+47 additions, -4 deletions)
View changed files
📝
packages/cli/src/index.ts(+26 -2)📝
packages/gateway/src/index.ts(+5 -0)📝
packages/gateway/src/routes/agent-service.ts(+9 -1)📝
packages/gateway/src/routes/settings.ts(+7 -1)📄 Description
Summary
Two related bugs that break local AI provider support (Ollama, LM Studio, etc.) when running via Docker:
startcommand — ThestartAll()function (used by Docker'sCMD) skipped all repository cache initialization calls, causing local provider CRUD operations to fail with 404 errorsisDemoMode()only checked for cloud provider API keys, so users with only Ollama configured got demo responses instead of real AIChanges
Commit 1: Initialize repository caches in CLI start command
initializeSettingsRepo,initializeConfigServicesRepo,initializeLocalProvidersRepo,initializePluginsRepo, andseedConfigServicesfrom@ownpilot/gatewaystartAll()after DB adapter init, matching whatserver.tsdoesCommit 2: Include local providers in demo mode detection
isDemoMode()inagent-service.tsnow checkslocalProvidersRepo.listProviders()for enabled providersisDemoModeFromSettings()insettings.tsdoes the sameReproduction
docker compose --profile postgres up -dTest plan
docker compose --profile postgres up -d— no "Cache not initialized" warnings after repo init🤖 Generated with Claude Code
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.