Skip to content

fix: report vramFits=true for features already consuming VRAM#760

Merged
Lightheartdevs merged 1 commit intoLight-Heart-Labs:mainfrom
yasinBursali:fix/vram-fits-enabled-override
Apr 3, 2026
Merged

fix: report vramFits=true for features already consuming VRAM#760
Lightheartdevs merged 1 commit intoLight-Heart-Labs:mainfrom
yasinBursali:fix/vram-fits-enabled-override

Conversation

@yasinBursali
Copy link
Copy Markdown
Contributor

What

Override vramFits to use total VRAM (not free VRAM) when a feature is already enabled and running.

Why

The /api/features endpoint computes vramFits from free VRAM. When a feature is running, its services consume VRAM, reducing free VRAM below the feature's requirement. This produces vramFits=false alongside enabled=true — a contradictory signal that confuses users into thinking their hardware is insufficient for features already running successfully.

How

In calculate_feature_status(), after determining is_enabled, if the feature is enabled, override vram_fits = vram_ok (total VRAM >= requirement). A running feature has already "fit" — its own VRAM usage shouldn't count against it.

The vramFits field is informational only — it is not used in status determination logic (enabled, available, insufficient_vram, services_needed).

Testing

  • python -m py_compile passes
  • pytest: 374/384 pass (10 pre-existing failures on main, 0 regressions)
  • Critique Guardian: APPROVED

Review

Critique Guardian verdict: ✅ APPROVED — correct logic, minimal diff, clear commentary.

Platform Impact

  • macOS: No impact — pure Python logic
  • Linux: No impact
  • Windows/WSL2: No impact — this was reported on WSL2, fix resolves the confusing signal

When a feature is enabled and running, its services consume VRAM,
reducing free VRAM below the requirement threshold. This caused
vramFits=false while enabled=true — contradictory. Now, when a
feature is enabled, vramFits checks total VRAM instead of free.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@Lightheartdevs Lightheartdevs merged commit 838d33a into Light-Heart-Labs:main Apr 3, 2026
21 of 28 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants