Skip to content

Commit 8514f0d

Browse files
committed
Fixed ctrl C
1 parent c0bc124 commit 8514f0d

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

interpreter_1/interpreter.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -702,6 +702,8 @@ def chat(self):
702702
"> ",
703703
placeholder=placeholder,
704704
).strip()
705+
except KeyboardInterrupt:
706+
raise
705707
except:
706708
user_input = input("> ").strip()
707709
print()

scripts/install.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -180,12 +180,12 @@ else
180180
fi
181181

182182
# Offer shell integration
183-
info "Would you like to install shell integration? This allows you to use Open Interpreter directly from your shell - if you type an unrecognized command, it will be passed to Open Interpreter with context about your recent shell history. [y/N] "
183+
info "Would you like to install our experimental shell integration? This allows you to use your shell as a chatbox, with your shell history as context. [y/N] "
184184
read -r install_shell_integration
185185
if [[ "$install_shell_integration" =~ ^[Yy]$ ]]; then
186186
if command_exists interpreter-shell; then
187187
interpreter-shell
188-
info "Shell integration installed successfully! Restart your shell to activate it."
188+
info "Shell integration installed successfully! Restart your shell to activate it. Run interpreter-uninstall-shell to remove it."
189189
else
190190
error "Could not find interpreter-shell command. Please ensure Open Interpreter was installed correctly."
191191
fi

0 commit comments

Comments
 (0)