From af86de8add342e23ffd8ade6d53a0290c779cabc Mon Sep 17 00:00:00 2001 From: sjw1231 Date: Wed, 4 Nov 2026 12:07:45 +0800 Subject: [PATCH] test(snapshots): update apply_patch description in new scenarios Five recorded scenarios that arrived from master pin the previous apply_patch tool description; refresh their schema and prompt sidecars to the current text. Refs #7696 --- .../session/mcp-template-error/tool-schemas.expected.json | 4 ++-- snapshots/session/ptc-reset/system-prompt.expected.md | 4 ++-- .../session/ptc-script-imports/system-prompt.expected.md | 4 ++-- .../session/ptc-timeout-fallback/system-prompt.expected.md | 4 ++-- snapshots/session/ptc-timeout/system-prompt.expected.md | 4 ++-- 5 files changed, 10 insertions(+), 10 deletions(-) diff --git a/snapshots/session/mcp-template-error/tool-schemas.expected.json b/snapshots/session/mcp-template-error/tool-schemas.expected.json index 1533c2ec45..e3918380c7 100644 --- a/snapshots/session/mcp-template-error/tool-schemas.expected.json +++ b/snapshots/session/mcp-template-error/tool-schemas.expected.json @@ -2,13 +2,13 @@ "initial": [ { "name": "apply_patch", - "description": "Create, update, delete, or move UTF-8 text files with one Codex-style patch; prefer it over multiple edit calls when a change spans several files or separated regions.", + "description": "Create, update, delete, or move UTF-8 text files with one patch; prefer it over multiple edit calls when a change spans several files or separated regions.", "parameters": { "type": "object", "properties": { "input": { "type": "string", - "description": "Codex patch text: start with *** Begin Patch and end with *** End Patch. Use *** Add File: path with + lines; *** Update File: path, optionally followed by *** Move to: path, with @@ or @@ context and space-prefixed context, + added, or - removed lines; *** End of File anchors the last hunk to the file end. Use *** Delete File: path to delete. Paths are relative to the Session working directory." + "description": "Patch text: start with *** Begin Patch and end with *** End Patch. Use *** Add File: path with + lines; *** Update File: path, optionally followed by *** Move to: path, with @@ or @@ context and space-prefixed context, + added, or - removed lines; *** End of File anchors the last hunk to the file end. Use *** Delete File: path to delete. Paths are relative to the Session working directory." }, "sandbox_permissions": { "type": "string", diff --git a/snapshots/session/ptc-reset/system-prompt.expected.md b/snapshots/session/ptc-reset/system-prompt.expected.md index b78decfb49..9536d39cd8 100644 --- a/snapshots/session/ptc-reset/system-prompt.expected.md +++ b/snapshots/session/ptc-reset/system-prompt.expected.md @@ -54,9 +54,9 @@ Program-only SDK bindings: type JsonValue = null | boolean | number | string | JsonValue[] | { [key: string]: JsonValue } interface ToolArgsMap { - /** Create, update, delete, or move UTF-8 text files with one Codex-style patch; prefer it over multiple edit calls when a change spans several files or separated regions. */ + /** Create, update, delete, or move UTF-8 text files with one patch; prefer it over multiple edit calls when a change spans several files or separated regions. */ apply_patch: { - /** Codex patch text: start with *** Begin Patch and end with *** End Patch. Use *** Add File: path with + lines; *** Update File: path, optionally followed by *** Move to: path, with @@ or @@ context and space-prefixed context, + added, or - removed lines; *** End of File anchors the last hunk to the file end. Use *** Delete File: path to delete. Paths are relative to the Session working directory. */ + /** Patch text: start with *** Begin Patch and end with *** End Patch. Use *** Add File: path with + lines; *** Update File: path, optionally followed by *** Move to: path, with @@ or @@ context and space-prefixed context, + added, or - removed lines; *** End of File anchors the last hunk to the file end. Use *** Delete File: path to delete. Paths are relative to the Session working directory. */ input: string; /** The narrowest wider sandbox mode for a one-shot retry of the exact operation the sandbox just denied; the retry asks the user for approval. */ sandbox_permissions?: "workspace-write" | "danger-full-access"; diff --git a/snapshots/session/ptc-script-imports/system-prompt.expected.md b/snapshots/session/ptc-script-imports/system-prompt.expected.md index b78decfb49..9536d39cd8 100644 --- a/snapshots/session/ptc-script-imports/system-prompt.expected.md +++ b/snapshots/session/ptc-script-imports/system-prompt.expected.md @@ -54,9 +54,9 @@ Program-only SDK bindings: type JsonValue = null | boolean | number | string | JsonValue[] | { [key: string]: JsonValue } interface ToolArgsMap { - /** Create, update, delete, or move UTF-8 text files with one Codex-style patch; prefer it over multiple edit calls when a change spans several files or separated regions. */ + /** Create, update, delete, or move UTF-8 text files with one patch; prefer it over multiple edit calls when a change spans several files or separated regions. */ apply_patch: { - /** Codex patch text: start with *** Begin Patch and end with *** End Patch. Use *** Add File: path with + lines; *** Update File: path, optionally followed by *** Move to: path, with @@ or @@ context and space-prefixed context, + added, or - removed lines; *** End of File anchors the last hunk to the file end. Use *** Delete File: path to delete. Paths are relative to the Session working directory. */ + /** Patch text: start with *** Begin Patch and end with *** End Patch. Use *** Add File: path with + lines; *** Update File: path, optionally followed by *** Move to: path, with @@ or @@ context and space-prefixed context, + added, or - removed lines; *** End of File anchors the last hunk to the file end. Use *** Delete File: path to delete. Paths are relative to the Session working directory. */ input: string; /** The narrowest wider sandbox mode for a one-shot retry of the exact operation the sandbox just denied; the retry asks the user for approval. */ sandbox_permissions?: "workspace-write" | "danger-full-access"; diff --git a/snapshots/session/ptc-timeout-fallback/system-prompt.expected.md b/snapshots/session/ptc-timeout-fallback/system-prompt.expected.md index b78decfb49..9536d39cd8 100644 --- a/snapshots/session/ptc-timeout-fallback/system-prompt.expected.md +++ b/snapshots/session/ptc-timeout-fallback/system-prompt.expected.md @@ -54,9 +54,9 @@ Program-only SDK bindings: type JsonValue = null | boolean | number | string | JsonValue[] | { [key: string]: JsonValue } interface ToolArgsMap { - /** Create, update, delete, or move UTF-8 text files with one Codex-style patch; prefer it over multiple edit calls when a change spans several files or separated regions. */ + /** Create, update, delete, or move UTF-8 text files with one patch; prefer it over multiple edit calls when a change spans several files or separated regions. */ apply_patch: { - /** Codex patch text: start with *** Begin Patch and end with *** End Patch. Use *** Add File: path with + lines; *** Update File: path, optionally followed by *** Move to: path, with @@ or @@ context and space-prefixed context, + added, or - removed lines; *** End of File anchors the last hunk to the file end. Use *** Delete File: path to delete. Paths are relative to the Session working directory. */ + /** Patch text: start with *** Begin Patch and end with *** End Patch. Use *** Add File: path with + lines; *** Update File: path, optionally followed by *** Move to: path, with @@ or @@ context and space-prefixed context, + added, or - removed lines; *** End of File anchors the last hunk to the file end. Use *** Delete File: path to delete. Paths are relative to the Session working directory. */ input: string; /** The narrowest wider sandbox mode for a one-shot retry of the exact operation the sandbox just denied; the retry asks the user for approval. */ sandbox_permissions?: "workspace-write" | "danger-full-access"; diff --git a/snapshots/session/ptc-timeout/system-prompt.expected.md b/snapshots/session/ptc-timeout/system-prompt.expected.md index b78decfb49..9536d39cd8 100644 --- a/snapshots/session/ptc-timeout/system-prompt.expected.md +++ b/snapshots/session/ptc-timeout/system-prompt.expected.md @@ -54,9 +54,9 @@ Program-only SDK bindings: type JsonValue = null | boolean | number | string | JsonValue[] | { [key: string]: JsonValue } interface ToolArgsMap { - /** Create, update, delete, or move UTF-8 text files with one Codex-style patch; prefer it over multiple edit calls when a change spans several files or separated regions. */ + /** Create, update, delete, or move UTF-8 text files with one patch; prefer it over multiple edit calls when a change spans several files or separated regions. */ apply_patch: { - /** Codex patch text: start with *** Begin Patch and end with *** End Patch. Use *** Add File: path with + lines; *** Update File: path, optionally followed by *** Move to: path, with @@ or @@ context and space-prefixed context, + added, or - removed lines; *** End of File anchors the last hunk to the file end. Use *** Delete File: path to delete. Paths are relative to the Session working directory. */ + /** Patch text: start with *** Begin Patch and end with *** End Patch. Use *** Add File: path with + lines; *** Update File: path, optionally followed by *** Move to: path, with @@ or @@ context and space-prefixed context, + added, or - removed lines; *** End of File anchors the last hunk to the file end. Use *** Delete File: path to delete. Paths are relative to the Session working directory. */ input: string; /** The narrowest wider sandbox mode for a one-shot retry of the exact operation the sandbox just denied; the retry asks the user for approval. */ sandbox_permissions?: "workspace-write" | "danger-full-access";