Codex asks its own model, through its ChatGPT sign-in, for each thread's description (thread_description), even while the conversation runs on magpie's models. Settings › General gets "Codex thread descriptions" beside "Codex thread titles". It defaults to Codex's own, which sends the request as Codex sent it, or it can name one of magpie's models or a routing group. The answer is wrapped as description-only JSON. The titles setting is untouched. Usage and Routing show these requests under their own Description purpose. The setting is kept across unrelated Settings saves. There is no Off yet, because Codex's handling of an empty description hasn't been checked. This is a first slice of #742. Squashed from the PR and merged onto current main. Conflicts resolved: - codex_backend.go: the description branch comes after the title branch, ahead of main's subagent pick. - gateway.go: main's CC Switch #1301 comment above the compaction block is kept; the PR had shortened it. - app.js: the gateway-mode list of hidden rows takes the new row. - i18n.js and settings_keep_test.go: both sides kept. - purposes.js: regenerated with go generate ./internal/usage. Run on the merged tree: - gofmt -l is clean. - go vet passes on darwin, linux -tags nogui and windows; the builds on all three succeed. - go test -tags nogui passes for ./internal/gateway, ./internal/gui, ./internal/settings and ./internal/usage. - GUI, chromium and webkit: codex-titles, gateway-mode, purpose-filter, routing-purpose-state, gui-de, gui-ja, gui-zh-tw, i18n-keys, settings-general/-groups/-sections/-search and click-scroll: 118/118. Broken by hand: with the description branch removed from codexBackend and handle, TestCodexDescriptionsSetting, TestCodexDescriptionFallbackOnMagpie and TestNoDescription fail. Not tried: a real Codex thread_description request, and whether Codex's sidebar takes the answer.
92 lines
1.9 KiB
JavaScript
92 lines
1.9 KiB
JavaScript
// Code generated by go generate ./internal/usage; DO NOT EDIT.
|
|
const REQUEST_KINDS = {
|
|
"agent_job": {
|
|
"purpose": "kind:collab_spawn",
|
|
"name": "Subagent"
|
|
},
|
|
"ambient_suggestion_safety": {
|
|
"purpose": "kind:ambient_suggestions",
|
|
"name": "Suggestions"
|
|
},
|
|
"ambient_suggestions": {
|
|
"purpose": "kind:ambient_suggestions",
|
|
"name": "Suggestions"
|
|
},
|
|
"auto_review": {
|
|
"purpose": "kind:guardian",
|
|
"name": "Approval check"
|
|
},
|
|
"collab_spawn": {
|
|
"purpose": "kind:collab_spawn",
|
|
"name": "Subagent"
|
|
},
|
|
"compact": {
|
|
"purpose": "kind:compact",
|
|
"name": "Compaction"
|
|
},
|
|
"guardian": {
|
|
"purpose": "kind:guardian",
|
|
"name": "Approval check"
|
|
},
|
|
"guardian_review": {
|
|
"purpose": "kind:guardian",
|
|
"name": "Approval check"
|
|
},
|
|
"luna_reserve": {
|
|
"purpose": "kind:luna_reserve",
|
|
"name": "Luna Reserve"
|
|
},
|
|
"memgen": {
|
|
"purpose": "kind:memory_consolidation",
|
|
"name": "Memory"
|
|
},
|
|
"memory": {
|
|
"purpose": "kind:memory_consolidation",
|
|
"name": "Memory"
|
|
},
|
|
"memory_consolidation": {
|
|
"purpose": "kind:memory_consolidation",
|
|
"name": "Memory"
|
|
},
|
|
"review": {
|
|
"purpose": "kind:review",
|
|
"name": "Review"
|
|
},
|
|
"routing": {
|
|
"purpose": "kind:routing",
|
|
"name": "Routing classifier"
|
|
},
|
|
"thread_description": {
|
|
"purpose": "kind:thread_description",
|
|
"name": "Description"
|
|
},
|
|
"thread_spawn": {
|
|
"purpose": "kind:collab_spawn",
|
|
"name": "Subagent"
|
|
},
|
|
"thread_title": {
|
|
"purpose": "kind:thread_title",
|
|
"name": "Title"
|
|
},
|
|
"thread_title_reconsideration": {
|
|
"purpose": "kind:thread_title",
|
|
"name": "Title"
|
|
},
|
|
"title": {
|
|
"purpose": "kind:thread_title",
|
|
"name": "Title"
|
|
},
|
|
"title_generation": {
|
|
"purpose": "kind:thread_title",
|
|
"name": "Title"
|
|
},
|
|
"vision": {
|
|
"purpose": "kind:vision",
|
|
"name": "Image description"
|
|
},
|
|
"web_search": {
|
|
"purpose": "kind:web_search",
|
|
"name": "Web search"
|
|
}
|
|
};
|