diff options
| author | Agent <agent@claudomator> | 2026-07-09 19:53:26 +0000 |
|---|---|---|
| committer | Agent <agent@claudomator> | 2026-07-09 19:53:26 +0000 |
| commit | 65b96c0dc82e011bac18b24cff197fb16963d3d2 (patch) | |
| tree | ecf9ba45ced8e12af54c3b91f92dd231ca60b310 /internal/task/currentattempt.go | |
| parent | a90ac76f3ccf0bf1259b7ef45e5f331d2b4ec26f (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.go | 2 |
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 } |
