Skip to content

test: cover Claude and Gemini repo instructions - #69

Draft
cursor[bot] wants to merge 1 commit into
mainfrom
cursor/missing-test-coverage-5ef5
Draft

test: cover Claude and Gemini repo instructions#69
cursor[bot] wants to merge 1 commit into
mainfrom
cursor/missing-test-coverage-5ef5

Conversation

@cursor

@cursor cursor Bot commented Jul 26, 2026

Copy link
Copy Markdown

Risky behavior now covered

  • Claude sandbox dispatch preserves an explicitly requested branch in its clone-first GitHub instruction.
  • Gemini sandbox dispatch includes the requested repository without inventing a default branch.
  • Both adapters forward the exact transformed prompt to their vendor ports.

Tests updated

  • test/claude.test.ts
  • test/gemini.test.ts

Regression value

Repository context is encoded into prompt text for sandbox vendors. Losing a branch or silently defaulting one can send an agent to the wrong code, so these adapter-boundary assertions protect a high-impact core dispatch path added by the recent repo-support change.

Validation

  • npm test — 37/37 passing
  • npm run build — passing
  • npx prettier --check test/claude.test.ts test/gemini.test.ts — passing
  • Mutation checks confirmed the tests fail when a requested branch is dropped or an absent branch defaults to main.
Open in Web View Automation 

Co-authored-by: Parvez Kose <koseparvez@gmail.com>
@vercel

vercel Bot commented Jul 26, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
polyagent Ready Ready Preview, Comment Jul 26, 2026 10:06am

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