This commit is contained in:
Paul Gauthier 2024-04-28 12:38:25 -07:00
parent 1ccc83f097
commit ca6349069c

View file

@ -439,6 +439,23 @@ class Coder:
except EOFError:
return
def run_loop(self):
inp = self.io.get_input(
self.root,
self.get_inchat_relative_files(),
self.get_addable_relative_files(),
self.commands,
)
if not inp:
return
if self.commands.is_command(inp):
return self.commands.run(inp)
self.check_for_file_mentions(inp)
return inp
def keyboard_interrupt(self):
now = time.time()
@ -494,23 +511,6 @@ class Coder:
]
self.cur_messages = []
def run_loop(self):
inp = self.io.get_input(
self.root,
self.get_inchat_relative_files(),
self.get_addable_relative_files(),
self.commands,
)
if not inp:
return
if self.commands.is_command(inp):
return self.commands.run(inp)
self.check_for_file_mentions(inp)
return inp
def fmt_system_prompt(self, prompt):
prompt = prompt.format(fence=self.fence)
return prompt