Skip to content

Commit 25c6b1e

Browse files
committed
feat(ui): add /history to welcome banner and update input handling
1 parent 297ee50 commit 25c6b1e

2 files changed

Lines changed: 5 additions & 1 deletion

File tree

shello_cli/ui/ui_renderer.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -202,6 +202,9 @@ def display_help():
202202
commands_table.add_row("/quit", "Exit the application")
203203
commands_table.add_row("/exit", "Exit the application")
204204
commands_table.add_row("/new", "Start a new conversation")
205+
commands_table.add_row("/history", "Browse and resume past sessions")
206+
commands_table.add_row("/history clear", "Delete all session history")
207+
commands_table.add_row("/history delete", "Delete a specific session")
205208
commands_table.add_row("/switch", "Switch between AI providers")
206209
commands_table.add_row("/update", "Update to the latest version")
207210
commands_table.add_row("/about", "Show information about Shello CLI")
@@ -277,6 +280,7 @@ def print_welcome_banner(user_info, version):
277280
console.print(" [bold bright_blue]/about[/bold bright_blue] [bright_black]─[/bright_black] [white]Show information about Shello CLI[/white]")
278281
console.print(" [bold bright_blue]/quit[/bold bright_blue] [bright_black]─[/bright_black] [white]Exit the application[/white]")
279282
console.print(" [bold bright_blue]/new[/bold bright_blue] [bright_black]─[/bright_black] [white]Start a new conversation[/white]")
283+
console.print(" [bold bright_blue]/history[/bold bright_blue] [bright_black]─[/bright_black] [white]Browse and resume past sessions[/white]")
280284
console.print(" [bold bright_blue]/switch[/bold bright_blue] [bright_black]─[/bright_black] [white]Switch between AI providers[/white]")
281285
console.print(" [bold bright_blue]/help[/bold bright_blue] [bright_black]─[/bright_black] [white]Show keyboard shortcuts and help[/white]")
282286
console.print(" [bold bright_blue]↑/↓[/bold bright_blue] [bright_black]─[/bright_black] [white]Navigate command history[/white]")

shello_cli/ui/user_input.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ class BAICompleter(Completer):
8181

8282
def __init__(self, history_obj=None):
8383
self.history = history_obj
84-
self.commands = ['/quit', '/exit', '/new', '/about', '/help']
84+
self.commands = ['/quit', '/exit', '/new', '/about', '/help', '/history']
8585
self.common_phrases = [
8686
'can you help me with',
8787
'how do I',

0 commit comments

Comments
 (0)