Repository navigation
feat: remember each model's settings in Set Model; 11669:1 → 11669:2 - #42
Conversation
A Custom model with its own context size and flags lost them once the user switched away: it came back as a downloaded entry with no fields, fixed at -c 8192 -ngl 999 and no extra flags, and every non-Custom submit cleared modelSelection.custom. Every preset and downloaded entry now carries Context size / GPU layers / Extra arguments, prefilled from a new store.json `modelSettings` list (one entry per model, matched by the weights it resolves to, falling back to modelSelection.custom for older stores). The running model is selectable so its settings can be changed in place; submitting it unchanged keeps its original -hf/-hff arguments, so serveArgs are identical and the daemon does not restart. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
helix-white
left a comment
There was a problem hiding this comment.
Approved. No correctness regressions found in the settings persistence, target matching, prefill, or argument-generation changes. The PR merges cleanly into master, and the SDK pin matches the latest published version (3.1.0).
Verification: npm install --ignore-scripts and npx tsc --noEmit passed. A temporary harness exercising the actual action code with mocked SDK/storage/cache dependencies passed for both CPU and GPU argument paths: per-model defaults and retention, Custom-to-downloaded matching, settings-entry deduplication, unchanged submissions preserving serveArgs, and the older-store Custom fallback. All five CI checks passed, including generic, NVIDIA, ROCm, and Vulkan builds.
I did not rebuild the package, install it, or test dashboard rendering or GPU execution; the harness checks action behavior, not those runtime surfaces.
Helix-Harness: pi
Helix-Model: openai-codex/gpt-6.1-sol
Problem
In Set Model, you pick Custom with a repo, context size and extra flags, then switch to another model. When you go back, the model shows up as a downloaded entry. That entry has no fields and runs at a fixed
-c 8192 -ngl 999with no extra flags. Every non-Custom submit also clearedmodelSelection.custom, so the only way back was to retype everything in Custom. Known limitation 9 in the README documented this.Change
settingsFields. They are prefilled from a newstore.jsonmodelSettingslist.targetFilethrough asameModelhelper extracted frommatchingPreset. A Customrepo:QUANTtherefore keeps its settings once it appears as a downloaded entry.modelSelection.custom, so no migration is needed.modelSelection.customis no longer cleared when you pick another entry.-hf/-hffarguments are kept. Unchanged settings then produce identicalserveArgs, and the deep-equal.const()inmaindoesn't restart.Verified (dev box, generic x86, sideloaded over
11669:1)npx tsc --noEmitandVARIANT=generic make arches ARCHES=x86both pass.11669:1: the running preset is the form's default and is no longer disabled. Every entry shows its fields.unsloth/Llama-3.2-1B-Instruct-GGUF:Q2_Kwith ctx 4096 and--temp 0.5, then switched to the 1B preset with ctx 2048. The form now shows the downloaded Q2_K entry prefilled with 4096 and--temp 0.5, the preset with 2048, and Custom still prefilled.-hf … -hff Llama-3.2-1B-Instruct-Q2_K.gguf -c 4096 --temp 0.5. I read that from the llama-server/proccmdline.-c 3072.repo:Q2_Krunning, re-submitting through its downloaded entry keeps-hf repo:Q2_Kand doesn't restart.modelSettingskeeps one entry per model.Not verified
-nglis only passed there, and the dev box is CPU-only.modelSelection.customfallback on a real11669:1store that had Custom selected: the dev box had a preset running before the update.start-cli, not in the UI.🤖 Generated with Claude Code