Skip to content

Make built-in provider lists extensible - #1795

Merged
ZeroPoint95 merged 4 commits into
devfrom
zeropoint95/provider-list-extensible
Oct 8, 2026
Merged

ZeroPoint95 merged 4 commits into
devfrom
zeropoint95/provider-list-extensible

Conversation

@ZeroPoint95

@ZeroPoint95 ZeroPoint95 commented Oct 8, 2026 •

Copy link
Copy Markdown
Collaborator

Adding a built-in provider could hide OpenRouter at 40×10, break tests that pinned the catalog size or put Custom API last, and leave manual pages claiming a fixed provider count. The chooser now omits its key-hint footer before clipping a provider row. Catalog tests allow appended rows, pagination checks are count-agnostic, and the manual and guide describe every built-in provider without enumerating the catalog.

A manual guard rejects numeric and spelled-out catalog counts across both corpora and the guide. Counts of connection choices, such as “this provider offers two options: browser sign-in or an API key,” remain valid. Regression cases cover those descriptions alongside the existing positive catalog cases.

No provider is added by this PR; #1737 supplies ai& separately. The change entry is docs/changes/unreleased/1795-provider-list-extensible.md.

Validation:

  • A throwaway source appended to Vendored() produced ten chooser entries. At 40×10 all ten rows were visible, including OpenRouter, and the footer was absent for both first and last selections. Full scratch-catalog tests passed: tui3 65.168s; manual 2.136s. The temporary source and scratch test were removed.
  • Native and Windows builds, vet, laws, changelog validation, and touched-package race checks were independently repeated at parent 5d7979adc. The eleven tui3 race failures reproduced on unchanged dev 15edceb1d; manual and modelsource passed under race. The latest commit changes only the manual guard tests.
  • For the guard correction, go test -race -count=1 ./internal/manual passed in 18.926s, go vet ./internal/manual passed, and make test-laws passed. All prior positive guard cases still pass, and the connection-choice examples are accepted.
  • make build produced bin/codeaf; its version smoke check reports clean commit a93263a75, darwin/arm64, Go 1.27.0.

make pr-ready was omitted as requested. The PR is returned to draft pending independent review of the updated head.

@ZeroPoint95
ZeroPoint95 marked this pull request as ready for review October 8, 2026 14:05
@ZeroPoint95
ZeroPoint95 marked this pull request as draft October 8, 2026 14:44
@ZeroPoint95
ZeroPoint95 marked this pull request as ready for review October 8, 2026 14:52
@ZeroPoint95
ZeroPoint95 merged commit d8055f5 into dev Oct 8, 2026
7 checks passed
@ZeroPoint95
ZeroPoint95 deleted the zeropoint95/provider-list-extensible branch October 8, 2026 15:01
fenilmodi00 added a commit to fenilmodi00/CodeAF-aiand that referenced this pull request Oct 8, 2026
… row, rework the entry

dev stopped counting providers in prose (Agent-Field#1795), which is what conflicted.
commands.md and services.md take the dev side; modelsource_test.go keeps our
want list with aiand at index 5 and takes dev's at-least check. The change
entry follows the review: Connections category wording, the count bullet
dropped, and the body cut to a third led by what one aiand key buys.
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