remind about suggesting shell commands

This commit is contained in:
Paul Gauthier 2024-08-21 09:08:08 -07:00
parent 454d0206bc
commit c351d76c2b
2 changed files with 10 additions and 1 deletions

View file

@ -170,4 +170,13 @@ To rename files which have been added to the chat, use shell commands.
{lazy_prompt}
ONLY EVER RETURN CODE IN A *SEARCH/REPLACE BLOCK*!
Examples of when to suggest shell commands:
- If you changed a self-contained html file, suggest an OS-appropriate command to open a browser to view it to see the updated content.
- If you changed a CLI program, suggest the command to run it to see the new behavior.
- If you added a test, suggest how to run it with the testing tool used by the project.
- Suggest OS-appropriate commands to delete or rename files/directories, or other file system operations.
- Suggest commands to install needed dependencies.
- Etc.
"""

View file

@ -333,7 +333,7 @@ class InputOutput:
log_file.write(content + "\n")
def user_input(self, inp, log_only=True):
if not log_only:
if not log_only and self.pretty:
style = dict(style=self.user_input_color) if self.user_input_color else dict()
self.console.print(Text(inp), **style)