Skip to content

feat(settings): probe the active provider, calm idle-service tests, context length for managed LM Studio - #157

Open
nixfred wants to merge 1 commit into
dbbaskette:mainfrom
nixfred:feat/settings-provider-aware
Open

feat(settings): probe the active provider, calm idle-service tests, context length for managed LM Studio#157
nixfred wants to merge 1 commit into
dbbaskette:mainfrom
nixfred:feat/settings-provider-aware

Conversation

@nixfred

@nixfred nixfred commented Aug 2, 2026

Copy link
Copy Markdown

Three Settings-view fixes that make the panel tell the truth about the running configuration. Found while running an ollama-managed install where every Test button was red on a perfectly healthy stack.

  1. Provider-aware Test + captions. The LLM Test button and the model-list caption now target the endpoint the pipeline actually uses (managed lm-studio → :1234, managed ollama → :11434, external → the lmStudioUrl field), mirroring the LMStudioClient wiring in main. Previously an ollama-managed setup showed ✗ connection refused against LM Studio's port while summaries worked fine.

  2. Idle ≠ broken. connection refused on a service the app lazily spawns (whisper-server always; the LLM in managed modes) now renders as ○ not running — starts on demand when needed instead of a red error. Genuinely wrong states (another service answering 404 on the port, timeouts) stay red.

  3. Context length for managed LM Studio. New llmContextLength setting (default 0 = model default, preserving current behavior) passed as --context-length when the supervisor auto-loads the model. Without it a respawned model comes up with its saved default context — often 4k — and silently truncates long transcripts. Exposed as a dropdown only when the LM Studio provider is active, with a warning about the RAM tradeoff.

Testing: supervisor tests extended (pass-through + default-0), settings-repo suite green, eslint + both tsconfigs clean, verified live on macOS 26 / M4 Max with both ollama and lm-studio providers.

🤖 Generated with Claude Code

https://claude.ai/code/session_01Fx2epy4XwaBS3S8Y5J7FX9

…ontext length for managed LM Studio

WHAT: three Settings-view fixes that make the panel tell the truth about
the running configuration.

1. The LLM Test button and model-list caption now target the endpoint the
   pipeline actually uses: managed lm-studio → :1234, managed ollama →
   :11434, external → the lmStudioUrl field. Previously a healthy
   ollama-managed setup showed a red 'connection refused' test against
   LM Studio's port.

2. 'Connection refused' on a lazily-spawned service (whisper-server
   always; the LLM in managed modes) now renders as a neutral
   '○ not running — starts on demand when needed' instead of a red
   error. Genuine problems (wrong port answering 404, timeouts) stay red.

3. New llmContextLength setting (default 0 = LM Studio's model default)
   passed as --context-length when the managed provider auto-loads the
   model. Without it, respawned models come up with the model's saved
   default context (often 4k) and silently truncate long transcripts.
   Exposed as a dropdown only when the LM Studio provider is active.

TESTED: supervisor tests extended (context pass-through + default-0
call), settings-repo tests green, eslint + tsc clean on both configs.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Fx2epy4XwaBS3S8Y5J7FX9
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.

1 participant