Files
magpie/internal/gateway/testdata/codex_alpha_search.json
T
yetone 01de489de1 search: a ChatGPT account searches for another model by the backend's own search (lucy_85908)
A third-party model in Codex (DeepSeek, MiniMax, ...) had its web
searches made by asking gpt-6-luna on the Codex account to search
through /responses. A ChatGPT account now searches by the ChatGPT
backend's /alpha/search, the request Codex's web.run sends by itself
with no model turn (codex-rs ext/web-search): one search_query, the
account's small model in "model", allowed_callers ["direct"], and
external_web_access from the client's web_search tool (#5018: Codex's
"cached" sends false; live by default). The output's pages are read by
their 80-dash rule and ref_id; the private-use citation marks are dropped.

Measured on a real Plus account (2026-11-03, token not refreshed): 151
alpha/search calls left the 5h window at the same percent, ~1.5-2.2s
each; 51 searches by gpt-6-luna took 0% -> 1% of it, 7-15s each,
~9-17k tokens in (40 of them: 414,585 in, 10,313 out). The backend
answered the same for any "model" (deepseek-v4 too) and any
max_output_tokens.

- Automatic (and searchInTurn) picks the backend's search for a ChatGPT
  account; Settings > Web search offers "<id>/@search" as "its web
  search". "<id>" and "<id>/<model>" saved before still search by that
  model, so a user's pick is unchanged.
- When the backend's search fails, the account's small model searches
  (codexSearchBy).
- Codex web.run's own search for a non-ChatGPT model (alphaSearchHere)
  and a Responses request's web_search tool pass their mode on.

Run at this head (rebased on origin/main), on mote:
- go test ./internal/gateway/... ./internal/gui/ ./internal/agent/
  -timeout 45m: gateway and agent ok; gui red only on
  TestMainWindowCorners/macOS_26_SDK (#3949, macOS 27 on mote).
  After the rebase: the gateway's search tests again ok.
- searcher-pick.test.cjs: 22/22, chromium + webkit, en/zh (+ the label
  is in zh, zh-TW, ja, de).
- gofmt -l clean; GOOS=linux go vet gateway, provider; GOOS=windows go
  vet gateway, gui.
- Whole GUI suite on the Linux box (wsl-run): not finished when pushed;
  its reds so far are WebKit pages this doesn't touch (add-provider,
  API key palette, Routing headers, click-scroll, Codex resets).

Broken by hand, each red: the Automatic switch (TestCodexSearchesWith
ItsCheapModel, TestChatGPTAccountSearchesByItsWebSearch), the
responses.go mode (TestResponsesWebSearchModeKept), the body's mode,
the fallback, and the picker option (searcher-pick).

Not tried: a real search through magpie in a sandbox (the request shape
was tried by hand against the backend); an account out of its
allowance (does alpha/search still answer?); the model fallback still
searches live when Codex asked cached.

Suggested by lucy_85908 on Discord.
2026-11-03 15:59:14 +08:00

31 lines
8.0 KiB
JSON

{
"encrypted_output": "gAAAAABq6X7S1KFurVRJMeXg1usNmFBum9Lacra4awB0FFVvnu4ZPFcfm53Fx6b_",
"output": "Go 1.26 is released - The Go Programming Language (https://golang.google.cn/blog/go1.26)\nciteturn0search0 [wordlim: 200] Published: 8 months ago; Crawled: today; Today the Go team is pleased to release Go 1.26.\n\n# Go 1.26 is released\n\nCarlos Amedee, on behalf of the Go team\n10 February 2026\n\nToday the Go team is pleased to release Go 1.26. You can find its binary archives and installers on the download page.\n\n## Language changes\n\nGo 1.26 introduces two significant refinements to the language syntax and type system.\n\nFirst, the built-in `new` function, which creates a new variable, now allows its operand to be an expression, specifying the initial value of the variable.\n\nA simple example of this change means that code such as this:\n \n `x := int64(300)\n ptr := &x\n `\n\nCan be simplified to:\n \n `ptr := new(int64(300))\n `\n\nSecond, generic types may now refer to themselves in their own type parameter list. This change simplifies the implementation of complex data structures and interfaces.\n\n## Performance improvements\n\nThe previously experimental Green Tea garbage collector is now enabled by default.\n\nThe baseline cgo overhead has been reduced by approximately 30%.\n--------------------------------------------------------------------------------\nGo 1.26 is released - The Go Programming Language (https://golang-org.appspot.com/go.dev/blog/go1.26)\nciteturn0search1 [wordlim: 200] Published: 8 months ago; Crawled: last week; Today the Go team is pleased to release Go 1.26.\n\n# Go 1.26 is released\n\nCarlos Amedee, on behalf of the Go team\n10 February 2026\n\nToday the Go team is pleased to release Go 1.26. You can find its binary archives and installers on the download page.\n\n## Language changes\n\nGo 1.26 introduces two significant refinements to the language syntax and type system.\n\nFirst, the built-in `new` function, which creates a new variable, now allows its operand to be an expression, specifying the initial value of the variable.\n\nA simple example of this change means that code such as this:\n \n `x := int64(300)\n ptr := &x\n `\n\nCan be simplified to:\n \n `ptr := new(int64(300))\n `\n\nSecond, generic types may now refer to themselves in their own type parameter list. This change simplifies the implementation of complex data structures and interfaces.\n\n## Performance improvements\n\nThe previously experimental Green Tea garbage collector is now enabled by default.\n\nThe baseline cgo overhead has been reduced by approximately 30%.\n\nThe compiler can now allocate the backing store for slices on the stack in more situations, which improves performance.\n\n## Tool improvements\n\nThe `go fix` command has been completely rewritten to use the Go analysis framework, and now includes a couple dozen “modernizers”, analyzers that suggest safe fixes to help your code take advantage of newer features of the language and standard library. It also includes the `inline` analyzer, which attempts to inline all calls to each function annotated with a `//go:fix inline` directive. Two upcoming blog posts will address these features in more detail.\n--------------------------------------------------------------------------------\nRelease History - The Go Programming Language (https://go.dev/doc/devel/release)\nciteturn0search2 [wordlim: 200] Crawled: today; Go 1.26.0 is a major release of Go. ... go1.26.7 (released 2026-08-19) includes fixes to the `net/http` package.\n\ngo1.27.2 (released 2026-10-08) includes security fixes to the `go` command, and the `crypto/tls`, `html/template`, `net/http`, `net/textproto`, and `os` packages, as well as bug fixes to the compiler, the linker, the runtime, the `cover` tool, the `go fix` command, vet, and the `compress/flate`, `crypto/mlkem`, `encoding/json`, `encoding/json/v2`, `net/http`, and `os` packages. See the Go 1.27.2 milestone on our issue tracker for details.\n\ngo1.27.3 (released 2026-10-19) includes security fixes to the `crypto/x509` package. See the Go 1.27.3 milestone on our issue tracker for details.\n\n## go1.26.0 (released 2026-02-10)\n\nGo 1.26.0 is a major release of Go. Read the Go 1.26 Release Notes for more information.\n\n### Minor revisions\n\ngo1.26.1 (released 2026-03-05) includes security fixes to the `crypto/x509`, `html/template`, `net/url`, and `os` packages, as well as bug fixes to the `go` command, the `go fix` command, the compiler, and the `os` and `reflect` packages. See the Go 1.26.1 milestone on our issue tracker for details.\n\ngo1.26.2 (released 2026-04-07) includes security fixes to the `go` command, the compiler, and the `archive/tar`, `crypto/tls`, `crypto/x509`, `html/template`, and `os` packages, as well as bug fixes to the `go` command, the `go fix` command, the compiler, the linker, the runtime, and the `net`, `net/http`, and `net/url` packages. See the Go 1.26.2 milestone on our issue tracker for details.\n\ngo1.26.3 (released 2026-05-07) includes security fixes to the `go` command, the `pack` tool, and the `html/template`, `net`, `net/http`, `net/http/httputil`, `net/mail`, and `syscall` packages, as well as bug fixes to the `go` command, the `go fix` command, the compiler, the linker, the runtime, and the `crypto/fips140`, `crypto/tls`, `go/types`, and `os` packages. See the Go 1.26.3 milestone on our issue tracker for details.\n\ngo1.26.4 (released 2026-06-02) includes security fixes to the `crypto/x509`, `mime`, and `net/textproto` packages, as well as bug fixes to the compiler, the runtime, the `go fix` command, and the `crypto/fips140` package. See the Go 1.26.4 milestone on our issue tracker for details.\n\ngo1.26.5 (released 2026-07-07) includes security fixes to the `crypto/tls` and `os` packages, as well as bug fixes to the compiler, the runtime, the `go` command, and the `net`, `os`, and `syscall` packages. See the Go 1.26.5 milestone on our issue tracker for details.\n\ngo1.26.6 (released 2026-08-13) includes security fixes to the `go` command, and the `crypto/tls`, `encoding/asn1`, `encoding/xml`, `html/template`, `net`, `net/http`, and `net/url` packages, as well as bug fixes to the compiler, the linker, the runtime, and the `crypto/tls` and `os` packages. See the Go 1.26.6 milestone on our issue tracker for details.\n\ngo1.26.7 (released 2026-08-19) includes fixes to the `net/http` package. See the Go 1.26.7 milestone on our issue tracker for details.\n\ngo1.26.8 (released 2026-09-01) includes fixes to cgo, the compiler, the runtime, and the `debug/elf` and `os` packages. See the Go 1.26.8 milestone on our issue tracker for details.\n\ngo1.26.9 (released 2026-10-08) includes security fixes to the `go` command, and the `crypto/tls`, `html/template`, `net/http`, `net/textproto`, and `os` packages, as well as bug fixes to the compiler, the linker, the runtime, vet, and the `crypto/mlkem`, `net/http`, and `os` packages. See the Go 1.26.9 milestone on our issue tracker for details.\n\ngo1.26.10 (released 2026-10-19) includes security fixes to the `crypto/x509` package. See the Go 1.26.10 milestone on our issue tracker for details.",
"results": [
{
"type": "text_result",
"domain": "golang.google.cn",
"ref_id": "turn0search0",
"snippet": "Today the Go team is pleased to release Go 1.26.",
"title": "Go 1.26 is released - The Go Programming Language",
"url": "https://golang.google.cn/blog/go1.26"
},
{
"type": "text_result",
"domain": "golang-org.appspot.com",
"ref_id": "turn0search1",
"snippet": "Today the Go team is pleased to release Go 1.26.",
"title": "Go 1.26 is released - The Go Programming Language",
"url": "https://golang-org.appspot.com/go.dev/blog/go1.26"
},
{
"type": "text_result",
"domain": "go.dev",
"ref_id": "turn0search2",
"snippet": "Go 1.26.0 is a major release of Go. ... go1.26.7 (released 2026-08-19) includes fixes to the `net/http` package.",
"title": "Release History - The Go Programming Language",
"url": "https://go.dev/doc/devel/release"
}
]
}