Skip to content

Commit d172b5e

Browse files
committed
fix(apply-patch): stabilize partial fallback path across platforms
1 parent 793be28 commit d172b5e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/core/tools/ApplyPatchTool.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -452,7 +452,7 @@ export class ApplyPatchTool extends BaseTool<"apply_patch"> {
452452
override async handlePartial(task: Task, block: ToolUse<"apply_patch">): Promise<void> {
453453
const patch: string | undefined = block.params.patch
454454
const candidateRelPath = this.extractFirstPathFromPatch(patch)
455-
const fallbackRelPath = task.cwd
455+
const fallbackRelPath = ""
456456
const resolvedRelPath = candidateRelPath ?? fallbackRelPath
457457
const absolutePath = path.resolve(task.cwd, resolvedRelPath)
458458

0 commit comments

Comments
 (0)