From c6fda3cf7d4556bb875ca9054e49e5b2f409c93b Mon Sep 17 00:00:00 2001 From: dileepyavan <52841896+dileepyavan@users.noreply.github.com> Date: Tue, 17 Feb 2026 16:32:08 -0800 Subject: [PATCH] Correcting the file name for gpt53codex files (#3808) * updating prompt for gpt-5.3 codex model with experimentation turned on * correcting the file name --- .../prompts/node/agent/allAgentPrompts.ts | 2 +- ...53CodexPrompt.tsx => gpt53CodexPrompt.tsx} | 19 +++++++++++-------- .../endpoint/common/chatModelCapabilities.ts | 6 +++--- 3 files changed, 15 insertions(+), 12 deletions(-) rename extensions/copilot/src/extension/prompts/node/agent/openai/{gtpt53CodexPrompt.tsx => gpt53CodexPrompt.tsx} (98%) diff --git a/extensions/copilot/src/extension/prompts/node/agent/allAgentPrompts.ts b/extensions/copilot/src/extension/prompts/node/agent/allAgentPrompts.ts index 7a6ad97bea0..ed16152ed01 100644 --- a/extensions/copilot/src/extension/prompts/node/agent/allAgentPrompts.ts +++ b/extensions/copilot/src/extension/prompts/node/agent/allAgentPrompts.ts @@ -11,9 +11,9 @@ import './openai/defaultOpenAIPrompt'; import './openai/gpt51CodexPrompt'; import './openai/gpt51Prompt'; import './openai/gpt52Prompt'; +import './openai/gpt53CodexPrompt'; import './openai/gpt5CodexPrompt'; import './openai/gpt5Prompt'; -import './openai/gtpt53CodexPrompt'; import './xAIPrompts'; import './zaiPrompts'; diff --git a/extensions/copilot/src/extension/prompts/node/agent/openai/gtpt53CodexPrompt.tsx b/extensions/copilot/src/extension/prompts/node/agent/openai/gpt53CodexPrompt.tsx similarity index 98% rename from extensions/copilot/src/extension/prompts/node/agent/openai/gtpt53CodexPrompt.tsx rename to extensions/copilot/src/extension/prompts/node/agent/openai/gpt53CodexPrompt.tsx index 2e86398f59b..cba7979f27d 100644 --- a/extensions/copilot/src/extension/prompts/node/agent/openai/gtpt53CodexPrompt.tsx +++ b/extensions/copilot/src/extension/prompts/node/agent/openai/gpt53CodexPrompt.tsx @@ -5,7 +5,7 @@ import { PromptElement, PromptSizing } from '@vscode/prompt-tsx'; import { ConfigKey, IConfigurationService } from '../../../../../platform/configuration/common/configurationService'; -import { isGtpt53Codex } from '../../../../../platform/endpoint/common/chatModelCapabilities'; +import { isGpt53Codex } from '../../../../../platform/endpoint/common/chatModelCapabilities'; import { IChatEndpoint } from '../../../../../platform/networking/common/networking'; import { IExperimentationService } from '../../../../../platform/telemetry/common/nullExperimentationService'; import { ToolName } from '../../../../tools/common/toolNames'; @@ -19,7 +19,7 @@ import { ApplyPatchInstructions, DefaultAgentPromptProps, detectToolCapabilities import { FileLinkificationInstructions } from '../fileLinkificationInstructions'; import { CopilotIdentityRulesConstructor, IAgentPrompt, PromptRegistry, ReminderInstructionsConstructor, SafetyRulesConstructor, SystemPrompt } from '../promptRegistry'; -class Gtpt53CodexPrompt extends PromptElement { +class Gpt53CodexPrompt extends PromptElement { constructor( props: DefaultAgentPromptProps, @IConfigurationService private readonly configurationService: IConfigurationService, @@ -34,6 +34,9 @@ class Gtpt53CodexPrompt extends PromptElement { if (isUpdated53CodexPromptEnabled) { return + + You are a coding agent running in VS Code. You are expected to be precise, safe, and helpful.
+
- Default to ASCII when editing or creating files. Only introduce non-ASCII or other Unicode characters when there is a clear justification and the file already uses them.
- Add succinct code comments that explain what is going on if code is not self-explanatory. You should not add comments like "Assigns the value to the variable", but a brief comment might be useful ahead of a complex code block that the user would otherwise have to spend time parsing out. Usage of these comments should be rare.
@@ -392,20 +395,20 @@ class Gtpt53CodexPrompt extends PromptElement { } } -class Gtpt53CodexPromptResolver implements IAgentPrompt { +class Gpt53CodexPromptResolver implements IAgentPrompt { static async matchesModel(endpoint: IChatEndpoint): Promise { - return isGtpt53Codex(endpoint); + return isGpt53Codex(endpoint); } static readonly familyPrefixes = []; resolveSystemPrompt(endpoint: IChatEndpoint): SystemPrompt | undefined { - return Gtpt53CodexPrompt; + return Gpt53CodexPrompt; } resolveReminderInstructions(endpoint: IChatEndpoint): ReminderInstructionsConstructor | undefined { - return Gtpt53CodexReminderInstructions; + return Gpt53CodexReminderInstructions; } resolveCopilotIdentityRules(endpoint: IChatEndpoint): CopilotIdentityRulesConstructor | undefined { @@ -417,7 +420,7 @@ class Gtpt53CodexPromptResolver implements IAgentPrompt { } } -export class Gtpt53CodexReminderInstructions extends PromptElement { +export class Gpt53CodexReminderInstructions extends PromptElement { async render(state: void, sizing: PromptSizing) { return <> You are an agent—keep going until the user's query is completely resolved before ending your turn. ONLY stop if solved or genuinely blocked.
@@ -432,4 +435,4 @@ export class Gtpt53CodexReminderInstructions extends PromptElement