Skip to content

fix(agent): expose Gemini diff snapshot directories#719

Merged
mariusvniekerk merged 1 commit into
roborev-dev:mainfrom
cpcloud:worktree-adaptive-gathering-candy
May 14, 2026
Merged

fix(agent): expose Gemini diff snapshot directories#719
mariusvniekerk merged 1 commit into
roborev-dev:mainfrom
cpcloud:worktree-adaptive-gathering-candy

Conversation

@cpcloud
Copy link
Copy Markdown
Contributor

@cpcloud cpcloud commented May 14, 2026

Summary

  • Mirrors the codex fix from fix: expose Codex diff snapshot directories #699 for gemini: when the review prompt references a /tmp/roborev-snapshot-*/roborev-snapshot-*.diff file, gemini's workspace doesn't include that path and it refuses to read the diff, returning an empty / system-environment-flagged review.
  • Detects snapshot dirs referenced in the prompt and passes each through --include-directories so gemini can read them.
  • Extracts the snapshot-dir detection helper (previously inline in codex.go) into internal/agent/snapshot_dirs.go so both agents share one implementation.

Mirrors the codex fix from roborev-dev#699: large diff prompts reference a
roborev-snapshot-* file in the system temp dir, but gemini's workspace
does not include that path, so it refuses to read the diff.

Detect the snapshot dirs referenced in the prompt and pass each to
gemini via --include-directories. The detection helper is now shared
between codex and gemini in a new internal/agent/snapshot_dirs.go.
@roborev-ci
Copy link
Copy Markdown

roborev-ci Bot commented May 14, 2026

roborev: Combined Review (afd41b7)

No Medium, High, or Critical issues found across the review outputs.

All agents reported the change as clean.


Synthesized from 3 reviews (agents: codex, gemini | types: default, security)

@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

❌ Patch coverage is 71.42857% with 10 lines in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
internal/agent/snapshot_dirs.go 61.53% 5 Missing and 5 partials ⚠️

📢 Thoughts on this report? Let us know!

@mariusvniekerk mariusvniekerk merged commit cf3a39b into roborev-dev:main May 14, 2026
8 checks passed
@cpcloud cpcloud deleted the worktree-adaptive-gathering-candy branch May 14, 2026 12:31
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.

3 participants