You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+10-1Lines changed: 10 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -117,13 +117,22 @@ jobs:
117
117
- **PR-level summary** as an issue comment on each run (refreshed on re-runs; prior summaries are deleted).
118
118
- **Multi-line suggestions** only when contiguous and short; otherwise a single-line comment.
119
119
120
+
## Review Continuation
121
+
122
+
On repeated `pull_request` review runs, the action now tries to continue the prior Codex review instead of restarting from scratch.
123
+
124
+
1. The PR summary stores the previously reviewed head SHA in hidden metadata.
125
+
2. Review mode caches an isolated Codex home keyed by repository, PR number, model, and reviewed SHA.
126
+
3. On the next push, the action restores that cache, resumes the latest stored review thread, and scopes the prompt to the delta since the previously reviewed SHA.
127
+
4. If the prior SHA is no longer an ancestor, the cache is missing, or no thread can be restored, the action falls back to a fresh full review.
128
+
120
129
## Deduplication on Repeated Runs
121
130
122
131
When a prior Codex review exists on the PR, reruns only reuse **unresolved Codex-authored review threads** as context.
123
132
124
133
1. **Inline semantic dedup** — prior unresolved Codex comments are passed to the model's structured-output turn so it can avoid reposting the same issue as a new finding.
125
134
2. **Re-adjudicated carry-forward** — the model separately marks which of those prior unresolved Codex comments are still relevant now. Only those count toward the PR summary.
126
-
3. **Separated counts** — the summary reports new findings from the current run separately from prior Codex findings that still appear relevant.
135
+
3. **Separated counts** — the summary reports new findings and still-relevant prior findings separately.
Copy file name to clipboardExpand all lines: cli/README.md
+9Lines changed: 9 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -138,6 +138,15 @@ pytest tests/ -v
138
138
-**Codex-thread attribution**: only unresolved review threads whose root author matches a prior Codex summary author are reused as rerun context.
139
139
-**Inline semantic dedup**: the structured-output turn uses those prior Codex comments to decide which issues are new vs already covered.
140
140
-**Re-adjudicated summary carry-forward**: the model returns prior comment IDs that still seem relevant, and the summary reports those separately from new findings.
141
+
-**Auto-resolution of fixed Codex threads**: the model can also mark prior unresolved Codex comments as fixed, and review mode resolves those GitHub review threads automatically.
142
+
143
+
## Review Resume Between Pushes
144
+
145
+
- Review mode can resume the previous Codex thread when a PR receives new commits.
146
+
- The summary issue comment stores the last reviewed head SHA in hidden metadata.
147
+
- GitHub Actions review runs restore an isolated review-only `CODEX_HOME` cache keyed by repository, PR number, model, and reviewed SHA.
148
+
- When the prior reviewed SHA is still an ancestor of the current head and the cached session index contains a thread, the workflow resumes that thread and narrows the prompt to `previous_reviewed_sha..HEAD`.
149
+
- Small incremental diffs are embedded directly in the prompt; larger deltas are referenced by commit range and inspected with git during the review turn.
0 commit comments