Skip to content

fix: disable auto fit setting by default#7610

Merged
louis-jan merged 1 commit intomainfrom
fix/disable-auto-fit-by-default
Mar 4, 2026
Merged

fix: disable auto fit setting by default#7610
louis-jan merged 1 commit intomainfrom
fix/disable-auto-fit-by-default

Conversation

@louis-jan
Copy link
Contributor

@louis-jan louis-jan commented Mar 4, 2026

Summary

Disable fit feature in favor of #7609

  • Changed the default value of the fit (auto-fit) setting from true to false in settings.json
  • Removed the macOS-specific override that disabled fit on Mac — fit is now disabled by default on all platforms
  • Minor formatting fix in the cfg.fit migration check

Motivation

Previously, fit was enabled by default on all platforms except macOS, which had a special code path to override it to false. This was inconsistent. Disabling it globally by default is the safer behavior: users who want auto-fitting can opt in explicitly.

Test plan

  • Build and launch the app; verify the Auto Fit checkbox in LlamaCPP engine settings is unchecked by default
  • Load a model and confirm inference works normally without fit enabled
  • Toggle fit on manually and confirm it applies correctly
  • Verify no regression on macOS (previously it was already false there)

Copilot AI review requested due to automatic review settings March 4, 2026 08:50
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR changes the default value of the fit (auto-fit) setting in the llamacpp extension from true to false across all platforms. Previously, fit was enabled by default everywhere except macOS, which had a dedicated code path to override it to false. This PR makes the behavior consistent and "opt-in" by disabling it globally and removing the platform-specific override code.

Changes:

  • Default value for fit in settings.json changed from true to false
  • Removed the macOS-specific if (IS_MAC) block that overrode fit to false at runtime
  • Minor whitespace formatting fix on the cfg.fit migration line (if(if ()

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
extensions/llamacpp-extension/settings.json Sets the default fit checkbox value to false instead of true
extensions/llamacpp-extension/src/index.ts Removes the macOS-only fit override block; fixes whitespace on the migration check

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@louis-jan louis-jan requested review from Vanalite and urmauur March 4, 2026 08:55
@github-actions
Copy link
Contributor

github-actions bot commented Mar 4, 2026

Barecheck - Code coverage report

Total: 22.25%

Your code coverage diff: 0.00% ▴

✅ All code changes are covered

@louis-jan louis-jan merged commit cdf55b5 into main Mar 4, 2026
22 checks passed
@louis-jan louis-jan deleted the fix/disable-auto-fit-by-default branch March 4, 2026 09:31
@github-project-automation github-project-automation bot moved this to QA in Jan Mar 4, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: QA

Development

Successfully merging this pull request may close these issues.

3 participants