Skip to content

feat: default on-disk retrieval of skipped diffs; dedupe skip callout#129

Merged
titouanmathis merged 2 commits into
mainfrom
feat/retrieve-skipped-default
Jul 16, 2026
Merged

feat: default on-disk retrieval of skipped diffs; dedupe skip callout#129
titouanmathis merged 2 commits into
mainfrom
feat/retrieve-skipped-default

Conversation

@titouanmathis

Copy link
Copy Markdown
Contributor

What

Two changes to how the reviewer handles files dropped by the diff size budget.

1. On-disk retrieval is now on by default. Previously opt-in via --retrieve-skipped. Dropped diffs are staged on disk so the reviewer can read the highest-risk ones on demand instead of losing them, which should improve coverage on large MRs across the board. Disable with --no-retrieve-skipped or CODE_REVIEW_RETRIEVE_SKIPPED=0/false/no/off. The legacy --retrieve-skipped flag still works.

2. Skipped files are no longer listed twice in the summary. They used to appear in both the deterministic [!WARNING] callout and the reviewer's own prose (the prompt asked it to re-list them and restate coverage). The callout is now the single canonical listing, and it's retrieval-aware — it frames dropped files as "staged for on-demand retrieval; see the review summary for which were read" instead of the misleading "were NOT reviewed". Under retrieval the reviewer's prose only reports which staged files it actually read (non-duplicate info).

Changes

  • src/config.ts: retrieveSkipped defaults true via new resolveRetrieveSkipped(); added --no-retrieve-skipped negation flag.
  • src/cli.ts, docs/configuration.md: help/doc updates for the flipped default and new flag.
  • src/gitlab-review.ts: dropped the "mention/restate in your summary" instructions from the prompt (kept the honesty guidance); thread a retrieved flag into ReviewSizeNotice.
  • src/posting.ts: buildSizeNoticeBlock renders retrieval-aware wording when diffs were staged.
  • Tests: config default-true + disable cases; retrieval-aware callout branch.

Verification

npm run check passes (lint, format, typecheck, 698 unit tests).

titouanmathis and others added 2 commits July 16, 2026 14:34
… callout

Retrieval of size-dropped diffs is now on by default (was the opt-in
--retrieve-skipped); disable with --no-retrieve-skipped or
CODE_REVIEW_RETRIEVE_SKIPPED=0.

Skipped files used to be listed twice in the summary: once in the
deterministic WARNING callout and again in the reviewer's prose, because
the prompt asked it to re-list them and restate coverage. The callout is
now the single canonical listing and is retrieval-aware (staged for
on-demand retrieval rather than "not reviewed"); the reviewer only
reports which staged files it actually read.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@github-actions

Copy link
Copy Markdown

Code Review

Risk: Medium — issues that should be addressed before merge.

This MR flips retrieveSkipped to default on, adds --no-retrieve-skipped plus falsy env handling, and updates the size-skip callout to describe staged retrieval instead of unconditional non-review. It also trims the reviewer prompt so the deterministic summary callout remains the canonical place for listing size-dropped files, with the reviewer only expected to report which staged diffs were actually read.

1 issue found:

  • issuesrc/gitlab-review.ts:743 — Retrieval mode hides noise-skipped files

Review usage: 493,815 in (422,400 cached) / 7,534 out tokens — $0.3971 (cloudflare-ai-gateway/gpt-5.4, thinking: medium)

Reviewed by @weareikko/code-review v0.8.3 for commit 2c6e3fb.

@titouanmathis titouanmathis merged commit e2d2892 into main Jul 16, 2026
6 checks passed
@titouanmathis titouanmathis deleted the feat/retrieve-skipped-default branch July 16, 2026 13:43
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