lean-ctx icon indicating copy to clipboard operation
lean-ctx copied to clipboard

bug: dashboard tool profile 'lean' not recognised — reverts to power + settings page timeout

Open ITFinesse opened this issue 5 months ago • 2 comments

lean-ctx version: v3.8.7

OS: Windows

AI tool: VS Code

What happened:

Issue 1 — Tool profile 'lean' not recognised

In the dashboard (http://localhost:3333/#context/settings), selecting Tool profile = Lean immediately reverts back to Power.

Terminal warning:

2026-06-16T00:08:29.034256Z  WARN lean_ctx::core::tool_profiles: Unknown tool_profile 'lean' in config, using default

The UI exposes four options — Minimal / Standard / Power / Lean — but lean is not recognised by the runtime config loader and falls back to power.

Issue 2 — Settings page timeout

Navigating to http://localhost:3333/#context/settings timed out on load. The page eventually loaded after a couple of minutes.

What you expected:

  1. Selecting lean in the dashboard should persist and be accepted by the runtime, or the UI should not offer it as an option if it is not a valid value.
  2. The settings page should load promptly without a timeout.

ITFinesse avatar Jun 16 '26 00:06 ITFinesse

Fixed on main in 3e81c463ab.

lean/lazy/reset are now understood everywhere as the unpin sentinel (centralised in tool_profiles::is_unpinned_alias): the loader self-heals instead of logging "Unknown tool_profile 'lean'" and silently falling back to Power, and the dashboard reports and round-trips Lean (toggle labelled "Lean (default)").

Separately, the settings-page timeout: route handlers ran on the small async pool, so one slow endpoint could starve a trivial GET /api/settings. Handlers now run on the blocking thread pool and any handler crossing 1s is logged.

Will be closed with the next release.

yvgude avatar Jun 16 '26 13:06 yvgude

Fixed in v3.8.8. Selecting the Lean profile no longer reverts to Power (the loader self-heals the unpin sentinel), and route handlers now run on the blocking pool so a slow endpoint can't starve a trivial GET /api/settings. Thanks for the report!

Release: https://github.com/yvgude/lean-ctx/releases/tag/v3.8.8

yvgude avatar Jun 17 '26 00:06 yvgude