From 173ac8965bc75d871545724a7bc30a61fd621285 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Wed, 5 Nov 2025 01:30:22 +0000 Subject: [PATCH 1/2] Initial plan From 0bb2f6ab6314c9bd075d9ca596084453395297cf Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Wed, 5 Nov 2025 01:34:19 +0000 Subject: [PATCH 2/2] fix: correct get_changed_files() return value handling in mcp_server.py Co-authored-by: royisme <350731+royisme@users.noreply.github.com> --- mcp_server.py | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/mcp_server.py b/mcp_server.py index b5f7a41..6626a17 100644 --- a/mcp_server.py +++ b/mcp_server.py @@ -926,12 +926,23 @@ async def code_graph_ingest_repo( if ctx: await ctx.info("Using incremental mode - detecting changed files") - changed_files = git_utils.get_changed_files( + changed_files_result = git_utils.get_changed_files( repo_path, since_commit=since_commit, include_untracked=True ) - changed_files_count = len(changed_files) + + if not changed_files_result.get("success"): + return { + "success": False, + "task_id": task_id, + "status": "failed", + "error": changed_files_result.get("error", "Failed to get changed files"), + "mode": "incremental" + } + + changed_files = changed_files_result.get("changed_files", []) + changed_files_count = changed_files_result.get("count", 0) if changed_files_count == 0: return {