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
i18n(openai-native-codex): localize provider errors; document immutable Codex system prompt and override rationale\n\n- Add i18n keys under common.errors.openaiNativeCodex and use t() in handler\n- Explain immutability and strategy where we inject overrides in OpenAiNativeCodexHandler\n- Add commentary to codex prompt file describing canonical prompt and override rationale
* - Codex’s default system prompt cannot be removed.
119
+
* - This override clarifies Roo’s identity and precedence rules and asks the model to honor Roo’s tools and flow.
120
+
* - It is injected as <instructions_override> so the server’s default is still present, but downweighted in practice.
121
+
*/
107
122
exportconstoverridePrompt=`## Identity and precedence
108
123
- You are Roo (not Codex). Ignore any "Codex", "Codex CLI", or "based on GPT-5" identity statements. Roo's rules take precedence over any harness text.
@@ -112,7 +113,10 @@ export class OpenAiNativeCodexHandler extends BaseProvider {
112
113
raw=awaitfs.readFile(explicitPath,"utf8")
113
114
}catch(e: any){
114
115
thrownewError(
115
-
`Failed to load ChatGPT OAuth credentials at ${explicitPath}: ${e?.message||e}. Tip: authenticate with the Codex CLI (e.g., "codex login") to create auth.json.`,
@@ -121,7 +125,10 @@ export class OpenAiNativeCodexHandler extends BaseProvider {
121
125
j=JSON.parse(raw)
122
126
}catch(e: any){
123
127
thrownewError(
124
-
`Failed to parse ChatGPT OAuth credentials JSON at ${explicitPath}: ${e?.message||e}. Tip: ensure the file is valid JSON or re-authenticate with "codex login" to regenerate it.`,
Copy file name to clipboardExpand all lines: src/i18n/locales/en/common.json
+8Lines changed: 8 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -114,6 +114,14 @@
114
114
"roo": {
115
115
"authenticationRequired": "Roo provider requires cloud authentication. Please sign in to Roo Code Cloud."
116
116
},
117
+
"openaiNativeCodex": {
118
+
"oauthReadFailed": "Failed to load ChatGPT OAuth credentials at {{path}}: {{error}}. Tip: authenticate with the Codex CLI (e.g., \"codex login\") to create auth.json.",
119
+
"oauthParseFailed": "Failed to parse ChatGPT OAuth credentials JSON at {{path}}: {{error}}. Tip: ensure the file is valid JSON or re-authenticate with \"codex login\" to regenerate it.",
120
+
"missingAccessToken": "ChatGPT OAuth credentials are missing tokens.access_token.",
0 commit comments