Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions docs/usage/terminal/magic-commands.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ title: Magic Commands

Magic commands can be used to control the interpreter's behavior in interactive mode:

- `%% [commands]`: Run commands in system shell
- `%% [commands]`: Run commands in system shell.
- `%verbose [true/false]`: Toggle verbose mode. Without arguments or with 'true', it enters verbose mode. With 'false', it exits verbose mode.
- `%reset`: Reset the current session
- `%reset`: Resets the current session's conversation.
- `%undo`: Remove previous messages and its response from the message history.
- `%save_message [path]`: Saves messages to a specified JSON path. If no path is provided, it defaults to 'messages.json'.
- `%load_message [path]`: Loads messages from a specified JSON path. If no path is provided, it defaults to 'messages.json'.
Expand Down
3 changes: 2 additions & 1 deletion interpreter/core/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -352,7 +352,8 @@ def is_active_line_chunk(chunk):

def reset(self):
self.computer.terminate() # Terminates all languages
self.__init__()
self.messages = []
self.last_messages_count = 0

def display_message(self, markdown):
# This is just handy for start_script in profiles.
Expand Down