[demo] Home: discovery task crashes on search_profiles.yaml before DEMO_MODE guard fires #21
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: Circuit-Forge/peregrine#21
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?
Bug
Surfaced by E2E smoke harness (2026-03-17).
The Home page renders a persistent "Discovery failed: [Errno 2] No such file or directory: /app/config/search_profiles.yaml" error because the demo container has no
search_profiles.yaml, andtask_runner.pyinvokeddiscover.py(which reads it at import time) before any DEMO_MODE guard could prevent it.The failed task row persisted in
background_tasksacross container restarts, so the error displayed on every page load.Fix applied
scripts/task_runner.py: added DEMO_MODE guard at the top of thediscoverybranch — returns friendly "Discovery is disabled in the public demo" error immediately without importingdiscover.py.failedrows fromdemo/data/staging.db.Commit
5d14542— feat(e2e): add smoke + interaction tests; fix two demo mode errorsStatus
Fixed and verified. Smoke test passes clean.