summaryrefslogtreecommitdiff
path: root/internal/executor/executor.go
diff options
context:
space:
mode:
authorPeter Stone <thepeterstone@gmail.com>2026-03-26 06:36:32 +0000
committerPeter Stone <thepeterstone@gmail.com>2026-03-26 06:36:32 +0000
commit44521cc50e304b61c44b9a269a8239fd0fef49cd (patch)
treef4c09def154fce8de6803ad376aca6676bebc05e /internal/executor/executor.go
parentba6a83ae5a62c3e93d7a119c5d8e6690bee7c099 (diff)
fix: story branch push to bare repo; drain at 3 consecutive failures
createStoryBranch was pushing to 'origin' which doesn't exist — branches never landed in the bare repo so agents couldn't clone them. Now uses the project's RemoteURL (bare repo path) directly for fetch and push. Raise drain threshold from 2 to 3 consecutive failures to reduce false positives from transient errors. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Diffstat (limited to 'internal/executor/executor.go')
-rw-r--r--internal/executor/executor.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/internal/executor/executor.go b/internal/executor/executor.go
index 9c4aac1..d2b476a 100644
--- a/internal/executor/executor.go
+++ b/internal/executor/executor.go
@@ -379,7 +379,7 @@ func (p *Pool) handleRunResult(ctx context.Context, t *task.Task, exec *storage.
p.consecutiveFailures[agentType]++
failures := p.consecutiveFailures[agentType]
p.mu.Unlock()
- if failures >= 2 {
+ if failures >= 3 {
p.mu.Lock()
p.drained[agentType] = true
p.mu.Unlock()