summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNate Sesti <sestinj@gmail.com>2023-06-28 17:56:42 -0700
committerNate Sesti <sestinj@gmail.com>2023-06-28 17:56:42 -0700
commit0db64515d5685ec8a6d9a14092a5418f60ee1d39 (patch)
tree39777bf219930b683ddf7724d591e99b3bab6a20
parent2f3d490d52aa3b87a3b6f9c28235b94e9d5d23da (diff)
downloadsncontinue-0db64515d5685ec8a6d9a14092a5418f60ee1d39.tar.gz
sncontinue-0db64515d5685ec8a6d9a14092a5418f60ee1d39.tar.bz2
sncontinue-0db64515d5685ec8a6d9a14092a5418f60ee1d39.zip
fix steps not running after a prev cancelled step
-rw-r--r--continuedev/src/continuedev/core/autopilot.py15
-rw-r--r--extension/package-lock.json4
-rw-r--r--extension/package.json2
3 files changed, 11 insertions, 10 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()})
diff --git a/extension/package-lock.json b/extension/package-lock.json
index f8d85a19..9557336f 100644
--- a/extension/package-lock.json
+++ b/extension/package-lock.json
@@ -1,12 +1,12 @@
{
"name": "continue",
- "version": "0.0.83",
+ "version": "0.0.84",
"lockfileVersion": 2,
"requires": true,
"packages": {
"": {
"name": "continue",
- "version": "0.0.83",
+ "version": "0.0.84",
"license": "Apache-2.0",
"dependencies": {
"@electron/rebuild": "^3.2.10",
diff --git a/extension/package.json b/extension/package.json
index 4a623b74..fd18d494 100644
--- a/extension/package.json
+++ b/extension/package.json
@@ -14,7 +14,7 @@
"displayName": "Continue",
"pricing": "Free",
"description": "Accelerating software development with language models",
- "version": "0.0.83",
+ "version": "0.0.84",
"publisher": "Continue",
"engines": {
"vscode": "^1.74.0"