@@ -293,33 +293,34 @@ async def chat(q: str) -> AsyncGenerator[StreamChunk, None]:
293293 while True :
294294 try :
295295 # Get user input (async)
296- user_input = await session .prompt_async ("You: " , default = "" )
297- if not user_input .strip ():
296+ user_input = await session .prompt_async ("You: " )
297+ user_input = user_input .strip ()
298+ if not user_input :
298299 continue
299300
300301 # Handle commands
301- if user_input . strip () == "/exit" :
302+ if user_input == "/exit" :
302303 break
303304
304- if user_input . strip () == "/new" :
305+ if user_input == "/new" :
305306 result = await fs_cli .reset ()
306307 print (f"{ result } \n Conversation reset\n " )
307308 continue
308309
309- if user_input . strip () == "/compact" :
310+ if user_input == "/compact" :
310311 result = await fs_cli .compact (force_compact = True )
311312 print (f"{ result } \n History compacted.\n " )
312313 continue
313314
314- if user_input . strip () == "/clear" :
315+ if user_input == "/clear" :
315316 fs_cli .messages .clear ()
316317 print ("History cleared.\n " )
317318 continue
318319
319- if user_input . strip () == "/help" :
320+ if user_input == "/help" :
320321 print ("\n Commands:" )
321- for command in self .commands :
322- print (f" { command } " )
322+ for command , description in self .commands . items () :
323+ print (f" { command } : { description } " )
323324 continue
324325
325326 # Stream processing state
0 commit comments