diff options
author | Nate Sesti <sestinj@gmail.com> | 2023-06-28 17:56:42 -0700 |
---|---|---|
committer | Nate Sesti <sestinj@gmail.com> | 2023-06-28 17:56:42 -0700 |
commit | f06c6500dc730add3082ab8101f1e21ae5f9ac95 (patch) | |
tree | 080f34fc7c63b602df64bdbac7f8f9d23fd20853 /continuedev | |
parent | b25b737c50fc819d422d776ad25e7221fa18b884 (diff) | |
download | sncontinue-f06c6500dc730add3082ab8101f1e21ae5f9ac95.tar.gz sncontinue-f06c6500dc730add3082ab8101f1e21ae5f9ac95.tar.bz2 sncontinue-f06c6500dc730add3082ab8101f1e21ae5f9ac95.zip |
fix steps not running after a prev cancelled step
Diffstat (limited to 'continuedev')
-rw-r--r-- | continuedev/src/continuedev/core/autopilot.py | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/continuedev/src/continuedev/core/autopilot.py b/continuedev/src/continuedev/core/autopilot.py index 3b2b65db..7d149e7e 100644 --- a/continuedev/src/continuedev/core/autopilot.py +++ b/continuedev/src/continuedev/core/autopilot.py @@ -139,13 +139,14 @@ class Autopilot(ContinueBaseModel): return None # If a parent step is deleted/cancelled, don't run this step - last_depth = self._step_depth - i = self.history.current_index - while i >= 0 and self.history.timeline[i].depth == last_depth - 1: - if self.history.timeline[i].deleted: - return None - last_depth = self.history.timeline[i].depth - i -= 1 + # TODO: This was problematic because when running a step after deleting one, it seemed to think that was the parent + # last_depth = self._step_depth + # i = self.history.current_index + # while i >= 0 and self.history.timeline[i].depth == last_depth - 1: + # if self.history.timeline[i].deleted: + # return None + # last_depth = self.history.timeline[i].depth + # i -= 1 capture_event(self.continue_sdk.ide.unique_id, 'step run', { 'step_name': step.name, 'params': step.dict()}) |