Files
magpie/internal
yetone a430d34ec3 gui: a custom provider given only a Gemini URL is added, not refused with "A base URL is needed" (#2201, anleyu0)
The editor's Add checked chat, anthropic, responses and decide for a new
custom provider's URL, but not gemini: with Gemini compatible picked,
the typed URL goes to body.gemini, so the check refused it though the
gateway (hasEndpoint) takes a provider with a Gemini URL alone.

Run:
- internal/gui/tests/provider-add-gemini.test.cjs (new): Gemini
  compatible picked, Add with no URL still says "A base URL is needed";
  with the URL typed it saves gemini=<url>, baseAPI gemini, and no other
  URL. en, zh, zh-TW, ja, de; Chromium and WebKit; 1100px and 420px.
  Red without the app.js change ("added: A base URL is needed").
- With provider-gemini, provider-add-models and add-sheet: 38/38 pass,
  again at the rebased head.

Run on the stack of #2204, #2208, #2206 and #2201 on 743fcc035 (the
same trees as pushed), sandbox HOME, private GOCACHE, go1.26.8:
- gofmt -l on the changed Go files: clean. go vet ./... on darwin,
  GOOS=linux -tags nogui and GOOS=windows: clean. go build . on all
  three: ok.
- go test -tags nogui ./...: 51 packages ok; internal/agent and
  internal/gateway hit the 10m default timeout at load ~200 (#2191).
  Rerun with -timeout 60m: agent ok (1205s); gateway ok but
  TestOTelFastRequestTranscriptDiscovery/true (#1811, the 50ms session
  window under load), which passes alone -count=3.
- go test -race -tags nogui ./internal/gateway -run
  'TestRemoteMagpie|TestVerify' and ./internal/provider -run
  'TestCachedCards': ok.

Not tried: the real app window; import links (importurl.go) take no
gemini= yet, a separate feature.
2026-10-15 00:54:03 +08:00
..
…
…
…
…