Skip to content

Constrain OpenCode dispatch to relay worktrees#670

Merged
sungjunlee merged 1 commit into
mainfrom
codex/opencode-dispatch-worktree-prompt
May 31, 2026
Merged

Constrain OpenCode dispatch to relay worktrees#670
sungjunlee merged 1 commit into
mainfrom
codex/opencode-dispatch-worktree-prompt

Conversation

@sungjunlee
Copy link
Copy Markdown
Owner

Closes #620.

Summary

  • Pass --dir <relay-worktree> to opencode run and prepend a worktree-boundary prompt so OpenCode dispatch operates inside the relay worktree.
  • Run live dogfood helper scripts from absolute paths in this repository, so clean-base canaries execute current branch code against a temporary target checkout.
  • Update OpenCode executor and dispatch integration tests for the new argv/worktree contract.

Live dogfood evidence

Validation

  • node --test tests/relay-dispatch/scripts/executors.test.js tests/relay-dispatch/scripts/live-dogfood.test.js tests/relay-dispatch/scripts/docs-defaults.test.js
  • node --test tests/relay-dispatch/scripts/dispatch.test.js
  • node --test tests/relay-dispatch/scripts/*.test.js
  • node --test tests/skills-lint/scripts/*.test.js
  • git diff --check

@chatgpt-codex-connector
Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.
To continue using code reviews, add credits to your account and enable them for code reviews in your settings.

@coderabbitai
Copy link
Copy Markdown

coderabbitai Bot commented May 31, 2026

Warning

Review limit reached

@sungjunlee, we couldn't start this review because you've reached your PR review rate limit.

More reviews will be available in 2 minutes and 59 seconds. Learn how PR review limits work.

Your organization has run out of usage credits. Purchase more in the billing tab.

⌛ How to resolve this issue?

After more reviews become available, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

We recommend that you space out your commits to avoid hitting the rate limit.

🚦 How do rate limits work?

CodeRabbit enforces hourly rate limits for each developer per organization.

Our paid plans include higher PR review limits than trial, open-source, and free plans. In all cases, reviews become available again over time. During sustained high-volume PR review activity, CodeRabbit may temporarily slow when the next review becomes available.

Please see our Fair Usage Limits Policy for further information.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: abe41357-cb80-445d-bade-dfea525abf50

📥 Commits

Reviewing files that changed from the base of the PR and between fb563d2 and 958ed84.

📒 Files selected for processing (4)
  • skills/relay-dispatch/scripts/executors/opencode.js
  • skills/relay-dispatch/scripts/live-dogfood.js
  • tests/relay-dispatch/scripts/dispatch.test.js
  • tests/relay-dispatch/scripts/executors.test.js
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch codex/opencode-dispatch-worktree-prompt

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@sungjunlee
Copy link
Copy Markdown
Owner Author

Local review LGTM. Codex and CodeRabbit did not provide substantive review due usage/rate limits; CI is green and local validation passed: node --test tests/relay-dispatch/scripts/*.test.js, node --test tests/skills-lint/scripts/*.test.js, and git diff --check.

@sungjunlee sungjunlee merged commit 0607750 into main May 31, 2026
2 checks passed
@sungjunlee sungjunlee deleted the codex/opencode-dispatch-worktree-prompt branch May 31, 2026 13:43
sungjunlee added a commit that referenced this pull request Jun 1, 2026
Constrain OpenCode dispatch to relay worktrees.
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.

live dogfood: make OpenCode dispatch canary deliver a reviewable PR instead of dirty/no-PR output

1 participant