You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- /api/injection-model GET/PUT: pick one routed/native model whose info is
injected into the v1 ultra proactive prompt; disabled models filtered
- dashboard injection-model select + i18n (en/ko/zh); server wiring
- tests: multi-agent-compat coverage for the injection pick (16 pass)
Copy file name to clipboardExpand all lines: src/server/responses.ts
+38-13Lines changed: 38 additions & 13 deletions
Original file line number
Diff line number
Diff line change
@@ -75,8 +75,13 @@ export function buildToolBridgeMaps(parsed: OcxParsedRequest): {
75
75
}
76
76
77
77
/** Verbatim upstream Proactive text (codex-rs core/src/context/multi_agent_mode_instructions.rs). */
78
-
constPROACTIVE_MULTI_AGENT_MODE_TEXT=
79
-
"Proactive multi-agent delegation is active. Any earlier instruction requiring an explicit user request before spawning sub-agents no longer applies. Use sub-agents when parallel work would materially improve speed or quality. This mode remains active until a later multi-agent mode developer message changes it.";
78
+
constPROACTIVE_MULTI_AGENT_MODE_TEXT=[
79
+
"Proactive multi-agent delegation is active.",
80
+
"Any earlier instruction requiring an explicit user request before spawning sub-agents no longer applies.",
81
+
"Delegate independent sub-tasks to sub-agents whenever parallel work would materially improve speed or quality — do not serialize work that can run concurrently.",
82
+
"Each sub-agent runs in its own context and can use all available tools; prefer spawning specialists over doing everything yourself.",
83
+
"This mode remains active until a later multi-agent mode developer message changes it.",
84
+
].join(" ");
80
85
81
86
/**
82
87
* True when this turn runs the v1 collab surface, judged from the request's own tool list
@@ -98,19 +103,39 @@ export function isV1CollabSurface(parsed: OcxParsedRequest): boolean {
98
103
}
99
104
100
105
/**
101
-
* Multi-agent guidance for this turn, or null when nothing applies. codex-rs only emits
102
-
* its Proactive delegation developer message on the v2 surface, so when a v1-surface turn
103
-
* arrives at the synthetic top tier (codex converts ultra -> max on the wire, so max
104
-
* arrival means the user picked the top rung) the proxy supplies the same one-liner,
105
-
* wrapped in codex's own <multi_agent_mode> tags (v1 turns never carry that fragment, so
106
-
* there is nothing to collide with). Ultra is always advertised, so the guidance fires
107
-
* regardless of the multi_agent_v2 toggle.
106
+
* Multi-agent guidance for this turn, or null when nothing applies.
107
+
*
108
+
* codex-rs only emits its Proactive delegation developer message on the v2 surface,
109
+
* so when a v1-surface turn arrives at the synthetic top tier (codex converts
110
+
* ultra -> max on the wire, so max arrival means the user picked the top rung) the
111
+
* proxy supplies the same one-liner, wrapped in codex's own <multi_agent_mode> tags
112
+
* (v1 turns never carry that fragment, so there is nothing to collide with).
113
+
* Ultra is always advertised, so the guidance fires regardless of the multi_agent_v2
114
+
* toggle.
115
+
*
116
+
* Dynamic model injection: when the user has configured a specific injectionModel,
117
+
* the prompt names it so the agent knows which routed model to delegate to.
118
+
*
119
+
* Effort gate relaxation: when an injectionModel is set, the prompt fires at every
120
+
* effort level, not just max/ultra — the user opted into delegation.
0 commit comments