Skip to content

fix(executor): extend opencode self-review timeout#2420

Merged
alekspetrov merged 1 commit intoqf-studio:mainfrom
myagizmaktav:upstream-self-review-timeout
Apr 29, 2026
Merged

fix(executor): extend opencode self-review timeout#2420
alekspetrov merged 1 commit intoqf-studio:mainfrom
myagizmaktav:upstream-self-review-timeout

Conversation

@myagizmaktav
Copy link
Copy Markdown
Contributor

Summary

  • give OpenCode-backed self-review a longer timeout window than the default 2 minutes
  • keep the short 2 minute self-review timeout for other backends
  • add regression coverage for backend-specific self-review timeout selection

Verification

  • go test ./internal/executor/...

Closes #2416

@alekspetrov
Copy link
Copy Markdown
Collaborator

Thanks! The diff is much larger than a self-review timeout change should need (+114/−109 in runner.go). Looks like a rebase artifact or formatter pass. Could you rebase off main and resubmit with a minimal diff covering just: (a) backend-aware self-review timeout selection, (b) the new test in runner_test.go? Happy to merge once the runner.go diff is scoped to the timeout logic.

Self-review uses a hardcoded 2-minute timeout. OpenCode runs are
genuinely slower than Claude Code (server-managed session, larger
streaming overhead), and the cap cancels review while the backend is
still working — surfaces as a false regression.

Add backend-aware selfReviewTimeout() helper: 10m for OpenCode, 2m
otherwise. Wire it into runSelfReview's context.WithTimeout.

Closes qf-studio#2416
@alekspetrov alekspetrov force-pushed the upstream-self-review-timeout branch from 23f90e0 to e0a5ab5 Compare April 29, 2026 20:51
@alekspetrov
Copy link
Copy Markdown
Collaborator

Rebased onto current main and force-pushed (was stale by ~v2.99 work). The previous +114/−109 in runner.go was gofmt churn against an older base plus removal of post-branch work. New diff is +49/−2: selfReviewTimeout() helper (10m OpenCode / 2m otherwise) wired into runSelfReview's context, plus 3 unit-test cases. Authorship preserved.

Will need workflow approval on the Checks tab to run CI on the new push.

Copy link
Copy Markdown
Collaborator

@alekspetrov alekspetrov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Backend-aware self-review timeout (10m OpenCode / 2m otherwise) with focused tests. Rebased onto current main.

@alekspetrov alekspetrov merged commit 5da685b into qf-studio:main Apr 29, 2026
4 checks passed
@codecov-commenter
Copy link
Copy Markdown

⚠️ Please install the 'codecov app svg image' to ensure uploads and comments are reliably processed by Codecov.

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

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.

OpenCode self-review phase times out before backend completes

3 participants