Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 0 additions & 8 deletions src/clayde/tasks/plan.py
Original file line number Diff line number Diff line change
Expand Up @@ -285,10 +285,6 @@ def run_update(issue_url: str, phase: str) -> None:
log.warning("%s during plan update #%d", label, number)
accumulate_cost(issue_url, e.cost_eur)
span.set_attribute("plan.update_status", "timeout" if isinstance(e, InvocationTimeoutError) else "limit")
update_issue_state(issue_url, {
"status": IssueStatus.INTERRUPTED,
"interrupted_phase": IssueStatus.PRELIMINARY_PLANNING if phase == "preliminary" else IssueStatus.PLANNING,
})
return

total_cost = pop_accumulated_cost(issue_url) + result.cost_eur
Expand All @@ -301,10 +297,6 @@ def run_update(issue_url: str, phase: str) -> None:
except ValueError as e:
log.error("[%s: %s] Failed to parse update plan response: %s", issue_ref(owner, repo, number), issue.title, e)
span.set_attribute("plan.update_status", "parse_error")
update_issue_state(issue_url, {
"status": IssueStatus.INTERRUPTED,
"interrupted_phase": IssueStatus.PRELIMINARY_PLANNING if phase == "preliminary" else IssueStatus.PLANNING,
})
return

if updated_plan:
Expand Down
4 changes: 2 additions & 2 deletions tests/test_tasks_plan.py
Original file line number Diff line number Diff line change
Expand Up @@ -471,8 +471,8 @@ def test_usage_limit_accumulates_cost(self):
run_update("url", "preliminary")

mock_accum.assert_called_once_with("url", 0.30)
last_call = mock_update.call_args_list[-1]
assert last_call[0][1]["status"] == "interrupted"
# Status must NOT be changed — issue stays in awaiting_*_approval for retry
mock_update.assert_not_called()

def test_skips_when_no_new_comments(self):
old_comment = MagicMock()
Expand Down
Loading