From 2532fef7a1c5d1c8caaabafe912ea23cc1d8eae1 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Tue, 10 Mar 2026 05:38:42 +0000 Subject: [PATCH 1/2] Initial plan From a8060d672553004f717344c9e73340d5e9598c9d Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Tue, 10 Mar 2026 05:48:26 +0000 Subject: [PATCH 2/2] Fix: add max-patch-size to tools.repo-memory JSON schema Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com> --- pkg/parser/schemas/main_workflow_schema.json | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/pkg/parser/schemas/main_workflow_schema.json b/pkg/parser/schemas/main_workflow_schema.json index 4501c1d9695..234190a411e 100644 --- a/pkg/parser/schemas/main_workflow_schema.json +++ b/pkg/parser/schemas/main_workflow_schema.json @@ -3660,6 +3660,12 @@ "maximum": 1000, "description": "Maximum file count per commit (default: 100)" }, + "max-patch-size": { + "type": "integer", + "minimum": 1, + "maximum": 102400, + "description": "Maximum total patch size in bytes (default: 10240 = 10KB, max: 102400 = 100KB). The total size of the git diff must not exceed this value." + }, "description": { "type": "string", "description": "Optional description for the memory that will be shown in the agent prompt" @@ -3745,6 +3751,12 @@ "maximum": 1000, "description": "Maximum file count per commit (default: 100)" }, + "max-patch-size": { + "type": "integer", + "minimum": 1, + "maximum": 102400, + "description": "Maximum total patch size in bytes (default: 10240 = 10KB, max: 102400 = 100KB). The total size of the git diff must not exceed this value." + }, "description": { "type": "string", "description": "Optional description for this memory that will be shown in the agent prompt"