File tree Expand file tree Collapse file tree 1 file changed +10
-6
lines changed
crates/chat-cli/src/cli/chat/cli Expand file tree Collapse file tree 1 file changed +10
-6
lines changed Original file line number Diff line number Diff line change @@ -254,17 +254,21 @@ impl AgentSubcommand {
254254 sel
255255 } ,
256256 // Ctrl‑C -> Err(Interrupted)
257- Err ( dialoguer:: Error :: IO ( ref e) ) if e. kind ( ) == std:: io:: ErrorKind :: Interrupted => return Ok ( ChatState :: PromptUser {
258- skip_printing_tools : true ,
259- } ) ,
257+ Err ( dialoguer:: Error :: IO ( ref e) ) if e. kind ( ) == std:: io:: ErrorKind :: Interrupted => {
258+ return Ok ( ChatState :: PromptUser {
259+ skip_printing_tools : true ,
260+ } ) ;
261+ } ,
260262 Err ( e) => return Err ( ChatError :: Custom ( format ! ( "Failed to get scope selection: {e}" ) . into ( ) ) ) ,
261263 } ;
262264
263265 let scope_selection = match scope_selection {
264266 Some ( selection) => selection,
265- None => return Ok ( ChatState :: PromptUser {
266- skip_printing_tools : true ,
267- } ) ,
267+ None => {
268+ return Ok ( ChatState :: PromptUser {
269+ skip_printing_tools : true ,
270+ } ) ;
271+ } ,
268272 } ;
269273
270274 let is_global = scope_selection == 1 ;
You can’t perform that action at this time.
0 commit comments