Skip to content

[codex] Require OpenCode inline suggested diffs#365

Merged
seonghobae merged 3 commits into
developfrom
codex/opencode-inline-diff-comments
Jun 21, 2026
Merged

[codex] Require OpenCode inline suggested diffs#365
seonghobae merged 3 commits into
developfrom
codex/opencode-inline-diff-comments

Conversation

@seonghobae

@seonghobae seonghobae commented Jun 21, 2026

Copy link
Copy Markdown
Collaborator

What changed

  • Posts structured OpenCode REQUEST_CHANGES findings through GitHub review comments so each finding's suggested_diff is inside the inline review thread comment.
  • Keeps PR-level review bodies and overview comments summary-only; they no longer carry fenced suggested diffs for actionable findings.
  • Adds a diff-free fallback REQUEST_CHANGES body when GitHub rejects inline anchors, instead of silently approving or copying unanchored diffs into the overview.

Contract

Line-specific OpenCode findings with suggested_diff must publish as GitHub review comments with path, line, side: RIGHT, and a comment body containing the fenced diff. If the anchor cannot be created, the workflow leaves the diff out of the PR-level body and explains the anchor failure.

Validation

  • git diff --check
  • YAML parse for .github/workflows/opencode-review.yml
  • no repo-local OpenCode contract test file exists; validated the workflow contract markers directly
  • Inline-diff contract markers: comments payload exists, inline comment body contains #### Suggested diff, and format_request_changes_body() no longer contains a fenced diff block.

@seonghobae seonghobae enabled auto-merge June 21, 2026 09:15
@opencode-agent

opencode-agent Bot commented Jun 21, 2026

Copy link
Copy Markdown

OpenCode Review Overview

  • Head SHA: 82284ee9e38f1a0cb84c70926f6f5c916ce58933
  • Workflow run: 27900421255
  • Workflow attempt: 1
  • Gate result: APPROVE (approval step)

Pull request overview

PR #365 introduces changes to shared types and review scheduling logic, with no test coverage gaps or structural risks identified.

Findings

No blocking findings from OpenCode's independent review.

Verification

  • Review source: independent OpenCode review of the current checkout, focused changed hunks, and current-head GitHub Check evidence.
  • Structural exploration: completed before approval; if structural exploration, changed-file inspection, or evidence completeness is missing, OpenCode must not approve.
  • Result: APPROVE
  • Reason: No source-backed blockers found. Structural exploration completed without issues.

Gate evidence

  • Head SHA: 82284ee9e38f1a0cb84c70926f6f5c916ce58933
  • Workflow run: 27900421255
  • Workflow attempt: 1

@opencode-agent opencode-agent Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

PR #365 introduces changes to shared types and review scheduling logic, with no test coverage gaps or structural risks identified.

Findings

No blocking findings from OpenCode's independent review.

Verification

  • Review source: independent OpenCode review of the current checkout, focused changed hunks, and current-head GitHub Check evidence.
  • Structural exploration: completed before approval; if structural exploration, changed-file inspection, or evidence completeness is missing, OpenCode must not approve.
  • Result: APPROVE
  • Reason: No source-backed blockers found. Structural exploration completed without issues.

Gate evidence

  • Head SHA: 82284ee9e38f1a0cb84c70926f6f5c916ce58933
  • Workflow run: 27900421255
  • Workflow attempt: 1

@seonghobae seonghobae merged commit c405586 into develop Jun 21, 2026
25 checks passed
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.

1 participant