@@ -102,10 +102,10 @@ def _remove(coder, file_path):
102102 coder .abs_read_only_fnames .remove (abs_path )
103103 removed = True
104104 if not removed :
105- coder .io .tool_output ("⚠️ File '{file_path}' not in context" )
105+ coder .io .tool_output (f "⚠️ File '{ file_path } ' not in context" )
106106 return f"File not in context: { file_path } "
107107 coder .recently_removed [rel_path ] = {"removed_at" : time .time ()}
108- coder .io .tool_output ("🗑️ Removed '{file_path}' from context" )
108+ coder .io .tool_output (f "🗑️ Removed '{ file_path } ' from context" )
109109 return f"Removed: { file_path } "
110110 except Exception as e :
111111 coder .io .tool_error (f"Error removing file '{ file_path } ': { str (e )} " )
@@ -117,21 +117,21 @@ def _editable(coder, file_path):
117117 try :
118118 abs_path = coder .abs_root_path (file_path )
119119 if abs_path in coder .abs_fnames :
120- coder .io .tool_output ("📝 File '{file_path}' is already editable" )
120+ coder .io .tool_output (f "📝 File '{ file_path } ' is already editable" )
121121 return f"Already editable: { file_path } "
122122 if not os .path .isfile (abs_path ):
123- coder .io .tool_output ("⚠️ File '{file_path}' not found on disk" )
123+ coder .io .tool_output (f "⚠️ File '{ file_path } ' not found on disk" )
124124 return f"File not found: { file_path } "
125125 was_read_only = False
126126 if abs_path in coder .abs_read_only_fnames :
127127 coder .abs_read_only_fnames .remove (abs_path )
128128 was_read_only = True
129129 coder .abs_fnames .add (abs_path )
130130 if was_read_only :
131- coder .io .tool_output ("📝 Moved '{file_path}' from read-only to editable" )
131+ coder .io .tool_output (f "📝 Moved '{ file_path } ' from read-only to editable" )
132132 return f"Made editable (moved): { file_path } "
133133 else :
134- coder .io .tool_output ("📝 Added '{file_path}' directly to editable context" )
134+ coder .io .tool_output (f "📝 Added '{ file_path } ' directly to editable context" )
135135 return f"Made editable (added): { file_path } "
136136 except Exception as e :
137137 coder .io .tool_error (f"Error making editable '{ file_path } ': { str (e )} " )
@@ -154,7 +154,7 @@ def _create(coder, file_path):
154154
155155 # Check if file already exists
156156 if os .path .exists (abs_path ):
157- coder .io .tool_output ("⚠️ File '{file_path}' already exists" )
157+ coder .io .tool_output (f "⚠️ File '{ file_path } ' already exists" )
158158 return f"File already exists: { file_path } "
159159
160160 # Create parent directories if they don't exist
@@ -167,7 +167,7 @@ def _create(coder, file_path):
167167 # Add the file to editable context
168168 coder .abs_fnames .add (abs_path )
169169
170- coder .io .tool_output ("📝 Created '{file_path}' and made it editable" )
170+ coder .io .tool_output (f "📝 Created '{ file_path } ' and made it editable" )
171171 return f"Created and made editable: { file_path } "
172172
173173 except Exception as e :
0 commit comments