Skip to content

fix(settings): keep preset provider endpoints fixed - #384

Merged
aitianshi merged 3 commits into
mainfrom
fix/settings-preset-endpoints
Nov 24, 2026
Merged

aitianshi merged 3 commits into
mainfrom
fix/settings-preset-endpoints

Conversation

@aitianshi

@aitianshi aitianshi commented Nov 24, 2026 •

Copy link
Copy Markdown
Collaborator

Closes #383

What

Official providers now use only their fixed protocol endpoints. Previously, Settings offered editable extra protocols on preset cards; the builder could accept those additions while a launched run discarded them (#331, #332). Preset cards now show only supported endpoints, read-only. Saved and environment overrides cannot extend presets, and saving an override is rejected with a direction to use Custom.

Custom retains all six editable protocol fields. Tests cover saving its endpoints, selecting judge protocols and URLs, and handing its named base and key to a run. This replaces the need for preset-record forwarding in #332; that PR should be updated and its original problem rechecked after this lands.

Touches

Backend provider registry and settings validation; Settings route; backend and route tests; provider documentation and generated settings example; UI evidence.

Before and after

OpenRouter card at the same 1280px viewport. Custom continues to expose all six editable protocol fields.

Before After
Before After

Verified

  • Route suite after merging current main: 658 tests in 68 modules pass.
  • Backend suite after merging current main: 2,855 tests in 173 modules; one OSWorld2 proxy timing failure under parallel load. Its full 36-test module passes on isolated rerun; no code in that module was changed. GitHub tests and PR judge both passed on db69d14.
  • Focused Settings/provider registry tests: 35 pass, including rejection and reporting of existing saved preset overrides.
  • Browser checks: OpenRouter and Custom cards at 390px and 1280px, light and dark; no page JavaScript errors or horizontal overflow. Expanded cards visually reviewed.
  • git diff --check passes.
  • Not verified: paid provider calls or a remote-host benchmark run.

Risk

Existing user-added preset endpoints stop affecting protocol selection. Users requiring those endpoints must create a Custom provider. Their stored settings are retained and reported as unsupported. Revert restores the old behavior.

Custom endpoint fields configure provider tests and judges; run relays continue forwarding agent paths below the base URL rather than rewriting them from those fields. That existing limitation is now documented. No preset configuration or secret is newly forwarded to a run.

@github-actions

Copy link
Copy Markdown

🟡 PR judge · 7 of 7 yes · #384 ↔ #383

Merge risk 🔴 MAJOR the judge's reading of the diff
Priority 🟠 HIGH the deepest path is app/nullius/providers.py
Question Verdict
Changes do what the issue asks · 4 of 4 criteria ✅ yes
Issue and pull request describe the same change ✅ yes
Description matches the diff, no more, no less ✅ yes
Diff stays in scope ✅ yes
Tests cover the change, or Verified says how ✅ yes
Docs follow the change ✅ yes
Risk named in the description ✅ yes
Before and after shown –
Acceptance criteria, 4 of 4 met
# Criterion Verdict
1 Preset cards show only fixed, read-only endpoints; Custom retains every editable protocol field. ✅ met
2 Saved and environment records cannot change preset fields or protocols; attempts to save overrides are rejected. ✅ met
3 Custom endpoint saving, judge endpoint selection, and launch base/key handoff remain covered by tests. ✅ met
4 Documentation states how to replace preset overrides and explains Custom run-relay path behavior. ✅ met
Checks the script runs itself, 4 of 4 pass
No machine attribution trailer in the commits or the description ✓
New code under app/, docs/, .github/ or .claude/ ✓
No Flask import under the backend package ✓
No key-shaped string in the diff ✓

@aitianshi
aitianshi merged commit 9615496 into main Nov 24, 2026
2 checks passed
@aitianshi
aitianshi deleted the fix/settings-preset-endpoints branch November 24, 2026 12:16
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.

Keep official provider endpoints fixed and reserve endpoint editing for Custom

1 participant