Recompute path in kanban dispatch error handler to avoid unbound local

Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
This commit is contained in:
zumayaaustin 2026-07-09 01:18:05 +00:00
parent 9e6ec12acd
commit 30d7366a31
1 changed files with 1 additions and 0 deletions

View File

@ -1081,6 +1081,7 @@ def _run_kanban_agent(task_id: str):
except Exception as e:
print(f"[kanban] dispatch for task {task_id} crashed: {e}")
try:
path = kanban_task_path(task_id)
task = json.loads(path.read_text())
task["status"] = "blocked"
task["block_reason"] = f"Dispatch crashed: {e}"[:300]