@@ -10,6 +10,7 @@ use agent_client_protocol::{
1010} ;
1111use codex_apply_patch:: StdFs ;
1212use tokio:: sync:: mpsc;
13+ use tracing:: warn;
1314
1415use crate :: ACP_CLIENT ;
1516
@@ -123,6 +124,9 @@ impl AcpFs {
123124impl codex_apply_patch:: Fs for AcpFs {
124125 fn read_to_string ( & self , path : & std:: path:: Path ) -> std:: io:: Result < String > {
125126 if !self . client_capabilities . lock ( ) . unwrap ( ) . fs . read_text_file {
127+ warn ! (
128+ "ACP FS read_to_string fallback to local fs for {path:?} (read_text_file disabled)"
129+ ) ;
126130 return StdFs . read_to_string ( path) ;
127131 }
128132 let ( tx, rx) = std:: sync:: mpsc:: channel ( ) ;
@@ -138,6 +142,7 @@ impl codex_apply_patch::Fs for AcpFs {
138142
139143 fn write ( & self , path : & std:: path:: Path , contents : & [ u8 ] ) -> std:: io:: Result < ( ) > {
140144 if !self . client_capabilities . lock ( ) . unwrap ( ) . fs . write_text_file {
145+ warn ! ( "ACP FS write fallback to local fs for {path:?} (write_text_file disabled)" ) ;
141146 return StdFs . write ( path, contents) ;
142147 }
143148 let ( tx, rx) = std:: sync:: mpsc:: channel ( ) ;
@@ -166,6 +171,7 @@ impl codex_core::codex::Fs for AcpFs {
166171 > ,
167172 > {
168173 if !self . client_capabilities . lock ( ) . unwrap ( ) . fs . read_text_file {
174+ warn ! ( "ACP FS file_buffer fallback to local fs for {path:?} (read_text_file disabled)" ) ;
169175 return StdFs . file_buffer ( path, limit) ;
170176 }
171177 let ( tx, rx) = tokio:: sync:: oneshot:: channel ( ) ;
0 commit comments