Skip to content

fix(code-reviews): disable interactive tools#3272

Open
alex-alecu wants to merge 4 commits into
mainfrom
fix/code-review-non-interactive
Open

fix(code-reviews): disable interactive tools#3272
alex-alecu wants to merge 4 commits into
mainfrom
fix/code-review-non-interactive

Conversation

@alex-alecu
Copy link
Copy Markdown
Contributor

Why

Code reviews could get stuck when the agent asked a question that no one could answer. A review should keep moving without waiting for chat input.

What changed

Code-review runs now start without the tools that let the agent ask questions or enter planning mode. If a question or permission request still shows up, the wrapper rejects it and does not treat it like healthy activity. Normal cloud-agent sessions still keep their current interactive behavior. Tests cover new prompts, live events, and reconnect snapshots.

How to test

  1. Run pnpm --filter cloud-agent-next test src/execution/orchestrator.test.ts test/unit/wrapper/snapshot.test.ts test/unit/wrapper/reconnection.test.ts.
  2. Run pnpm --filter cloud-agent-next typecheck.
  3. Start a code-review run and confirm it does not wait on question or plan tools.

@alex-alecu alex-alecu force-pushed the fix/code-review-non-interactive branch from 3b5b9ec to 22fc2e2 Compare May 15, 2026 14:37
@kilo-code-bot
Copy link
Copy Markdown
Contributor

kilo-code-bot Bot commented May 15, 2026

Code Review Summary

Status: No Issues Found | Recommendation: Merge

Executive Summary

All three previously-flagged issues have been resolved: createdOnPlatform metadata now derives from getCreatedOnPlatform(plan) on the continue path, onSseEvent is called before continue in all three code-review suppression branches (permission/question/session.status), and the duplicate 'question' | 'permission' check is consolidated into the new isInteractiveStatusType helper. Tests are updated to match.

Resolved Issues (3)
File Issue Fix Commit
services/cloud-agent-next/src/execution/orchestrator.ts createdOnPlatform metadata fallback drift on continue path c6213fc
services/cloud-agent-next/wrapper/src/connection.ts Duplicate 'question' | 'permission' interactive-status check c9901610
services/cloud-agent-next/wrapper/src/connection.ts callbacks.onSseEvent?.() missing from code-review suppression branches 675a23bf
Files Reviewed (5 files)
  • services/cloud-agent-next/src/execution/orchestrator.ts
  • services/cloud-agent-next/src/execution/orchestrator.test.ts
  • services/cloud-agent-next/wrapper/src/connection.ts
  • services/cloud-agent-next/test/unit/wrapper/reconnection.test.ts
  • services/cloud-agent-next/test/unit/wrapper/snapshot.test.ts

Reviewed by claude-sonnet-4.6 · 182,580 tokens

Review guidance: REVIEW.md from base branch main

Comment thread services/cloud-agent-next/src/execution/orchestrator.ts
Comment thread services/cloud-agent-next/wrapper/src/connection.ts Outdated
Comment thread services/cloud-agent-next/wrapper/src/connection.ts
Comment on lines +233 to +239
const codeReviewJob = isCodeReviewJob(state);
const skipStatusForCodeReview = codeReviewJob && isInteractiveStatusType(sessionStatus.type);

if (codeReviewJob) {
rejectCodeReviewQuestion(pendingQuestion?.id, config.kiloClient);
rejectCodeReviewPermission(pendingPermission?.id, config.kiloClient);
}
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think we should be doing that in the snapshot as it is a non mutable "getter"

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