fix(code-review): disable code review on bad config#3558
Merged
Conversation
Contributor
Code Review SummaryStatus: No Issues Found | Recommendation: Merge Executive SummaryAll 4 previously flagged issues are resolved across 6 new commits; incremental changes introduce no new problems. Previously Flagged Issues — All Resolved
Files Reviewed (29 files)
Fix these issues in Kilo Cloud Reviewed by claude-sonnet-4.6 · 1,283,809 tokens Review guidance: REVIEW.md from base branch |
alex-alecu
commented
May 28, 2026
alex-alecu
commented
May 28, 2026
alex-alecu
commented
May 28, 2026
jrf0110
approved these changes
May 28, 2026
Contributor
Author
|
I will follow up if necessary with an automation of reengaging with the users / orgs that will have code reviews disabled using this query: SELECT
ac.id AS agent_config_id,
ac.platform,
ac.is_enabled,
ac.owned_by_user_id,
u.google_user_email,
ac.owned_by_organization_id,
o.name AS organization_name,
state.value->>'reason' AS reason,
state.value->>'detectedAt' AS detected_at,
state.value->>'lastSeenAt' AS last_seen_at,
state.value->>'triggeringReviewId' AS triggering_review_id,
state.value->>'emailSentAt' AS email_sent_at
FROM agent_configs ac
LEFT JOIN kilocode_users u ON u.id = ac.owned_by_user_id
LEFT JOIN organizations o ON o.id = ac.owned_by_organization_id
CROSS JOIN LATERAL (
SELECT COALESCE(ac.runtime_state, '{}'::jsonb)->'code_review_action_required' AS value
) state
WHERE ac.agent_type = 'code_review'
AND ac.is_enabled = false
AND COALESCE(ac.runtime_state, '{}'::jsonb) ? 'code_review_action_required';The important flag is |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Verification
N/A (not manually verified in browser).
Visual Changes
N/A (no screenshots captured).
Reviewer Notes