Handle missing trusted configuration during first-time setup #22
Loading…
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?
Problem
A repository's first setup PR can introduce both its workflow and
.forgejo/ai-review.yml, but the executable configuration is correctly loaded from the trusted base commit. That commit has no configuration yet.On main at
db44a09,fetch_config()returns{}for HTTP 404. Provider dispatch then defaults to Ollama, and a reviewable diff fails withprovider.model or OLLAMA_MODEL is requiredwhen no environment model is configured. This remains an onboarding problem even though this deployment now uses Pi.Existing behaviour
OLLAMA_MODELandOLLAMA_BASE_URLalready work as environment fallbacks; implementing that chain again is unnecessary.Remaining scope
Acceptance
Original reproduction
Reported on redview's first setup PR with an Ollama configuration at reviewer revision
1d35f73. The architectural cause remains confirmed ondb44a09; the specific model/host in the original report is historical context.Graceful first-PR config fallbackto Handle missing trusted configuration during first-time setup