summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--continuedev/src/continuedev/core/autopilot.py4
-rw-r--r--extension/package-lock.json4
-rw-r--r--extension/package.json2
3 files changed, 5 insertions, 5 deletions
diff --git a/continuedev/src/continuedev/core/autopilot.py b/continuedev/src/continuedev/core/autopilot.py
index 0b296432..a3dd854e 100644
--- a/continuedev/src/continuedev/core/autopilot.py
+++ b/continuedev/src/continuedev/core/autopilot.py
@@ -247,7 +247,7 @@ class Autopilot(ContinueBaseModel):
try:
observation = await step(self.continue_sdk)
except Exception as e:
- if self.history.timeline[index_of_history_node].deleted:
+ if index_of_history_node >= len(self.history.timeline) or self.history.timeline[index_of_history_node].deleted:
# If step was deleted/cancelled, don't show error or allow retry
return None
@@ -304,7 +304,7 @@ class Autopilot(ContinueBaseModel):
self._step_depth -= 1
# Add observation to history, unless already attached error observation
- if not caught_error:
+ if not caught_error and index_of_history_node < len(self.history.timeline):
self.history.timeline[index_of_history_node].observation = observation
self.history.timeline[index_of_history_node].active = False
await self.update_subscribers()
diff --git a/extension/package-lock.json b/extension/package-lock.json
index abca8d98..981b5168 100644
--- a/extension/package-lock.json
+++ b/extension/package-lock.json
@@ -1,12 +1,12 @@
{
"name": "continue",
- "version": "0.0.235",
+ "version": "0.0.236",
"lockfileVersion": 2,
"requires": true,
"packages": {
"": {
"name": "continue",
- "version": "0.0.235",
+ "version": "0.0.236",
"license": "Apache-2.0",
"dependencies": {
"@electron/rebuild": "^3.2.10",
diff --git a/extension/package.json b/extension/package.json
index 15e7676d..b740cbd3 100644
--- a/extension/package.json
+++ b/extension/package.json
@@ -14,7 +14,7 @@
"displayName": "Continue",
"pricing": "Free",
"description": "The open-source coding autopilot",
- "version": "0.0.235",
+ "version": "0.0.236",
"publisher": "Continue",
"engines": {
"vscode": "^1.67.0"