[A2A] Disable checkpointing if git is not installed (#16896)

This commit is contained in:
Coco Sheng
2026-01-20 11:38:38 -05:00
committed by GitHub
parent 166e04a8dd
commit 79076d1d52
5 changed files with 133 additions and 10 deletions

View File

@@ -575,7 +575,10 @@ export class Task {
EDIT_TOOL_NAMES.has(request.name),
);
if (restorableToolCalls.length > 0) {
if (
restorableToolCalls.length > 0 &&
this.config.getCheckpointingEnabled()
) {
const gitService = await this.config.getGitService();
if (gitService) {
const { checkpointsToWrite, toolCallToCheckpointMap, errors } =