tweaks
This commit is contained in:
parent
bb5fc9624a
commit
f97dfba3f6
2 changed files with 14 additions and 5 deletions
|
|
@ -88,7 +88,7 @@ class RunTerminalCommandStep(Step):
|
|||
return f"Ran the terminal command {self.command}."
|
||||
|
||||
async def run(self, sdk: ContinueSDK):
|
||||
await sdk.wait_for_user_confirmation(f"Run the terminal command {self.command}?")
|
||||
await sdk.wait_for_user_confirmation(f"Run the following terminal command?\n\n```bash\n{self.command}\n```")
|
||||
await sdk.run(self.command)
|
||||
|
||||
|
||||
|
|
@ -201,7 +201,16 @@ class ChatWithFunctions(Step):
|
|||
summary=f"Ran function {func_name}"
|
||||
))
|
||||
last_function_called_index_in_history = sdk.history.current_index + 1
|
||||
await sdk.run_step(step_name_step_class_map[func_name](
|
||||
**fn_call_params))
|
||||
self.description += f"`Running function {func_name}`\n\n"
|
||||
step_to_run = step_name_step_class_map[func_name](
|
||||
**fn_call_params)
|
||||
|
||||
if func_name == "AddFileStep":
|
||||
step_to_run.hide = True
|
||||
self.description += f"\nAdded file `{func_args['filename']}`"
|
||||
elif func_name == "AddDirectoryStep":
|
||||
step_to_run.hide = True
|
||||
self.description += f"\nAdded directory `{func_args['directory_name']}`"
|
||||
else:
|
||||
self.description += f"\n`Running function {func_name}`\n\n"
|
||||
await sdk.run_step(step_to_run)
|
||||
await sdk.update_ui()
|
||||
|
|
|
|||
|
|
@ -388,7 +388,7 @@ function GUI(props: GUIProps) {
|
|||
/>
|
||||
);
|
||||
})}
|
||||
{/* {waitingForSteps && <Loader></Loader>} */}
|
||||
{waitingForSteps && <Loader></Loader>}
|
||||
|
||||
<div>
|
||||
{userInputQueue.map((input) => {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue