diff options
author | Nate Sesti <sestinj@gmail.com> | 2023-06-03 11:56:09 -0400 |
---|---|---|
committer | Nate Sesti <sestinj@gmail.com> | 2023-06-03 11:56:09 -0400 |
commit | fb4377a036eb2e6063e2c5b5e4882d079c883d5f (patch) | |
tree | cbcf8131a2584656ccaaa685b87c01e87aab76f8 /continuedev | |
parent | b2fbe075b5ba91636d643f88be1c04ea576e2622 (diff) | |
download | sncontinue-fb4377a036eb2e6063e2c5b5e4882d079c883d5f.tar.gz sncontinue-fb4377a036eb2e6063e2c5b5e4882d079c883d5f.tar.bz2 sncontinue-fb4377a036eb2e6063e2c5b5e4882d079c883d5f.zip |
show step details on toggle
Diffstat (limited to 'continuedev')
-rw-r--r-- | continuedev/src/continuedev/steps/core/core.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/continuedev/src/continuedev/steps/core/core.py b/continuedev/src/continuedev/steps/core/core.py index 0f513f3e..d7f7a307 100644 --- a/continuedev/src/continuedev/steps/core/core.py +++ b/continuedev/src/continuedev/steps/core/core.py @@ -43,7 +43,12 @@ class ShellCommandsStep(Step): cwd: str | None = None name: str = "Run Shell Commands" + _err_text: str | None = None + async def describe(self, models: Models) -> Coroutine[str, None, None]: + if self._err_text is not None: + return f"Error when running shell commands:\n```\n{self._err_text}\n```" + cmds_str = "\n".join(self.cmds) return (await models.gpt35()).complete(f"{cmds_str}\n\nSummarize what was done in these shell commands, using markdown bullet points:") @@ -58,6 +63,7 @@ class ShellCommandsStep(Step): # If it fails, return the error if err is not None and err != "": + self._err_text = err return TextObservation(text=err) return None |