@@ -206,7 +206,7 @@ func (e *editTool) createNewFile(ctx context.Context, filePath, content string)
206 _, additions, removals := diff.GenerateDiff(
206 _, additions, removals := diff.GenerateDiff(
209− filePath,
209+ strings.TrimPrefix(filePath, config.Get().WorkingDir()),
211 rootDir := config.Get().WorkingDir()
211 rootDir := config.Get().WorkingDir()
212 permissionPath := filepath.Dir(filePath)
212 permissionPath := filepath.Dir(filePath)
@@ -318,7 +318,7 @@ func (e *editTool) deleteContent(ctx context.Context, filePath, oldString string
318 _, additions, removals := diff.GenerateDiff(
318 _, additions, removals := diff.GenerateDiff(
319 oldContent,
319 oldContent,
320 newContent,
320 newContent,
321− filePath,
321+ strings.TrimPrefix(filePath, config.Get().WorkingDir()),
324 rootDir := config.Get().WorkingDir()
324 rootDir := config.Get().WorkingDir()
@@ -441,7 +441,7 @@ func (e *editTool) replaceContent(ctx context.Context, filePath, oldString, newS
441 _, additions, removals := diff.GenerateDiff(
441 _, additions, removals := diff.GenerateDiff(
442 oldContent,
442 oldContent,
443 newContent,
443 newContent,
444− filePath,
444+ strings.TrimPrefix(filePath, config.Get().WorkingDir()),
446 rootDir := config.Get().WorkingDir()
446 rootDir := config.Get().WorkingDir()
447 permissionPath := filepath.Dir(filePath)
447 permissionPath := filepath.Dir(filePath)