Skip to content

chore: bump harness timeout default to 3 hours - #739

Merged
max-sixty merged 1 commit into
mainfrom
chore/bump-timeout-3h-28301790978
Jun 28, 2026
Merged

max-sixty merged 1 commit into
mainfrom
chore/bump-timeout-3h-28301790978

Conversation

@tend-agent

Copy link
Copy Markdown
Collaborator

Bumps the default timeout_seconds from 3600 (60 min) to 10800 (3 hours) in both Claude harness actions (claude/action.yaml headless, claude-interactive/action.yaml PTY). Codex has no harness-level timeout (it relies on the GitHub job cap), so nothing changes there.

Requested by a maintainer in max-sixty/worktrunk#3260: worktrunk's nightly tend-ci-fix was repeatedly hitting the 60-minute cap while stress-testing a flaky, timing-sensitive integration test, surfacing as recurring "Bot temporarily unavailable" outages. The sessions weren't stuck — they were genuinely longer than the cap. Raising the ceiling lets these long sessions finish; short tasks finish well before the cap regardless, so the only cost is that a genuinely runaway session now burns up to 3 hours of subscription compute before the supervisor kills it.

The bump reaches adopters at the next tend release, since their workflows pin max-sixty/tend/<harness>@X.Y.Z; tend's own workflows pick it up the same way.

Note: this overlaps with #736, which caps the tend-ci-fix job at timeout-minutes: 120. With a 3-hour harness timeout, that 120-minute GitHub job cap would kill tend-ci-fix at 2 hours — before the harness timeout fires — which undercuts the increase for the exact workflow that motivated it. Worth reconciling: either close #736, or raise its cap to ≥180 min so the harness timeout is the effective gate. Your call.

Diff summary
  • claude/action.yaml: timeout_seconds default 3600 → 10800, description updated.
  • claude-interactive/action.yaml: same (kept in step with the headless pin).

Generator tests (255) pass — the action defaults aren't consumed by workflow generation, so there's no rendered-output change.

The headless and PTY Claude harnesses both defaulted to a 60-minute
(3600s) cap. Long-running sessions — notably tend-ci-fix stress-testing
a flaky/timing-sensitive failure — routinely need more than an hour and
were getting killed mid-work, surfacing as 'Bot temporarily unavailable'
outages. Short tasks finish well before the cap regardless, so raise the
default to 3 hours (10800s) for both Claude actions.

Co-Authored-By: Claude Opus 4.8 <[email protected]>
@max-sixty
max-sixty merged commit b981eb1 into main Jun 28, 2026
5 checks passed
@max-sixty
max-sixty deleted the chore/bump-timeout-3h-28301790978 branch June 28, 2026 05:45
@max-sixty max-sixty mentioned this pull request Jun 29, 2026
max-sixty added a commit that referenced this pull request Jun 29, 2026
Release 0.1.9. Version bump, lockfile sync, and CHANGELOG.

Ships 6 commits since 0.1.8:

### Improved
- `review` skill runs a `/code-review` pass alongside its manual checks,
effort scaled to how core the change is
([#741](#741))
- Default harness timeout rises from 60 minutes to 3 hours
([#739](#739))
- `running-in-ci` recheck guard catches a new directive, not just a
duplicate ([#738](#738))
- Both Claude harnesses update to claude-code 2.1.195
([#740](#740))

### Fixed
- Incremental PR review no longer leaks the base-merge delta (three-dot
diff + `git log --no-merges`)
([#735](#735))

### Documentation
- A composite-action comment drops a disproved security claim
([#737](#737))

The `0.1.9` tag is pushed after this merges.

Co-authored-by: Claude Opus 4.8 (1M context) <[email protected]>
max-sixty added a commit that referenced this pull request Jun 29, 2026
Re-stamps tend's own `tend-*.yaml` workflows from the just-released
0.1.9 generator. Moves the pinned action ref from
`max-sixty/tend/[email protected]` to `@0.1.9` across all eight workflows —
the only change.

Picks up the 0.1.9 action behavior on tend itself: 3-hour default
harness timeout ([#739](#739)) and
claude-code 2.1.195
([#740](#740)). Until this merges,
tend's deployed workflows lag the released generator.

Routine post-release regen (release skill step 11).

Co-authored-by: Claude Opus 4.8 (1M context) <[email protected]>
max-sixty added a commit that referenced this pull request Jul 23, 2026
Raises the default harness timeout from 3 hours (10800s, set in #739) to
5h50m (21000s) in both Claude harnesses (`claude/action.yaml` headless,
`claude-interactive/action.yaml` PTY).

GitHub Actions hard-caps hosted-runner job execution at 6 hours with no
override — confirmed against GitHub's own Actions limits docs, not
configurable higher even by support. That cap counts the whole job
(checkout, setup, the supervised Claude run, and the
reporting/log-upload steps after it), not just the run itself, so
`timeout_seconds` can't simply match GitHub's ceiling exactly: a session
that fills its full budget would then get killed uncleanly by GitHub
mid-teardown, before the harness's own SIGTERM-and-report path can run —
the same opaque "$0.00, 0 tokens" failure mode #739 was fixing in the
first place, just moved from 1 hour to 6.

21000s leaves a 10-minute buffer under the 6-hour ceiling. Pulled real
step-timing data from two worktrunk `tend-nightly` runs (a normal one
and the one that originally hit the 3600s cap) — actual overhead outside
the supervised run (checkout, `claude-setup`, and the composite action's
own internal setup/report steps) is ~2 minutes, so 10 minutes covers it
with margin for a slower run (cache miss, network variance) while
staying close to GitHub's ceiling.

Codex has no harness-level timeout (relies on the GitHub job cap
directly), so it's unaffected.

Verified: full generator test suite (275 tests) and `pre-commit run
--all-files` pass, including the check that keeps the two harnesses'
input defaults in sync.

> _This was written by Claude Code on behalf of max_
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants