summaryrefslogtreecommitdiff
path: root/internal/task/currentattempt.go
diff options
context:
space:
mode:
authorAgent <agent@claudomator>2026-07-09 19:53:26 +0000
committerAgent <agent@claudomator>2026-07-09 19:53:26 +0000
commit65b96c0dc82e011bac18b24cff197fb16963d3d2 (patch)
treeecf9ba45ced8e12af54c3b91f92dd231ca60b310 /internal/task/currentattempt.go
parenta90ac76f3ccf0bf1259b7ef45e5f331d2b4ec26f (diff)
fix(task): add role check to CurrentAttempt so evaluators are not mistaken for fix attempts; also exclude .agent-home from git
Diffstat (limited to 'internal/task/currentattempt.go')
-rw-r--r--internal/task/currentattempt.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/internal/task/currentattempt.go b/internal/task/currentattempt.go
index 24eed10..924e9ea 100644
--- a/internal/task/currentattempt.go
+++ b/internal/task/currentattempt.go
@@ -42,7 +42,7 @@ func CurrentAttempt(store TaskLookup, anchorID string) (*Task, error) {
}
var next *Task
for _, d := range dependents {
- if d.ParentTaskID == current.ParentTaskID && len(d.DependsOn) == 1 && d.DependsOn[0] == current.ID {
+ if d.ParentTaskID == current.ParentTaskID && d.Agent.Role == current.Agent.Role && len(d.DependsOn) == 1 && d.DependsOn[0] == current.ID {
next = d
break
}