Skip to content

fix(code-reviews): fix review bot redirect loop in fix link#4008

Open
maphew wants to merge 1 commit into
Kilo-Org:mainfrom
maphew:fix-4006-review-redirect-url
Open

fix(code-reviews): fix review bot redirect loop in fix link#4008
maphew wants to merge 1 commit into
Kilo-Org:mainfrom
maphew:fix-4006-review-redirect-url

Conversation

@maphew

@maphew maphew commented Jun 12, 2026

Copy link
Copy Markdown

Summary

Updated the review bot's "Fix these issues in Kilo Cloud" link to point to a valid application path (/cloud/review/<uuid>) instead of the non-existent /cloud-agent-fork/review/<uuid>, preventing browser redirect loops.

  • Renamed route directory from cloud-agent-fork to cloud.
  • Updated the auth callbackPath in the review route to match the new path, preventing authentication redirect loops.
  • Updated the prompt generator to output the correct base URL for review fix links.

Closes #4006

Verification

  • Manually verified that generated review prompts now contain /cloud/review/<uuid>.
  • Confirmed the route exists at apps/web/src/app/cloud/review/[reviewId]/route.ts.
  • Confirmed no remaining references to cloud-agent-fork in the codebase.

Visual Changes

N/A

Reviewer Notes

N/A

…loud/review

- Update fix link in review prompt generation to point to /cloud/review instead of /cloud-agent-fork/review
- Rename route directory from cloud-agent-fork to cloud to match valid application paths
- Update callbackPath in auth redirect to prevent sign-in loops
@kilo-code-bot

kilo-code-bot Bot commented Jun 12, 2026

Copy link
Copy Markdown
Contributor

Code Review Summary

Status: No Issues Found | Recommendation: Merge

Executive Summary

Two-line fix correctly renames the /cloud-agent-fork/review/ route to /cloud/review/ in both the Next.js route handler and the prompt generator, with no remaining stale references.

Files Reviewed (2 files)
  • apps/web/src/app/cloud/review/[reviewId]/route.ts (renamed from cloud-agent-fork) - no issues
  • apps/web/src/lib/code-reviews/prompts/generate-prompt.ts - no issues

Reviewed by claude-4.6-sonnet-20260217 · 277,720 tokens

Review guidance: REVIEW.md from base branch main

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.

Review bot generates invalid redirect URL (/cloud-agent-fork/review/)

1 participant