We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 793be28 commit d172b5eCopy full SHA for d172b5e
src/core/tools/ApplyPatchTool.ts
@@ -452,7 +452,7 @@ export class ApplyPatchTool extends BaseTool<"apply_patch"> {
452
override async handlePartial(task: Task, block: ToolUse<"apply_patch">): Promise<void> {
453
const patch: string | undefined = block.params.patch
454
const candidateRelPath = this.extractFirstPathFromPatch(patch)
455
- const fallbackRelPath = task.cwd
+ const fallbackRelPath = ""
456
const resolvedRelPath = candidateRelPath ?? fallbackRelPath
457
const absolutePath = path.resolve(task.cwd, resolvedRelPath)
458
0 commit comments