Skip to content

[Bug] Insights homepage fails to load if any/all AI features are disabled #975

Description

@CritLoren

HealthLog version

1.38.21

Deployment type

Self-hosted (Docker)

What happened?

Struggled to put this under feature requests or bugs, but the insights screen just fails to load if the AI features are disabled, even if with all of those features enabled those sections would be empty without an AI model enabled.

healthlog-app_340a5783c2b2ebc7d6da2c736867cf418705fa4123796b58b21d43385b223f0e(1).log

Page with AI features enabled, but no model set:
Image

Page with AI features disabled:
Image

PS:
Disabled the cycle feature hides it automatically from the Insights page, but Mood does not get the same treatment?

Expected behavior

Insights page to show, just with the LLM-based things hidden.

Steps to reproduce

  1. Disable AI features under Coach
  2. Navigate to the Insights page

Relevant logs / screenshots

Attached as file in first box, this box doesn't allow attaching files..

Browser / OS (if applicable)

Zen 1.22b (Firefox 155.0.1) 64-bit, on Windows 11

Pre-flight checks

  • I confirmed this is not a duplicate of an existing issue.
  • I redacted any secrets, tokens, or personal data from logs.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions