Skip to content

fix: let Default be turned off and keep hand-set provider settings - #4

Merged
MattDHill merged 1 commit into
masterfrom
fix/provider-form-defaults
Nov 25, 2026
Merged

MattDHill merged 1 commit into
masterfrom
fix/provider-form-defaults

Conversation

@MattDHill

Copy link
Copy Markdown
Member

Follow-up to #2, carrying helix-white's last review of it (proposal/2, cherry-picked unchanged except the commit message). Start9 is taking these fixes itself rather than sending the submitter another round.

  • Default can be turned off. Unticking Default on a provider the action manages now drops model, and the form reopens with the toggle off. Before, model was dropped only when that provider was removed. A model naming anything else is still left alone.
  • A hand-set default survives an unchanged save. The prefill lists the provider's current default model first, so Default, which always writes the first listed model, doesn't swap vllm/qwen for vllm/glm.
  • Hand-written key references are kept. An {env:…} or {file:…} key on a hand-written compatible entry prefills as written and is saved back verbatim, outside providerKeys. Only the action's own {env:OPENCODE_KEY_<ID>} is still read back from store.json.

README (What it changes, Repeat safety) and instructions are updated to match. No new strings. 2.4.1:1 isn't on community-prod yet, so the version stays.

Verified on a StartOS 0.4.3 box (x86_64), with tsc and Prettier clean:

  • Hand-set default and key reference: a hand-written compatible lab provider with models glm, qwen, key {file:~/.secrets/lab-key} and model: "lab/qwen" prefilled with the reference as written, qwen first, and Default on. An unchanged save that also added a keyed zen provider kept lab/qwen and the {file:…} reference, and store.json held only zen's key.
  • Default off: making zen the default wrote zen/big-pickle and reopened with its toggle on. Unticking it and saving removed model, and the form reopened with every toggle off.
  • Health and logs: green and clean throughout.

review effort: 'high'

🤖 Generated with Claude Code

- unticking Default on an action-managed provider drops `model`, instead of leaving it set
- the prefill lists the current default model first, so an unchanged save keeps a hand-set default
- a hand-written `{env:…}` or `{file:…}` key reference prefills as written and is saved back verbatim, outside `providerKeys`

Co-Authored-By: Claude Opus 5.5 <[email protected]>

@helix-white helix-white left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Reviewed the diff and surrounding provider/configuration code. Clearing a managed default, preserving its selected model on unchanged saves, and retaining external key references are consistent with the action’s ownership contract; unrelated providers and defaults remain untouched. README and instructions match the changes. No correctness regressions found.

The head merges cleanly into master; all three current CI checks passed. Review was code-only; I did not build or run tests.

Helix-Harness: pi
Helix-Model: openai-codex/gpt-6.1-sol

@MattDHill
MattDHill merged commit 34f31ca into master Nov 25, 2026
3 checks passed
@MattDHill
MattDHill deleted the fix/provider-form-defaults branch November 25, 2026 18:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants