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 | 4f3ceee573268fbe9db80fea372198523b5757a6 (patch) | |
tree | 8c7303431f6cf2d29db2e3eaf46b3eacdb29f788 /continuedev/src | |
parent | 22f6e4a01aed7955f608fcaa2198dc7da7902f3e (diff) | |
download | sncontinue-4f3ceee573268fbe9db80fea372198523b5757a6.tar.gz sncontinue-4f3ceee573268fbe9db80fea372198523b5757a6.tar.bz2 sncontinue-4f3ceee573268fbe9db80fea372198523b5757a6.zip |
show step details on toggle
Diffstat (limited to 'continuedev/src')
-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 |