rm filetime assertions from patch tool

This commit is contained in:
Aiden Cline
2026-01-20 00:32:29 -06:00
parent 8b379329a6
commit 9706aaf552
2 changed files with 0 additions and 24 deletions

View File

@@ -2,7 +2,6 @@ import z from "zod"
import * as path from "path"
import * as fs from "fs/promises"
import { Tool } from "./tool"
import { FileTime } from "../file/time"
import { Bus } from "../bus"
import { FileWatcher } from "../file/watcher"
import { Instance } from "../project/instance"
@@ -96,8 +95,6 @@ export const ApplyPatchTool = Tool.define("apply_patch", {
throw new Error(`apply_patch verification failed: Failed to read file to update: ${filePath}`)
}
// Read file and update time tracking (like edit tool does)
await FileTime.assert(ctx.sessionID, filePath)
const oldContent = await fs.readFile(filePath, "utf-8")
let newContent = oldContent
@@ -203,11 +200,6 @@ export const ApplyPatchTool = Tool.define("apply_patch", {
break
}
// Update file time tracking
FileTime.read(ctx.sessionID, change.filePath)
if (change.movePath) {
FileTime.read(ctx.sessionID, change.movePath)
}
}
// Publish file change events